Affiliates

Add to or take from an affiliate’s balance, with a reason (audited ledger entry)

POST
/v1/stores/{storeId}/affiliates/{affiliateId}/adjust

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
affiliateId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/stores/string/affiliates/string/adjust" \  -H "Content-Type: application/json" \  -d '{    "amountMinor": -9007199254740991,    "currency": "str",    "reason": "string",    "idempotencyKey": "stringst"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "amountMinor": -9007199254740991,  "currency": "string",  "reason": "string",  "createdBy": "string",  "createdAt": "string"}