Promotion Reward Application (POST)
Create and process transaction journals for customer orders, and apply the relevant promotions for the orders.
65.0
POST
JSON Example
This example shows a sample request when journalCreationMode is CreateTransactionJournal.
JSON Example
This example shows a sample request when journalCreationMode is DoNotCreate.
Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
journalCreationMode | String | Specifies whether to create a transaction journal record and, if so, where to store the data. | Required | 66.0 |
shouldCheckCouponUsageLimit | Boolean | Indicates whether the API must execute the Coupon Usage Increase API to verify the coupon usage count and increase the redemption usage count of the specified coupon code (true) or not (false). | Optional | 65.0 |
transactionJournalList | List<Map<String, Object>> | The list of transaction inputs to process for promotion evaluation and reward application. | Required | 65.0 |
Possible values are:
CreateTransactionJournal—Creates a transaction journal record for each entry and uses that record’s ID as the transaction reference to apply rewards and track coupon redemption. This value is applicable only when you have Loyalty Management enabled in your org.DoNotCreate—Does not create a transaction journal record. You must provideExternalTransactionNumberin each transactionJournalList entry, which is then used as the transaction reference.