Newer Version Available

This content describes an older version of this product. View Latest

Debit Points Actions

Debit loyalty points from a specified loyalty program member’s balance. You can debit loyalty points to redeem for a service or upgrade the member to a higher tier.

This action updates the point balance in the LoyaltyProgramMemberCurrency table in your Salesforce org.

Note

This object is available in API version 51.0 and later for users with Loyalty Management license.

Supported REST HTTP Methods

URI
/services/data/vXX.X/actions/standard/debitPoints
Formats
JSON, XML
HTTP Methods
POST
Authentication
Authorization: Bearer token

Inputs

Input Details
AdditionalNotes
Type
String
Description
Additional information about the transactions performed by the loyalty program members.
CorrelationId
Type
ID
Description
ID of any Salesforce entity.
FlowId
Type
ID
Description
ID of the flow associated with the debit points action.
JournalId
Type
ID
Description
Required. ID of the transaction journal.
LoyaltyProgramMemberId
Type
ID
Description
Required. ID of the loyalty program member to whom the points must be deducted.
Points
Type
Float
Description
Required. The points available for the loyalty program member.
ProgramCurrencyName
Type
string
Description
Required. The name of the loyalty program currency.
ProgramName
Type
string
Description
Required. The name of the loyalty program.

Outputs

Output Details
JournalId
Type
ID
Description
ID of the transaction journal.
LoyaltyProgramMemberId
Type
string
Description
ID of the loyalty program member.
PointsBalance
Type
Integer
Description
The total points available for the loyalty program member.
ProgramCurrencyName
Type
string
Description
The name of the program currency.
ProgramName
Type
string
Description
The name of the loyalty program.

Example

Sample Request

1{
2   "inputs":[{
3      "LoyaltyProgramMemberId": "0lMxx0000A000001EAA",
4      "ProgramCurrencyName": "Avios",
5      "ProgramName": "baLoyaltyProgram",
6      "Points": 500.0,
7      "CorrelationId": "0lcxx00004000002AAA",
8      "JournalId": "0lcxx00204000001AAA",
9      "AdditionalNotes": "Any additional Information"
10   }]
11}

Sample Response

1{
2   "errors":null,
3   "isSuccess":true,
4   "outputValues":{ 
5        "LoyaltyProgramMemberId":"0lMxx0000A000001EAA",
6        "ProgramCurrencyName":"Avios",
7        "ProgramName":"baLoyalty",
8        "JournalId":"0lMxx0000A000001EAA",
9        "PointsBalance":100
10   }
11}