Customer account
Your affiliate area
curl -X GET "https://example.com/v1/public/stores/string/account/affiliate"{ "program": { "enabled": true, "enrollmentMode": "manual", "codeEditable": true, "publicLeaderboard": true, "balanceMode": "shared", "transferEnabled": true, "payoutsEnabled": true, "payoutMinMinor": -9007199254740991, "payoutInstructions": "string", "payoutOptions": { "paypal": true, "crypto": [ { "asset": "string", "name": "string", "symbol": "string" } ] }, "applicationQuestion": "string", "attributionWindowDays": -9007199254740991, "publicTiers": [ { "name": "string", "commissionBp": -9007199254740991, "buyerDiscountBp": -9007199254740991 } ] }, "affiliate": { "code": "string", "referralUrl": "string", "status": "applied", "tierName": "string", "commissionBp": -9007199254740991, "buyerDiscountBp": -9007199254740991, "statusReason": "string", "createdAt": "string", "leaderboardOptIn": true, "leaderboardName": "string" }, "storeBalanceMinor": -9007199254740991, "balances": [ { "currency": "string", "availableMinor": -9007199254740991, "pendingPayoutMinor": -9007199254740991, "heldMinor": -9007199254740991 } ], "stats": { "clicks": -9007199254740991, "referrals": -9007199254740991, "referredCustomers": -9007199254740991, "earned": [ { "currency": "string", "amountMinor": -9007199254740991 } ] }, "referred": [ { "email": "string", "since": "string" } ], "history": [ { "id": "string", "kind": "commission", "account": "affiliate_balance", "currency": "string", "amountMinor": -9007199254740991, "description": "string", "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5", "at": "string" } ], "commissions": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "orderNumber": -9007199254740991, "state": "string", "commissionMinor": -9007199254740991, "reversedMinor": -9007199254740991, "currency": "string", "label": "string", "releaseAt": "string", "createdAt": "string" } ], "payouts": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": -9007199254740991, "amountMinor": -9007199254740991, "currency": "string", "status": "string", "payoutMethod": "other", "payoutAsset": "string", "payoutAddress": "string", "batchState": "waiting", "reference": "string", "sellerNote": "string", "createdAt": "string", "processedAt": "string" } ]}