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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	Number: String,
	Date: 0001-01-01,
	Name: String,
	AddressLine1: String,
	AddressLine2: String,
	TownCity: String,
	County: String,
	Postcode: String,
	Reference: String,
	StaffId: 0,
	PurchaseOrderItems: 
	[
		{
			Item: String,
			Price: 0
		}
	]
}