v1

latestOpenAPI 3.0.0Apache License Version 2.02026-07-24163274903.6 KB
Purchase Order Service

savePurchaseOrders

Save purchase orders.

post/purchaseorder/v1/savePurchaseOrders

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"
  }
]