The Way Discounts are Sent
What support does Deliverect have for discounts?
Our channel partners may offer multiple types of discounts or special offers on items. However, when orders are sent to Deliverect, only an overall order discount is supported.
How will this show in orders?
When we send an order to the POS, the total discount will show as a negative value. This is then taken off from the total order's value. The POS should clearly show the discounted total.
For this particular order, it is displayed as "discountTotal": -100,
in the Deliverect order tab. -100
because the discount value is -€1.
Additional Discount Information
If the channels provide us with additional information on the discounts then you will get an extra "discounts" object in the payload.
"discounts": [
{
"type": "order_flat_off",
"provider": "channel",
"name": "Test discount",
"channelDiscountCode": "test 1234",
"referenceId": "testId",
"value": -400,
"amount": -400
}
]
Inside you will find information such as the discount type, name, and amount. You can find the meaning of each parameter in the table below (see all other attributes here - > order definitions.
Parameters | Meaning | Type |
---|---|---|
discounts | order discounts | array [object] |
discounts.type | Mapped channel discount type from the list of Discount Types in Deliverect. | string |
discounts.provider | The issuer of the discount i.e. the one who bears the discounted amount. | Enum |
discounts.name | The name was given to the discount. | string |
discounts.channelDiscountCode | The unique discount code used by the channel | string |
discounts.referenceId | A unique number assigned to the discount and used to reference the discount on individual items on the order. | integer |
discounts.value | It is the flat amount of money or percentage covered by the discount which is stored with precision 2, so $1.50 -> 150,# 25.1% -> 2510 | integer |
discounts.amount | Actual amount discounted e.g. For 10% off on $50 bill, the value will be 1000 and amount will be 500. | integer |
Updated 7 months ago