v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Link/Delink Card

Lets you issue card to a loyalty customer or delink a card of a customer.

  • To issue an external or manually generated card, you need to first add the card using /v2/card API.
  • To issue auto-generated card, you first need to issue the card using the card/generate API.
post/customers/{userId}/changeIdentifier

Path parameters

userIdinteger required

Unique ID of the customer to fetch coupon details.

Query parameters

source'INSTORE' | 'FACEBOOK' | 'WEB_ENGAGE' | 'WECHAT' | 'MARTJACK' | 'TMALL' | 'TAOBAO' | 'JD' | 'ECOMMERCE' | 'WEBSITE' | 'LINE' | 'MOBILE_APP' required

Source from which the card is issued.

accountIdstring

For sources with multiple accounts, pass the ID of the source account from which the card is issued.

Request body

Response

200

createdIdinteger

Example response

{
  "createdId": 161670961
}