Service URL: POST /baskets/{basketReference}/items/{lineNumber}/discount[?returnBasket=true]
Tokens:
basketReference – The basket reference of the basket to record the discount against
lineNumber – The line number to record the discount against
Request Body:
IAddItemDiscountRequest:
reasonId – String – The ID of the reason describing what kind of item discount to apply – Required
value – Double – The value of the discount – Optional, depending on the voucher configuration
Remarks:
Adds an item discount to the specified line in the basket.
The value will determine the discount amount – it may not be required, depending on the configuration of the reason selected. The value may be a fixed amount (in whole base units, i.e. 100 = £1.00) or a percentage (i.e. 100 = 100%), again depending on the configuration
If the returnBasket flag is true, the updated basket will be returned
Example Request:
{
"reasonId": "ITEM-DISCOUNT-1",
"value": 11.0
}