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
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)
Example response
[
{
"orderNumber": "vo-111111"
}
]