| POST | /PostPurchaseOrder |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | int | No | |
| Number | body | string | No | |
| Date | body | DateTime | No | |
| Name | body | string | No | |
| AddressLine1 | body | string | No | |
| AddressLine2 | body | string | No | |
| TownCity | body | string | No | |
| County | body | string | No | |
| Postcode | body | string | No | |
| Reference | body | string | No | |
| StaffId | body | int | No | |
| PurchaseOrderItems | body | List<PurchaseOrderItems> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Item | form | string | No | |
| Price | form | decimal? | 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
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}]}