Newer Version Available
Run Program Process
This action lists custom actions associated with all the available
loyalty program processes. You can trigger an active loyalty program process using its
corresponding custom invocable action.
This action is available in API version 56.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/v56.0/actions/custom/runProgramProcess/<actionName>
- Formats
- JSON
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
Vary depending on the Loyalty Program Process setup action.
Outputs
Standard invocable action result parameters, such as isSuccess and errors along with other parameters that vary depending on the inputs.
| Output | Details |
|---|---|
| errors |
|
| isSuccess |
|
Examples
This section has the sample request and response for triggering the Credit Points Program Process.
- Sample Resource
- /services/data/v56.0/actions/custom/runProgramProcess/NTO_SLI_CreditPoints
- Sample request
-
Here’s an example POST request that has the inputs, such as, Loyalty Program member ID, points to credit, and other transaction details:
1{ 2 "inputs": [ 3 { 4 "TransactionJournal": { 5 "ActivityDate": "2022-11-27T00:00:00Z", 6 "BookingDate": "2022-10-23", 7 "EndDate": "2022-10-23T00:00:00Z", 8 "ExternalTransactionNumber": "1", 9 "InvoiceDate": "2022-10-23", 10 "JournalTypeName": "Accrual", 11 "JournalSubTypeName": "xyz", 12 "LoyaltyProgramId": "0lpRM0000004D53YAE", 13 "MemberId": "0lMRM0000004Eqv2AE", 14 "TransactionAmount": 45, 15 "Status": "Processed" 16 }, 17 "PointsToCredit": "100" 18 } 19 ] 20} - Sample response
-
Here’s an example response of a successful credit points program operation:
1{ 2 "actionName": "NTO_SLI_CreditPoints", 3 "errors": null, 4 "isSuccess": true, 5 "outputValues": { 6 "PointsCredited": 100 7 } 8}