v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Deduct points and alternate currencies from user

post/customers/lookup/negativePointsAdjustment

Query parameters

identifierName'serId' | 'externalId' | 'mobile' required

Identifier of the user

identifierValuestring required

Value of the identifier.

source'INSTORE' | 'WEB_ENGAGE' | 'WECHAT' required

Source in which the identifier is available.

Request body

pointsToBeAdjustedinteger required

Points to be deducted for the user. Provide a value greater than 0. This is applicable for points.

programIdinteger

Unique ID of the loyalty program to associate with the promotion.

reasonOfReturnstring required

Enter the reason for the return of the points.

promotionIdinteger

Unique identifier for the promotion

promotionIdentifierstring

Identifier for the promotion.

pointsAwardedRefType'Reference type for points awarded.'

bill_regular, bill_promotions, line_item_regular, line_item_promotions, customer_promotions

pointsAwardedIdinteger

Unique ID of the awarded points.

alternateCurrencyNamestring

Unique name of the alternate currency.

pointCategoryTypes'REGULAR' | 'PROMISED' | 'EXTERNAL_TRIGGER_BASED'

Points category to deduct for the user.

valueToBeAdjustedinteger

Alternate currencies to be deducted for the user. Provide a value greater than 0. This is applicable for alternate currencies. Provide the alternateCurrencyName when using this parameter.

Response

200

OR

Example response

{
  "status": "success",
  "pointsAvailable": "670.000",
  "message": "points deducted successfully for the user "
}