Your store must be approved for the affiliate programme. Apply in the dashboard under Affiliates. Until then, every affiliate endpoint returns
403 with code FEATURE_NOT_ENABLED.Endpoints
Approving partners, reviewing flagged conversions, and sending payouts stay in the dashboard.
Amounts and IDs
- Amounts in API responses are integers in minor units.
commission: 499inUSDis $4.99. - Webhook payloads use major units.
commission: 4.99is $4.99. - Partners and payouts use 16-character public IDs. Conversions use the order’s public
invoice_id.
Pagination
List endpoints return 25 items per page with anext_cursor. Pass it back as cursor to get the next page. next_cursor is null on the last page.
counts, the number of records per status:
Invite a partner
Response (201)
How orders are attributed
An order is credited to a partner in one of these ways, in priority order:- Partner coupon. The buyer used a coupon bound to the partner.
- Tracking link. The buyer opened a partner link:
https://your-store.com/any-page?ref=CODEorhttps://your-store.com/r/CODE. The storefront remembers the click for the programme’s cookie window. - API. You passed
affiliateCodewhen creating the invoice. The conversion hassource: "api".
Commission states
Refunds reverse the commission automatically.
commission is always the net amount.
Webhooks
Subscribe to these events in Developers › Webhooks. They use the same envelope andPapelShip-Signature header as order events.
affiliate.conversion
affiliate.payout_sent
Errors
Affiliate errors include a machine-readablecode: