Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Credit Points to Members
Credit pre-calculated points to a loyalty member on every transaction.
Example URL
1https://yourInstance.salesforce.com/services/data/v68.0/connect/loyalty/programs/DemoProgram/program-processes/credit PointsThe request and response parameters vary depending on the input and output parameters configured for the CreditPointsToMembers process type in a Salesforce org.
Sample JSON Requests
Here's an example with a member ID:
1{
2 "processParameters":[
3 {
4 "TransactionJournal":{
5 "ActivityDate":"2023-08-27T00:00:00Z",
6 "ExternalTransactionNumber":"1",
7 "InvoiceDate":"2023-08-23",
8 "JournalTypeName":"Accrual",
9 "MemberId":"0lMRM0000004G5h2AE",
10 "TransactionAmount":"45.0",
11 "CurrencyIsoCode":"USD",
12 "Status":"Processed"
13 },
14 "PointsToCredit":100.0
15 }
16 ]
17}Here's an example with a membership number:
1{
2 "processParameters":[
3 {
4 "TransactionJournal":{
5 "ActivityDate":"2023-08-27T00:00:00Z",
6 "ExternalTransactionNumber":"1",
7 "InvoiceDate":"2023-08-23",
8 "JournalTypeName":"Accrual",
9 "MembershipNumber":"M1256",
10 "TransactionAmount":"45.0",
11 "CurrencyIsoCode":"USD",
12 "Status":"Processed"
13 },
14 "PointsToCredit":100.0
15 }
16 ]
17}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}