Affiliates

Set Affiliate Code

Sets the affiliate code for a customer in a shop. Suspend the affiliate instead of clearing their code.

put/v1/shops/{shopId}/affiliates/{customerId}/code

Request body

affiliate_codestring required

The code to assign.

Example request

{
  "affiliate_code": "PARTNER10"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.