Debit Points from Members
Redeem a loyalty member’s pre-calculated points on a transaction.
Example URL
https://yourInstance.salesforce.com/services/data/v64.0/connect/loyalty/programs/DemoProgram/program-processes/debit Points
The request and response parameters vary depending on the input and output parameters configured for the DebitPointsFromMembers process type in a Salesforce org.
Sample JSON Requests
Here's an example with a member ID:
{
"processParameters": [
{
"TransactionJournal": {
"ActivityDate": "2023-08-27T00:00:00Z",
"ExternalTransactionNumber": "1",
"InvoiceDate": "2023-08-23",
"JournalTypeName": "Redemption",
"MemberId":"0lMRM0000004G5h2AE",
"TransactionAmount": "45.0",
"CurrencyIsoCode":"USD",
"Status":"Processed"
},
"PointsToDebit": 200.0
}
]
}
Here's an example with a membership number:
{
"processParameters": [
{
"TransactionJournal": {
"ActivityDate": "2023-08-27T00:00:00Z",
"ExternalTransactionNumber": "1",
"InvoiceDate": "2023-08-23",
"JournalTypeName": "Redemption",
"MembershipNumber": "M1256",
"TransactionAmount": "45.0",
"CurrencyIsoCode":"USD",
"Status":"Processed"
},
"PointsToDebit": 200.0
}
]
}
Sample JSON Response
{
"message":null,
"outputParameters":{
"outputParameters":{
"results":[
{
"PointsDebited":200.0
}
]
}
},
"simulationDetails":{
},
"status":true
}