Add New GRN

View as Markdown
### Add GRN This API endpoint allows you to add a Goods Receipt Note (GRN) to the Dice system. ### Request Body | Params | Required | Type | Description | | --- | --- | --- | --- | | invoiceId | Mandatory | Integer | The ID of the invoice (e.g., 444935). | | data | Mandatory | Object | Additional data related to the invoice. | | reference | Mandatory | String | A reference related to the invoice. | | remarks | Mandatory | String | Remarks or notes about the invoice. | | partial | Mandatory | Boolean | Indicates if the invoice is partial. | | files | Mandatory | Array | An array of files related to the invoice. | | date | Mandatory | String | The date of the invoice (e.g., "12"). | | items | Mandatory | Array | An array of items within the invoice. | | qtty | Mandatory | Number | Quantity of the item (e.g., 10.0). | | id | Mandatory | Integer | ID associated with the item | The "invoiceId" is the ID of the invoice associated with the GRN, and "data" contains additional information such as reference, remarks, partial status, files, date, and items with quantity and ID. ### Response - `success` (boolean): Indicates whether the GRN addition was successful. A value of `true` means the addition was successful. #### Example Response ``` json { "success": true } ```

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.
invoiceIdintegerRequired
dataobjectRequired

Response

OK
successboolean