Skip to content

purchaseOrder

Supported, no replacement yet

This endpoint remains fully supported. No replacement exists in the new API yet, and no action is needed. When a replacement ships you will get 12 months' notice, and this site will be updated.

Reference

/rest/stockMgmt/purchaseOrder

POST
Adds a Purchase Order and Purchase Order lines

acceptable request representations:

  • application/json
 {
     "vendorId" : "433",     "poDate" : "12/12/2013"     "clientGroupId" : "34"     "jobRef" : "J0045G"     //optional     "poLines" : [
                {
                    "partNumber" : "abc123",
                    "quantity" : "43.3",
                    "unitPrice" : "12.23",                    "description" : "test"     //optional
                }
     ]}


available response representations:
  • 200 - application/json
{
  "result" : "success or fail",
  "result_msg" : "error message", 
  # may also return 
  "poRef" : "8181"
}

See the Stock Management API matrix for the full list of endpoints in this category.