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
- Organization
platform (active) - Permission
platform:customers_add
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The 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
| Field | What it does |
|---|---|
emailstring (email)required | No description in the spec yet. |
customer_typeenum | No description in the spec yet. One of Default |
customer_namestring | No description in the spec yet. |
external_refstring | No description in the spec yet. |
deliveryenum | How 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 Default |
Response 201
Sent
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
emailstringrequired | No description in the spec yet. |
customer_typeenumrequired | No description in the spec yet. One of |
customer_namestringrequired | No description in the spec yet. |
external_refstringrequired | No description in the spec yet. |
statusenumrequired | No description in the spec yet. One of |
accepted_org_idstring (uuid) | No description in the spec yet. |
expires_atstring (date-time)required | No description in the spec yet. |
created_atstring (date-time)required | No description in the spec yet. |
linkstring | The invitation link, returned by create and resend only when delivery was screen |
Errors to handle
| Code | What it means and what to do |
|---|---|
customer_type_not_offered422 | The 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_email422 | Enter a valid billing email. |
platform_in_review403 | Your platform application is still under Payezy review. You can read customers while in review; inviting and creating customers unlocks once the platform is |
Every error is a Problem document. Branch on code; quote request_id to support.