Purchase Order Service

savePurchaseOrders

Save purchase orders.

post/purchaseorder/v1/savePurchaseOrders

Request

  • Base URL
    //webservices-test.net-chef.com (relative, and the document’s source URL is not known)
  • URL
    //webservices-test.net-chef.com/purchaseorder/v1/savePurchaseOrders
  • Auth
    none declared. Required headers: authenticationtoken, password, sitename, userid

Headers

authenticationtokenstring required

Secure token for API authentication.

passwordstring required

Password for the Crunchtime Application User.

sitenamestring required

Crunchtime site identifier. (test or production)

useridstring required

"User ID" for the Crunchtime Application User.

X-B3-TraceIdstring

Optional trace identifier for troubleshooting.

Request body

locationCodestring required

The Code for the Location associated with the transaction.

Example request

{
  "locationCode": "000000",
  "purchaseOrderSaveRows": [
    {
      "purchaseOrderDetailRows": [
        {
          "orderQuantity": 2,
          "vendorProductNumber": "3AB",
          "vendorUnit": "Box"
        }
      ],
      "purchaseOrderHeaderRow": {
        "doNotTransmit": "Y",
        "expectedDeliveryDate": "MM/dd/yyyy",
        "locationCode": "2AB",
        "message": "This is a simple message",
        "misc1GlDescription": "Misc1",
        "misc1GlValue": 2,
        "misc2GlDescription": "Misc2",
        "misc2GlValue": 2,
        "orderStatus": "SUBMITTED",
        "orderType": "VO",
        "referenceNumber": "B2A",
        "shippingValue": 2,
        "taxGlDescription": "Tax",
        "taxValue": 2,
        "vendorCode": "2BA"
      }
    }
  ]
}

Response

Success(Auto generated customer order number is returned)

orderNumberstring

The Purchase Order Number for the transaction.

Example response

[
  {
    "orderNumber": "vo-111111"
  }
]

Changes

No recorded changes to this operation across all 2 revisions of this API.