PartnerHub

<back to all web services

PurchaseOrderGet

To override the Content-type in your clients 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 /jsv/reply/PurchaseOrderGet HTTP/1.1 
Host: partnerhub.pbsdealers.com 
Content-Type: text/jsv
Content-Length: length

{
	SerialNumber: String,
	PurchaseOrderNumber: 0,
	ContactRef: 00000000000000000000000000000000,
	Status: String,
	ClosedSince: 0001-01-01,
	ClosedUntil: 0001-01-01,
	OpenedSince: 0001-01-01,
	OpenedUntil: 0001-01-01,
	ModifiedSince: 0001-01-01,
	ModifiedUntil: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	PurchaseOrders: 
	[
		{
			Id: string/string,
			SerialNumber: String,
			PurchaseOrderID: 00000000000000000000000000000000,
			PurchaseOrderNumber: 0,
			ContactRef: 00000000000000000000000000000000,
			Department: String,
			Reference: String,
			ShippingMethod: String,
			Comments: String,
			DateOpened: 0001-01-01,
			DateClosed: 0001-01-01,
			Status: String,
			Summary: 
			{
				SubTotal: 0,
				Tax1: 0,
				Tax2: 0,
				Total: 0
			},
			Lines: 
			[
				{
					Type: String,
					Code: String,
					Account: 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-01,
			PONumber: String
		}
	]
}