Skip to navigation

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

ParamsRequiredTypeDescription
categoryMandatoryIntegerThe category of the purchase request.
addressMandatoryIntegerThe address associated with the purchase request.
filesOptionalArrayAn array of files related to the purchase request.
titleMandatoryStringThe title or name of the purchase request.
itemsMandatoryArrayAn array containing details of items in the purchase request.
idMandatoryIntegerThe unique ID of the item.
countMandatoryIntegerThe quantity or count of the item.
remarksMandatoryStringRemarks associated with the item.
vendorsOptionalArrayAn array containing details of vendors associated with the item.
deliveryOptionalStringDetails related to the delivery of the purchase request.
currencyOptionalStringThe 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

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