PartnerHub

<back to all web services

PurchaseOrderChange

To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/PurchaseOrderChange HTTP/1.1 
Host: partnerhub.pbsdealers.com 
Content-Type: application/json
Content-Length: length

{"PurchaseOrderInfo":{"Id":"string/0","SerialNumber":"String","PurchaseOrderNumber":0,"ContactRef":"00000000000000000000000000000000","Department":"String","Reference":"String","ShippingMethod":"String","Comments":"String","DateOpened":"0001-01-01T00:00:00.0000000Z","DateClosed":"0001-01-01T00:00:00.0000000Z","Status":"String","Summary":{"SubTotal":0,"Tax1":0,"Tax2":0,"Total":0},"Lines":[{"Type":"String","Code":"String","Description":"String","Quantity":0,"Cost":0,"Price":0,"ControlNumber":"String"}],"ShippingAddress":{"Name":"String","Address":"String","City":"String","Province":"String","PostalCode":"String"},"LastUpdate":"0001-01-01T00:00:00.0000000Z"},"IsAsynchronous":false,"UserRequest":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"WasSuccessful":false,"Message":"String","ReferenceId":"String","ReferenceNumber":"String"}