v1

latestOpenAPI 3.0.3Apache 2.02026-07-2478177179.1 KB
Receival

Create a receival note for a specific partner for the stock update.

Create a receival note for a specific partner for the stock update.

post/receivals

Request body

locationIdstring required

Location id in GrubTech platform

supplierIdstring required

Supplier id in GrubTech platform

invoiceNumberstring required

Invoice number related to the receival note in the external platform

invoiceDatestring date-time required

Invoice issued date related to the receival note

poNumberstring

GrubTech purchase order number. This attribute is mandatory if a receival note request is based on a purchase order.

Example request

{
  "locationId": "5fd4785d02eb2a7afb2aca0b",
  "supplierId": "60cdaa0a14dfed073d77303f",
  "invoiceNumber": "44545",
  "invoiceDate": "2021-01-01T09:23:54.723Z",
  "poNumber": "GT-6225caa5ee296332ae6cd5d9",
  "receivalItems": [
    {
      "catalogItemId": "61fb7987267860699d5c1a28",
      "qty": {
        "qty": 34,
        "unitId": "60e4192945b5ce11d1d6bb94"
      },
      "cost": {
        "value": 1,
        "currencyCode": "AED"
      },
      "expiryDate": "2022-02-25T00:00:00.000Z"
    }
  ]
}

Response

Successful response

receivalIdstring

Receival id in GrubTech platform

createdAtstring date-time

Receival note created time in GrubTech platform

Example response

{
  "receivalId": "62550869a5cd8a63d6f1207e",
  "createdAt": "2021-01-01T09:23:54.723Z"
}