Add New PR

View as Markdown
### Add New PR This APIs endpoint allows you to make an HTTP POST request to add a purchase requisition (PR) to an Dice. ### Request Body | Params | Required | Type | Description | | --- | --- | --- | --- | | category | Mandatory | Integer | The category of the purchase request. | | address | Mandatory | Integer | The address associated with the purchase request. | | files | Optional | Array | An array of files related to the purchase request. | | title | Mandatory | String | The title or name of the purchase request. | | items | Mandatory | Array | An array containing details of items in the purchase request. | | id | Mandatory | Integer | The unique ID of the item. | | count | Mandatory | Integer | The quantity or count of the item. | | remarks | Mandatory | String | Remarks associated with the item. | | vendors | Optional | Array | An array containing details of vendors associated with the item. | | delivery | Optional | String | Details related to the delivery of the purchase request. | | currency | Optional | String | The currency code for the purchase request. | The response will contain a boolean field "success", indicating whether the PR addition was successful or not. ### 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.
categoryintegerRequired
addressintegerRequired
fileslist of stringsRequired
titlestringRequired
itemslist of objectsRequired
deliverystringRequired
currencystringRequired

Response

OK
successboolean