Newer Version Available
Credit Points to Members
Credit pre-calculated points to a loyalty member on every transaction.
Example URL
1/connect/loyalty/programs/DemoProgram/program-processes/creditPointsThe request and response parameters vary depending on the input and output parameters configured for the CreditPointsToMembers 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 "PointsToCredit":100.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":"Accrual",
12 "JournalSubTypeName":"xyz",
13 "LoyaltyProgramId":"0lpxx000000059NAAQ",
14 "MembershipNumber":"007",
15 "TransactionAmount":45.0,
16 "Status":"Processed"
17 },
18 "PointsToCredit":100.0
19 }
20 ]
21}Sample JSON Response
1{
2 "message":null,
3 "outputParameters":{
4 "outputParameters":{
5 "results":[
6 {
7 "PointsCredited":100.0
8 }
9 ]
10 }
11 },
12 "simulationDetails":{
13
14 },
15 "status":true
16}