Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Coupon Usage Input

Input representation of coupon usage.
JSON example
1{
2  "couponCodeList": [
3    "QWERTY",
4    "ABCD"
5  ],
6  "activityDateTime": "2024-10-05T12:45:19Z",
7  "externalTransactionNumber": "0lVxx000000006T",
8  "customerId": "0lMxx0000000001"
9}
Properties
Name Type Description Required or Optional Available Version
couponCodeList List<String> The codes of the list of coupons for which the usage must be increased or decreased. Required 62.0
activity​DateTime DateTime The date and time at which the customer redeemed the coupon. Required 62.0
external​Transaction​Number String The externally generated unique identifier of cart for which the customer redeemed the coupon. This ID must be the same in both the decrease and increase usage APIs so that the API can correctly track coupon usage for the originating transaction. Required 62.0
customerId String The ID of either the contact, the account, or the loyalty program member who redeemed the coupon. Required 62.0