Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v75
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • Mailings
  • Automation scenarios
  • Loyalty Programs
    • Get profile tier in a loyalty program
    • Export points transactions
    • Expiring points for a period
    • Get profile account transactions
    • Get trigger promotions list
    • Accrue points to a member
    • Redeem member points
    • Commit temporary transaction
    • Roll back temporary transaction
    • Cancel points transaction
    • Get points account balance
    • Register member in a loyalty program
    • Remove member from loyalty program
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Loyalty Programs
  • Redeem member points
Documentation for version v75

Redeem member points

Description​

Redeems points from a loyalty program member’s account using a trigger-based promotion.

Request URL​

Method: POST

https://example.com/api/v1.1/loyalty/redeeme_points

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abc123def456"YesAPI token
loyalty_program_idint123YesLoyalty program ID
promotion_idstring"PROMO123"NoTrigger promotion ID
points_currency_iidint1NoInternal points currency ID
points_currency_eidstring"stars"NoExternal points currency ID (for example, "stars")
amountstring"100.50"YesAmount of points to redeem (string, supports fractional values)
is_tempbooleanfalseNoTemporary transaction flag. Can be rolled back by timeout or a separate request
temp_timeout_secint123NoTimeout in seconds after which a temporary transaction is rolled back if not confirmed
created_atstring"2024-09-01T12:34:56Z"NoTransaction creation date and time (current time if omitted), RFC3339
transaction_eidstring"uiuiuiiu-ouiihfs-sdfsdf"NoExternal transaction ID
external_dataobject{"order_id": "123"}NoArbitrary additional transaction data (JSON object)
matchingstring"email"YesProfile lookup method: email, phone, profile_id, custom
field_namestring"user_id"Yes, if matching = customCustom field name for lookup
field_valuestring / int123456Yes, if matching = customCustom field value
emailstring"user@example.com"Yes, if matching = emailMember email
phonestring"+1234567890"Yes, if matching = phoneMember phone number in international format
profile_idstring"profile123"Yes, if matching = profile_idProfile ID

Request example​

  • JSON
  • XML
{
"token": "abc123def456",
"loyalty_program_id": 123,
"promotion_id": "PROMO123",
"points_currency_eid": "stars",
"amount": "100.50",
"matching": "email",
"email": "user@example.com",
"is_temp": false,
"transaction_eid": "uiuiuiiu-ouiihfs-sdfsdf",
"external_data": {
"order_id": "ORDER-123"
}
}
<xml>
<token>abc123def456</token>
<loyalty_program_id>123</loyalty_program_id>
<promotion_id>PROMO123</promotion_id>
<points_currency_eid>stars</points_currency_eid>
<amount>100.50</amount>
<matching>email</matching>
<email>user@example.com</email>
<is_temp>false</is_temp>
<transaction_eid>uiuiuiiu-ouiihfs-sdfsdf</transaction_eid>
</xml>

Response example​

  • JSON
  • XML
{
"error": 0,
"error_text": "Successful operation",
"data": {
"transaction_id": "TRANS12345",
"balance_before": "500.00",
"balance_after": "399.50"
}
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
<data>
<transaction_id>TRANS12345</transaction_id>
<balance_before>500.00</balance_before>
<balance_after>399.50</balance_after>
</data>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
transaction_idstringPoints redemption transaction ID
balance_beforestringPoints balance before redemption
balance_afterstringPoints balance after redemption
Last updated on Nov 14, 2025
Previous
Accrue points to a member
Next
Commit temporary transaction
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.