List Invite Codes
GET/api/admin/portal/invite-codes
List the tenant's portal invite codes, newest first. A buyer types an invite code on the portal sign-up page to join with the settings it carries: a new account with preset pricing, terms, credit limit and catalogs, or an extra login on one existing customer.
customers:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Supports the standard list contract: filter[...] quick filters (each column also takes filter[column.operator]), a filter_groups advanced-filter tree, filter[search] with search_columns, sort, page and per_page. Archived codes are hidden unless filter[archived] is 1 or all.
Invite code fields
code: what buyers type, stored uppercase (letters, numbers and dashes). Unique across archived codes too, so a retired code is never reissued.name: internal label, never shown to buyers.target:new_account(each sign-up becomes a new customer with the code's settings) orexisting_customer(each sign-up becomes an extra login oncustomer, withjoiner_role).customer(id,name,archived): the customer people join, for anexisting_customercode; null otherwise.customer_unavailableis true when that customer was deleted or archived; the code then refuses every sign-up until another customer is chosen.joiner_role: the role of logins created by anexisting_customercode:buyer,approverorviewer(never company admin). Null fornew_accountcodes.pricing_tier,payment_term,credit_limit,catalogs,sales_rep,store: what anew_accountcode provisions. A null or empty value falls back to the tenant's approval default (see Get Approval Defaults). Always empty forexisting_customercodes, which never change the customer's settings.allowed_email_domains: lowercase domains without@; empty = any email.approval_mode:instant(the account is approved at sign-up and the invitation emailed) orreview(the application waits for a reviewer, prefilled from the code).expires_at(UTC) /expires_on(the tenant-local date it expires at the end of),max_uses(null = unlimited),uses_count(uses not later rejected),last_used_at.welcome_message: shown to the buyer when the code is accepted.is_active: false = paused by hand.status: derived, in precedence orderarchived>disabled>expired>used_up>active.signup_url: the buyer-facing sign-up link with the code filled in, on the tenant's portal host and carrying the store brand.
Request
Responses
- 200
- 401
- 403
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.