Redeem Points

This API enables you to redeem points of a customer.

❗️

Make sure you have the appropriate access control configured. For more information, see access group documentation.

API endpoint

/v1.1/points/redeem

Prerequisites

  • Basic Authentication
  • Default access group

Resource information

URI
HTTP methodGET
AuthenticationBasic
Pagination supported?NO
Rate limitYES
Batch supportNO

📘

Notes

If you are using validation code, make sure to use it within the validity period.

  • You can check the validity set for the validation code in OTP code validity period field on InTouch > Settings > Organization Setup > OTPConfigurations page.

Body parameters

ParameterData TypeDescription
redeemArrayAn array containing objects representing individual redemption transactions
points_redeemedNumberThe number of points that were redeemed in the transaction
transaction_numberStringUnique identifier for the transaction.
customerObjectAn object containing information about the customer involved in the transaction
mobile*StringThe mobile phone number of the customer
notesStringNotes or additional information about the transaction
validation_codeStringValidation code for the transaction.
custom_fieldsObjectOrganization-specific custom fields. Refer to the documentation on points redemption custom fields for more information.

Query parameters

ParameterData TypeDescription
user_group2_primary_user_idStringUnique user ID of the primary member of the group associated with the points to redeem.
user_group2_idStringUnique ID of the group associated with the points to redeem.
user_group2_external_idStringUnique external ID of the group associated with the points to redeem.
user_group2_primary_user_sourceStringSource in which the primary user’s identifier is available.
Allowed values: FACEBOOK, WEB_ENGAGE, WECHAT, INSTORE, MARTJACK, TMALL, TAOBAO, JD, ECOMMERCE, WEBSITE, LINE, MOBILE_APP.
user_group2_primary_user_accountIdStringAccount ID of the source with multiple accounts such as WECHAT.
user_group2_primary_user_identifier_typeStringIdentifier type used for the primary member.
Allowed values: mobile, email, cardnumber, cardExternalId, id.
user_group2_primary_user_identifier_valueStringValue of the specified identifier type.
skip_validationBooleanPass true to skip customer validation to redeem points.
program_idStringUnique ID of the program from which points need to be redeemed. Applicable for orgs with multi-loyalty program enabled.
validation_typeStringValidation type used to redeem points.
Allowed values: MISSED_CALL, SMS.

❗️

Note

You must provide at least one of the parameters marked with ** for group level points redemption.

Response parameter

ParameterData TypeDescription
responseObjectThe root object that contains all the details of the response.
statusObjectAn object containing the status details of the response.
successStringA string indicating the success status of the response.
codeNumberThe HTTP status code associated with the response.
messageStringA general message providing additional information about the status of the response.
responsesObjectAn object containing detailed response data.
pointsObjectAn object containing detailed information about the points involved in the transaction.
mobileStringThe mobile phone number associated with the account involved in the transaction.
emailStringThe email address associated with the account involved in the transaction.
external_idStringAn external identifier for the transaction.
user_idStringThe user ID associated with the account involved in the transaction.
redemption_idStringA unique identifier for the redemption transaction.
points_redeemedStringThe number of points that were redeemed in the transaction.
redemption_purposeStringThe purpose of the redemption.
redeemed_valueNumberThe value of the points that were redeemed.
redeemed_local_valueNumberThe local value of the points that were redeemed.
balanceNumberThe remaining balance of points in the account after the redemption.
side_effectsObjectAn object containing information about any side effects of the redemption.
effectArray of ObjectsAn array containing objects representing individual effects of the redemption.
idNumberA unique identifier for an individual effect.
case_valueStringA string indicating whether a certain case is true for the effect.
num_pointsNumberThe number of points involved in the effect.
currency_valueNumberThe currency value associated with the effect.
validation_codeStringA validation code associated with the effect.
points_redemption_summary_idStringA summary ID associated with the points redemption.
redeemed_on_bill_numberStringThe bill number associated with the redemption.
redeemed_on_bill_idNumberThe bill ID associated with the redemption.
typeStringThe type of effect.
item_statusObjectAn object containing the status details of the item in the response.
codeNumberThe HTTP status code associated with the item status (800 indicates points were redeemed).
messageStringA general message providing additional information about the status of the item in the response.

Error code

Error CodeDescription
3316 - group redemption action executed from non group redemption payloadCreate a JIRA ticket to the Product Support team and disable the configuration ENABLE_GROUP_PROGRAMS_REDEMPTION.

Api Specific Error Code

Error CodeDescriptionReason
801Trying to redeem invalid pointsInvalid points parameter passed (e.g, negative points value)
878Invalid decimal precision in points redeemedThis error occurs when the points redeemed field contains a value with more than three decimal places (e.g., "1.1111" or "10.12345"). The API expects this field to have a maximum of three decimal places. If this precision is exceeded, error 878 is returned.
1632Invalid or non-existent groupIdThe groupId provided is missing, invalid, or does not exist.
828Points redemption not configured for the groupThe group does not have points redemption set up in the system.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!