References for specifying discount duration for enhanced discounts
This reference provides guidelines for specifying discount durations using the startDatePolicy and endDatePolicy fields in the Create an order API operation, including required fields and values.
Before specifying the discount duration, we recommend you read the Enhanced discount use cases first. When setting the startDatePolicy and endDatePolicy fields through theCreate an orderAPI operation, you also need to set other required fields.
The following table lists the values of the startDatePolicy field and additional required fields.
|
startDatePolicy values |
Required fields |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
|
|
|
|
The following table lists the values of the endDatePolicyfield and additional required fields.
| endDatePolicy values | Required fields |
|---|---|
aligntoApplyToCharge | N/A |
fixedPeriod |
|
specificEndDate | specificEndDate |