Customers
Get Customers
Retrieves the customers.
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.
orderColumnstring"id" | "email" | "discord_id" | "discord_username" | "balance" | "total_completed" | "total_spent_usd" | "last_completed_at" | "newsletter_at" | "affiliate_code"orderDirectionstring"asc" | "desc"idstringemailstringdiscord_idstringdiscord_usernamestringsubscribedstringaffiliate_codestringaffiliate_referrer_emailstringPath Parameters
shopIdRequiredintegerThe shop ID.
Get Customer
Retrieves a specific customer.
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 customer ID.
Get Customer Balance Transactions
Retrieves the balance transactions for a customer in a shop.
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 customer ID.
Edit Customer Balance
Adds or deducts balance to/from a customer in a shop.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/jsonRequiredamountRequirednumberMust be at least -1000. Must not be greater than 1000.
descriptionstringMust not be greater than 255 characters.
Path Parameters
shopIdRequiredintegerThe shop ID.
customerIdRequiredstringEdit Customer Balance
Adds or deducts balance to/from a customer in a shop.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/jsonRequiredamountRequirednumberMust be at least -1000. Must not be greater than 1000.
descriptionstringMust not be greater than 255 characters.
Path Parameters
shopIdRequiredintegerThe shop ID.
customerIdRequiredstringEdit Customer Affiliate Code
Sets or clears the affiliate code for a customer in a shop.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/jsonOptionalaffiliate_codestringMust not be greater than 50 characters.
Path Parameters
shopIdRequiredintegerThe shop ID.
customerIdRequiredstring