Affiliates

Correct a customer’s lifetime referrer with an audit reason

PUT
/v1/stores/{storeId}/customers/{customerId}/referrer

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
customerId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/stores/string/customers/string/referrer" \  -H "Content-Type: application/json" \  -d '{    "affiliateId": "db499c7c-f1f8-4bce-9ff0-10cc890eeda0",    "reason": "string"  }'
{  "ok": true}