Newer Version Available
Debit Points from Members
Redeem a loyalty member’s pre-calculated points on a transaction.
Example URL
1/connect/loyalty/programs/DemoProgram/program-processes/debitPointsThe request and response parameters vary depending on the input and output parameters configured for the DebitPointsFromMembers process in a Salesforce org.
Sample JSON Request
The value of a default request parameter can be an ID, a name, or a number, as shown in the following samples..
Sample1
1{
2 "processParameters":[
3 {
4 "TransactionJournal":{
5 "ActivityDate":"2022-11-27T00:00:00Z",
6 "BookingDate":"2022-10-23T00:00:00Z",
7 "EndDate":"2022-10-23T00:00:00Z",
8 "ExternalTransactionNumber":"1",
9 "InvoiceDate":"2022-10-23",
10 "JournalDate":"2022-12-25T00:00:00Z",
11 "JournalTypeId":"0lExx00000003ltEAA",
12 "LoyaltyProgramId":"0lpxx000000059NAAQ",
13 "MemberId":"0lMxx00000001grEAA",
14 "TransactionAmount":45.0,
15 "Status":"Processed"
16 },
17 "PointsToDebit":200.0
18 }
19 ]
20}Sample2
1{
2 "processParameters":[
3 {
4 "TransactionJournal":{
5 "ActivityDate":"2022-11-27T00:00:00Z",
6 "BookingDate":"2022-10-23T00:00:00Z",
7 "EndDate":"2022-10-23T00:00:00Z",
8 "ExternalTransactionNumber":"1",
9 "InvoiceDate":"2022-10-23",
10 "JournalDate":"2022-12-25T00:00:00Z",
11 "JournalTypeName":"Redemption",
12 "JournalSubTypeName":"xyz",
13 "LoyaltyProgramId":"0lpxx000000059NAAQ",
14 "MembershipNumber":"007",
15 "TransactionAmount":45.0,
16 "Status":"Processed"
17 },
18 "PointsToDebit":200.0
19 }
20 ]
21}/Sample JSON Response
1{
2 "message":null,
3 "outputParameters":{
4 "outputParameters":{
5 "results":[
6 {
7 "PointsDebited":200.0
8 }
9 ]
10 }
11 },
12 "simulationDetails":{
13
14 },
15 "status":true
16}