Skip to navigation

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

ParamRequiredTypeDescription
orderIdMandatoryStringThe ID of the order.
dataMandatoryObjectAn object containing the following sub-parameters.
itemsMandatoryArrayAn array of objects containing details of the items received.
qttyMandatoryNumberThe quantity of the item received.
idMandatoryNumberThe ID of the item.
productIdMandatoryStringThe ID of the product received.
filesOptionalArrayAn array of files related to the GRN.
grn NoOptionalStringGRN Number

Example Request Body:

{
"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:

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