Skip to main content

Check Invite Code

GET 

/api/portal/register/invite-code

Check an invite code before submitting an application. No authentication. Rate limited to 10 requests a minute.

A usable code returns 200 with what the sign-up page needs to show:

  • code: the code as stored (uppercase).
  • approval_mode: instant (the account is set up as soon as the application is sent) or review (a reviewer approves it).
  • joins_customer_name: for a code that adds the applicant to an existing customer, that customer's name; otherwise null.
  • allowed_email_domains: the email domains the code accepts (lowercase, no @); empty = any.
  • welcome_message: the merchant's message for code holders, or null.

The code's pricing, payment terms and credit limit are never returned.

A code that cannot be used returns 422 with valid: false, a reason and a message to show the applicant:

  • invalid: no such code, or it is paused, archived or no longer usable. These cases are not told apart, so the check reveals nothing about codes the applicant cannot use.
  • expired: the code is past its expiry date.
  • used_up: the code has reached its use limit.

A passing check does not reserve a use: the code is checked again, under a lock, when the application is submitted.

Request​

Responses​

OK

Response Headers
    Content-Type