Skip to main content

Get Invite Code

GET 

/api/admin/portal/invite-codes/:inviteCode

Get one invite code with its settings, derived status, use count and sign-up link.

Required scope: customers:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

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) or existing_customer (each sign-up becomes an extra login on customer, with joiner_role).
  • customer (id, name, archived): the customer people join, for an existing_customer code; null otherwise. customer_unavailable is 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 an existing_customer code: buyer, approver or viewer (never company admin). Null for new_account codes.
  • pricing_tier, payment_term, credit_limit, catalogs, sales_rep, store: what a new_account code provisions. A null or empty value falls back to the tenant's approval default (see Get Approval Defaults). Always empty for existing_customer codes, 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) or review (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 order archived > 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​

OK

Response Headers
    Content-Type