Affiliates
List Affiliates
Returns the shop's affiliates (customers with an affiliate code) with their stats.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/jsonOptionalpageintegerperPageintegerMust be at least 1. Must not be greater than 100.
searchstringMust not be greater than 100 characters.
tier_idintegersegmentstring"active" | "inactive" | "new"orderColumnstring"id" | "email" | "affiliate_code" | "affiliate_referrer_earnings" | "affiliate_balance" | "affiliate_code_set_at" | "referrals_count"orderDirectionstring"asc" | "desc"Path Parameters
shopIdRequiredintegerThe shop ID.
Affiliate Stats
Aggregate stats for the shop's affiliate program, with 30-day deltas.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopIdRequiredintegerThe shop ID.
Get Affiliate
Detail view: referrals, attributed orders, affiliate wallet ledger and payout requests.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopIdRequiredintegerThe shop ID.
customerIdRequiredintegerThe shop customer ID.
Assign Tier
Assigns an affiliate to a tier. Pass a null tier_id to use the default tier.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/jsonOptionaltier_idintegerThe tier ID, or null for the default tier.
Path Parameters
shopIdRequiredintegerThe shop ID.
customerIdRequiredintegerThe shop customer ID.
Invite Affiliate
Creates (or reuses) a customer by email and assigns them an affiliate code, making them an affiliate.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/jsonRequiredemailRequiredstringThe affiliate's email.
affiliate_codeRequiredstringThe code to assign.
tier_idintegerOptional tier to place them in.
Path Parameters
shopIdRequiredintegerThe shop ID.