Payezydevelopers
Sandbox

API reference / Platform invitations and enrollment

Invite a customer

POST/v1/platforms/{orgId}/invitations

Emails a prospective customer a link to open an account under the platform.

When to use it

The customer should enter and verify their own details. Customer types follow your platform profile.

Before you call it

  • Organizationplatform (active)
  • Permissionplatform:customers_add

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.

Request body

FieldWhat it does
emailstring (email)requiredNo description in the spec yet.
customer_typeenumNo description in the spec yet.

One of individual business any

Default "any"

customer_namestringNo description in the spec yet.
external_refstringNo description in the spec yet.
deliveryenumHow an invitation reaches the invitee. screen sends no email and returns the link to the sender instead; it is only accepted in test environments (staging, local) and refused in production, which always emails.

One of email screen

Default "email"

Response 201

Sent

FieldWhat it does
idstring (uuid)requiredNo description in the spec yet.
emailstringrequiredNo description in the spec yet.
customer_typeenumrequiredNo description in the spec yet.

One of individual business any

customer_namestringrequiredNo description in the spec yet.
external_refstringrequiredNo description in the spec yet.
statusenumrequiredNo description in the spec yet.

One of pending accepted revoked expired

accepted_org_idstring (uuid)No description in the spec yet.
expires_atstring (date-time)requiredNo description in the spec yet.
created_atstring (date-time)requiredNo description in the spec yet.
linkstringThe invitation link, returned by create and resend only when delivery was screen

Errors to handle

CodeWhat it means and what to do
customer_type_not_offered422The invitation asked for a customer type your platform profile does not offer.

Update the platform profile's customer types, or invite with an offered type.

invalid_email422Enter a valid billing email.
platform_in_review403Your platform application is still under Payezy review.

You can read customers while in review; inviting and creating customers unlocks once the platform is active.

Every error is a Problem document. Branch on code; quote request_id to support.