ColdstarRefrigeration

<back to all web services

PostPurchaseOrder

The following routes are available for this service:
POST/PostPurchaseOrder
PostPurchaseOrder Parameters:
NameParameterData TypeRequiredDescription
IdbodyintNo
NumberbodystringNo
DatebodyDateTimeNo
NamebodystringNo
AddressLine1bodystringNo
AddressLine2bodystringNo
TownCitybodystringNo
CountybodystringNo
PostcodebodystringNo
ReferencebodystringNo
StaffIdbodyintNo
PurchaseOrderItemsbodyList<PurchaseOrderItems>No
PurchaseOrderItems Parameters:
NameParameterData TypeRequiredDescription
ItemformstringNo
Priceformdecimal?No

To override the Content-type in your clients, use the 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 /PostPurchaseOrder HTTP/1.1 
Host: api.coldstarrefrigeration.co.uk 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0,"Number":"String","Date":"\/Date(-62135596800000-0000)\/","Name":"String","AddressLine1":"String","AddressLine2":"String","TownCity":"String","County":"String","Postcode":"String","Reference":"String","StaffId":0,"PurchaseOrderItems":[{"Item":"String","Price":0}]}