Adding discounts
Adding discounts to an order works very similar to adding a component. It can be applied in signup and up-/downgrade orders. Specifying a start date is optional.
Sample request
POST /Orders
{
"TriggerInterimBilling": false,
"ContractId": "5e53dab7443e5516749566e2",
"Cart": {
"InheritStartDate": false,
"DiscountSubscriptions": [
{
"StartDate": "2020-02-26T14:16:23.7556386Z",
"DiscountId": "5e53dab7443e5516749566fc"
}
]
},
"PreviewAfterTrial": false
}
The example shows adding a discount to an upgrade order.
Sample response
{
"Id": "5e53dab7443e551674956714",
"AllowWithoutPaymentData": false,
"Total": 10.0,
"TotalVat": 1.9,
"TotalGross": 0.0,
"NextTotalGross": 0.0,
"IsTrial": false,
"TrialEndPolicy": "NoTrial",
"Status": "InProgress",
"OrderType": "Signup",
"TriggerInterimBilling": false,
"CustomerId": "5e53dab7443e551674956715",
"ContractId": "5e53dab7443e5516749566e2",
"PreviewAfterTrial": false
}
Updated 9 months ago
What’s Next