Add Po GRN

View as Markdown
### Add Po GRN This API endpoint allows you to add a new Purchase Order Goods Receipt Note (GRN). ### Request body | Param | Required | Type | Description | | --- | --- | --- | --- | | orderId | Mandatory | String | The ID of the order. | | data | Mandatory | Object | An object containing the following sub-parameters. | | items | Mandatory | Array | An array of objects containing details of the items received. | | qtty | Mandatory | Number | The quantity of the item received. | | id | Mandatory | Number | The ID of the item. | | productId | Mandatory | String | The ID of the product received. | | files | Optional | Array | An array of files related to the GRN. | | grn No | Optional | String | GRN Number | Example Request Body: ``` json { "orderId": "", "data": { "items": [ { "qtty": 0, "id": 0, "productId": "" } ], "files": [] } } ``` ### Response - success (boolean): Indicates if the GRN creation was successful. - grnId (string): The ID of the created GRN. - message (string): A message confirming the successful creation of the GRN. Example Response: ``` json { "success": true, "grnId": "GRN-INDIAN-00340", "message": "GRN created successfully" } ```

Headers

DICE-APP-IDstringOptional
Company Code of client
X-CLIENT-IDstringOptional
API Client ID
X-CLIENT-SECRETstringOptional
API Client Secret

Request

This endpoint expects an object.
orderIdstringRequired
dataobjectRequired
grn_nostringRequired

Response

OK
successboolean
grnIdstring
messagestring