Skip to main content

Claim product's shortlink

A Shortlink is used to identify the affiliate who claimed the product. Followers of the affiliate can make purchases using this Shortlink, and orders made within this timeframe will be attributed to the respective affiliate.

Method: POST

Parameters

  • id
    Product ID: Identifies the product for which the Shortlink will be claimed.

Body

  • extensionCode The field is for extensions. If you have sub-affiliates and need to identify which promotional orders belong to a specific sub-affiliate, you can use this field for marking. If the specified sub-affiliate completes an order transaction, we will return this field in the bill or order, making it easier for you to track the sales volume of your sub-affiliates.
Notice

The extensionCode must consist of a combination of numbers and letters.

Response

{
"data": {
"haveOtherProductNotClaim": false,
"shortLink": "string"
},
"message": "string",
"params": [
{}
],
"requestId": "string",
"status": 0
}
  • shortLink short link which generate by api

  • haveOtherProductNotClaim Through this product, find its brand owner and check if there are other products under the same brand owner that have not been claimed yet. If there are, you can then use the /api/affiliate/promotion/{id}/claim/links endpoint to claim them in bulk.

Notice

If you claim all products under a certain brand owner, any orders made for other products facilitated by the Shortlink of any product under that brand owner will also be attributed to the affiliate.