Create Goods Receipt Notes (GRN) with line items linked to purchase orders
application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
grnNumber | string | Yes | GRN number to assign to the document (minimum 1 character) |
lineItems | array | Yes | List of line items that make up the GRN (minimum 1 item required) |
poId | string | Yes | Purchase order ID that this GRN is linked to (minimum 1 character) |
receivedDate | string | Yes | Received date for the GRN in ISO-8601 format (YYYY-MM-DD) |
remark | string | No | Remark for the GRN (minimum 1 character) |
referenceNo | string | No | Reference number for the GRN (minimum 1 character) |
description | string | No | Description for the GRN (minimum 1 character) |
lineItems array must contain the following fields:
| Parameter | Type | Required | Description |
|---|---|---|---|
quantity | number | Yes | Quantity received for the line item |
rate | number | Yes | Unit rate to be applied to the line item |
identifier | string | Yes | Description of the line item (minimum 1 character) |
200 OK
Response Fields:
| Field | Type | Description |
|---|---|---|
ok | boolean | Indicates whether the request was successful |
data | object | Contains the GRN creation response data |
data.id | string | Unique identifier for the GRN |
data.grnNumber | string | GRN number assigned to the document |
data.status | string | Current status of the GRN |
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
404 Not Found
404 Not Found
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
404 Not Found
401 Unauthorized
403 Forbidden
500 Internal Server Error
500 Internal Server Error
grnNumber, lineItems, poId, receivedDate) are providedreceivedDate fieldquantity, rate, and identifier valuespoId must reference an existing purchase order in the systemdescription to provide context about the goods receivedremark for any special notes or conditions about the receiptreferenceNo to link the GRN to external reference numbers or documentsidentifier that matches the purchase order line itemsquantity and rate