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

  • Base URL
    http://localhost
  • URL
    http://localhost/receivals
  • Auth
    OAuth 2
    Authorization code: https://localhost/oauth2/authorize
    Token URL: https://localhost/oauth2/authorize

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"
    }
  ],
  "source": {
    "source": "KASO",
    "createdAt": "2021-01-01T09:23:54.723Z"
  }
}

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

Changes

No recorded changes to this operation across all 1 revision of this API.