Newer Version Available

This content describes an older version of this product. View Latest

Process Transaction Journals

Use this resource to create and process a list of Accrual or Redemption type transaction journals against a corresponding loyalty program process.

The loyalty program processes determine how Accrual or Redemption type transaction journals are processed. When transaction journals meet the criteria and conditions for a program process, actions that are set up in the process are triggered for the transaction journals. For more information on how to set up program process, see LoyaltyProgramSetup in Loyalty Management Developer Guide.

Special Access Rules
To use this resource, your org must have either B2C - Loyalty, B2C - Loyalty Plus, Loyalty Management - Growth, or Loyalty Management - Advanced license enabled, and you must be assigned the Loyalty Management permission set.
Resource
1/connect/realtime/loyalty/programs/${programName}
Resource example
1https://yourInstance.salesforce.com/services/data/vXX.X/connect
2/realtime/loyalty/programs/CloudKicksInnerCircle
Available version
54.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
Root XML tag
loyaltyEngineInput
JSON example
1{
2  "transactionJournals": [
3      {
4        "ActivityDate": "2021-11-27T00:00:00Z",
5        "BookingDate": "2020-10-23T00:00:00Z",
6        "Distance": 2.0,
7        "EndDate": "2021-10-23T00:00:00Z",
8        "ErrorDescription": "",
9        "EscrowPointsCreditDate": "2020-10-23",
10        "Establishment": "Build",
11        "ExternalTransactionNumber": "1",
12        "InvoiceDate": "2020-10-23",
13        "JournalDate": "2021-12-25T00:00:00Z",
14        "JournalSubTypeId":"0lSxx00000008GvEAI",
15        "JournalTypeId": "0lExx00000008QbEAI",
16        "LoyaltyProgramId": "0lpxx0000000001AAA",
17        "MemberId": "0lMxx0000000JKPEA2",
18        "TransactionAmount": 45.0
19        
20      }
21    ]
22}
Properties
Name Type Description Required or Optional Available Version
processInput Map<String, Object> Details of the Transaction Journal records that must be created and processed. Required 54.0
Response body for POST
Loyalty Engine Realtime Output