v1

latestOpenAPI 3.0.3Apache 2.02026-07-2478177179.1 KB
Purchase order

Create a purchase order for a specific partner.

Create a purchase order for a specific partner.

post/purchase-orders

Request body

locationIdstring required

Location id in the GrubTech platform

supplierIdstring required

Supplier id in the GrubTech platform

externalPoIdstring required

Purchase order id in the external platform

notestring

A special Note for the purchase order.

Example request

{
  "locationId": "5fd4785d02eb2a7afb2aca0b",
  "supplierId": "60cdaa0a14dfed073d77303f",
  "externalPoId": "KS-00939032",
  "purchaseOrderItems": [
    {
      "catalogItemId": "6077d5ea12d722528cadd898",
      "qty": {
        "qty": 34,
        "unitId": "60e4192945b5ce11d1d6bb94"
      },
      "cost": {
        "value": 1,
        "currencyCode": "AED"
      },
      "taxAmount": {
        "taxCode": "VAT"
      }
    }
  ]
}

Response

Successful response

poNumberstring

Purchase order number in the GrubTech platform

createdAtstring date-time

Purchase order created time and date in the GrubTech platform

Example response

{
  "poNumber": "GT-6225caa5ee296332ae6cd5d9",
  "createdAt": "2021-01-01T09:23:54.723Z"
}