Promotion Reward Application Input
The details required to create transaction journals. The request includes a list of transaction journals, which are to be created. It includes the list of promotions applied along with the rewards. If any of the rewards aren’t applied, then everything is rolled back. No partial rewards are applied.
This example shows a sample request when journalCreationMode is CreateTransactionJournal.
This example shows a sample request when journalCreationMode is DoNotCreate.
| 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.