API reference / Platform customers
Create a platform customer
POST/v1/platforms/{orgId}/customers
Opens an individual or business account for a customer and stores their KYC/KYB
details as a draft, linked to the platform. The response includes the document
requirements. Upload those files, then submit the application; it enters the Payezy
review queue the same way a direct customer's application does. The owner email is
already a member: email-verified, with no password until they set one. Payezy does not
email that customer and does not return a claim link. Either account type can be
opened here. A reference already used by another customer of the platform is refused
with external_ref_exists. delivery is ignored. accept_terms on this call is ignored;
the agreement is accepted when the application is submitted.
When to use it
You already hold the customer's details and want to open the account for them. To let the customer sign up and verify on their own, send an invitation instead. Set external_ref to your own id so a retried import cannot create a duplicate.
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 |
|---|---|
typeenumrequired | No description in the spec yet. One of |
namestring | Display name; defaults to the legal name |
external_refstring | No description in the spec yet. |
owner_emailstring (email) | Login address of the owner. Defaults to the individual's email or the business control person's. Payezy does not email it. |
applicationOnboardingDatarequired | No description in the spec yet. |
application.individualPerson | No description in the spec yet. |
application.individual.first_namestring | No description in the spec yet. |
application.individual.last_namestring | No description in the spec yet. |
application.individual.date_of_birthstring | YYYY-MM-DD |
application.individual.emailstring | No description in the spec yet. |
application.individual.phonestring | No description in the spec yet. |
application.individual.ssnstring | US Social Security number. Write-only; responses carry a masked value. Not used outside the United States. |
application.individual.identityGovernmentId | Number and type of a government-issued photo ID, for a person outside the United States. The number is write-only; responses are masked. |
application.individual.identity.numberstring | No description in the spec yet. |
application.individual.identity.typeenum | No description in the spec yet. One of |
application.individual.titlestring | No description in the spec yet. |
application.individual.ownership_percentagestring | No description in the spec yet. |
application.individual.addressPersonAddress | Where a person lives. Country defaults to US. Outside the US, state is optional and the postal code is free-form. |
application.individual.address.street_line_1stringrequired | No description in the spec yet. |
application.individual.address.street_line_2string | No description in the spec yet. |
application.individual.address.citystringrequired | No description in the spec yet. |
application.individual.address.statestring | US state or territory abbreviation when country is US. Optional elsewhere. |
application.individual.address.zipstringrequired | ZIP in the US. Any postal code elsewhere. |
application.individual.address.countrystring | ISO 3166-1 alpha-2 country of residence. Defaults to US. |
application.businessBusiness | No description in the spec yet. |
application.business.legal_namestring | No description in the spec yet. |
application.business.einstring | Responses carry a masked value |
application.business.websitestring | No description in the spec yet. |
application.business.phonestring | No description in the spec yet. |
application.business.emailstring | No description in the spec yet. |
application.business.addressAddress | No description in the spec yet. |
application.business.address.street_line_1stringrequired | No description in the spec yet. |
application.business.address.street_line_2string | No description in the spec yet. |
application.business.address.citystringrequired | No description in the spec yet. |
application.business.address.statestringrequired | No description in the spec yet. |
application.business.address.zipstringrequired | No description in the spec yet. |
application.controllerPerson | No description in the spec yet. |
application.controller.first_namestring | No description in the spec yet. |
application.controller.last_namestring | No description in the spec yet. |
application.controller.date_of_birthstring | YYYY-MM-DD |
application.controller.emailstring | No description in the spec yet. |
application.controller.phonestring | No description in the spec yet. |
application.controller.ssnstring | US Social Security number. Write-only; responses carry a masked value. Not used outside the United States. |
application.controller.identityGovernmentId | Number and type of a government-issued photo ID, for a person outside the United States. The number is write-only; responses are masked. |
application.controller.identity.numberstring | No description in the spec yet. |
application.controller.identity.typeenum | No description in the spec yet. One of |
application.controller.titlestring | No description in the spec yet. |
application.controller.ownership_percentagestring | No description in the spec yet. |
application.controller.addressPersonAddress | Where a person lives. Country defaults to US. Outside the US, state is optional and the postal code is free-form. |
application.controller.address.street_line_1stringrequired | No description in the spec yet. |
application.controller.address.street_line_2string | No description in the spec yet. |
application.controller.address.citystringrequired | No description in the spec yet. |
application.controller.address.statestring | US state or territory abbreviation when country is US. Optional elsewhere. |
application.controller.address.zipstringrequired | ZIP in the US. Any postal code elsewhere. |
application.controller.address.countrystring | ISO 3166-1 alpha-2 country of residence. Defaults to US. |
application.beneficial_ownersPerson[] | No description in the spec yet. |
application.beneficial_owners[].first_namestring | No description in the spec yet. |
application.beneficial_owners[].last_namestring | No description in the spec yet. |
application.beneficial_owners[].date_of_birthstring | YYYY-MM-DD |
application.beneficial_owners[].emailstring | No description in the spec yet. |
application.beneficial_owners[].phonestring | No description in the spec yet. |
application.beneficial_owners[].ssnstring | US Social Security number. Write-only; responses carry a masked value. Not used outside the United States. |
application.beneficial_owners[].identityGovernmentId | Number and type of a government-issued photo ID, for a person outside the United States. The number is write-only; responses are masked. |
application.beneficial_owners[].identity.numberstring | No description in the spec yet. |
application.beneficial_owners[].identity.typeenum | No description in the spec yet. One of |
application.beneficial_owners[].titlestring | No description in the spec yet. |
application.beneficial_owners[].ownership_percentagestring | No description in the spec yet. |
application.beneficial_owners[].addressPersonAddress | Where a person lives. Country defaults to US. Outside the US, state is optional and the postal code is free-form. |
application.beneficial_owners[].address.street_line_1stringrequired | No description in the spec yet. |
application.beneficial_owners[].address.street_line_2string | No description in the spec yet. |
application.beneficial_owners[].address.citystringrequired | No description in the spec yet. |
application.beneficial_owners[].address.statestring | US state or territory abbreviation when country is US. Optional elsewhere. |
application.beneficial_owners[].address.zipstringrequired | ZIP in the US. Any postal code elsewhere. |
application.beneficial_owners[].address.countrystring | ISO 3166-1 alpha-2 country of residence. Defaults to US. |
accept_termsboolean | Ignored. Accept the agreement when submitting the application. |
terms_versionstring | Ignored. Send the current version when submitting the application. |
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
Created as a draft, with the document requirements
| Field | What it does |
|---|---|
customerPlatformCustomerrequired | No description in the spec yet. |
customer.org_idstring (uuid)required | No description in the spec yet. |
customer.namestringrequired | No description in the spec yet. |
customer.typeenumrequired | No description in the spec yet. One of |
customer.statusenumrequired | No description in the spec yet. One of |
customer.status_reasonstringrequired | No description in the spec yet. |
customer.external_refstringrequired | The platform's own identifier for this customer |
customer.sourceenumrequired | No description in the spec yet. One of |
customer.joined_atstring (date-time)required | No description in the spec yet. |
customer.availablestringrequired | No description in the spec yet. |
customer.postedstringrequired | No description in the spec yet. |
customer.awaiting_claimbooleanrequired | True only for an older platform-created account that still has no member |
verification_statusenumrequired | No description in the spec yet. One of |
applicationOnboardingApplicationrequired | No description in the spec yet. |
application.idstring (uuid)required | No description in the spec yet. |
application.entity_typeenumrequired | No description in the spec yet. One of |
application.statusenumrequired | No description in the spec yet. One of |
application.dataOnboardingDatarequired | No description in the spec yet. |
application.data.individualPerson | No description in the spec yet. |
application.data.individual.first_namestring | No description in the spec yet. |
application.data.individual.last_namestring | No description in the spec yet. |
application.data.individual.date_of_birthstring | YYYY-MM-DD |
application.data.individual.emailstring | No description in the spec yet. |
application.data.individual.phonestring | No description in the spec yet. |
application.data.individual.ssnstring | US Social Security number. Write-only; responses carry a masked value. Not used outside the United States. |
application.data.individual.identityGovernmentId | See GovernmentId. |
application.data.individual.titlestring | No description in the spec yet. |
application.data.individual.ownership_percentagestring | No description in the spec yet. |
application.data.individual.addressPersonAddress | See PersonAddress. |
application.data.businessBusiness | No description in the spec yet. |
application.data.business.legal_namestring | No description in the spec yet. |
application.data.business.einstring | Responses carry a masked value |
application.data.business.websitestring | No description in the spec yet. |
application.data.business.phonestring | No description in the spec yet. |
application.data.business.emailstring | No description in the spec yet. |
application.data.business.addressAddress | See Address. |
application.data.controllerPerson | No description in the spec yet. |
application.data.controller.first_namestring | No description in the spec yet. |
application.data.controller.last_namestring | No description in the spec yet. |
application.data.controller.date_of_birthstring | YYYY-MM-DD |
application.data.controller.emailstring | No description in the spec yet. |
application.data.controller.phonestring | No description in the spec yet. |
application.data.controller.ssnstring | US Social Security number. Write-only; responses carry a masked value. Not used outside the United States. |
application.data.controller.identityGovernmentId | See GovernmentId. |
application.data.controller.titlestring | No description in the spec yet. |
application.data.controller.ownership_percentagestring | No description in the spec yet. |
application.data.controller.addressPersonAddress | See PersonAddress. |
application.data.beneficial_ownersPerson[] | No description in the spec yet. |
application.data.beneficial_owners[].first_namestring | No description in the spec yet. |
application.data.beneficial_owners[].last_namestring | No description in the spec yet. |
application.data.beneficial_owners[].date_of_birthstring | YYYY-MM-DD |
application.data.beneficial_owners[].emailstring | No description in the spec yet. |
application.data.beneficial_owners[].phonestring | No description in the spec yet. |
application.data.beneficial_owners[].ssnstring | US Social Security number. Write-only; responses carry a masked value. Not used outside the United States. |
application.data.beneficial_owners[].identityGovernmentId | See GovernmentId. |
application.data.beneficial_owners[].titlestring | No description in the spec yet. |
application.data.beneficial_owners[].ownership_percentagestring | No description in the spec yet. |
application.data.beneficial_owners[].addressPersonAddress | See PersonAddress. |
application.required_documentsRequiredDocument[]required | No description in the spec yet. |
application.required_documents[].kindstringrequired | No description in the spec yet. |
application.required_documents[].display_namestringrequired | No description in the spec yet. |
application.required_documents[].person_labelstring | No description in the spec yet. |
application.required_documents[].statusstringrequired | No description in the spec yet. |
application.documentsOnboardingDocument[]required | No description in the spec yet. |
application.documents[].idstring (uuid)required | No description in the spec yet. |
application.documents[].kindstringrequired | No description in the spec yet. |
application.documents[].person_labelstring | No description in the spec yet. |
application.documents[].person_slotstring | individual, controller, or beneficial_owners[n] |
application.documents[].file_namestringrequired | No description in the spec yet. |
application.documents[].size_bytesintegerrequired | No description in the spec yet. |
application.documents[].statusenumrequired | uploaded: waiting for Payezy review; approved: accepted by Payezy, being sent; returned: Payezy asked for a replacement (see problem) One of |
application.documents[].identity_document_typestring | No description in the spec yet. |
application.documents[].has_backboolean | No description in the spec yet. |
application.documents[].retainedboolean | Stored by Payezy and not sent to the banking partner. Still required before approval. |
application.documents[].problemstring | Why a failed or returned document was not accepted and what to do next |
application.documents[].created_atstring (date-time)required | No description in the spec yet. |
application.document_optionsDocumentOption[] | A document type the customer can upload now |
application.document_options[].kindstringrequired | No description in the spec yet. |
application.document_options[].display_namestringrequired | No description in the spec yet. |
application.document_options[].person_labelstring | Send as person_label when uploading; the document is for this person |
application.document_options[].person_slotstring | Send as person_slot when uploading. individual, controller, or beneficial_owners[n] |
application.document_options[].requestedbooleanrequired | Verification is waiting for this document |
application.document_options[].identity_typesIdentityType[] | For identity documents, the ID types accepted; send one as identity_document_type |
application.partnerstring | No description in the spec yet. |
application.termsTerms | No description in the spec yet. |
application.terms.titlestringrequired | No description in the spec yet. |
application.terms.versionstringrequired | No description in the spec yet. |
application.terms.urlstringrequired | No description in the spec yet. |
application.submitted_atstring (date-time) | No description in the spec yet. |
application.decision_reasonstring | No description in the spec yet. |
claimPlatformCustomerClaim | No description in the spec yet. |
claim.idstring (uuid)required | No description in the spec yet. |
claim.emailstringrequired | No description in the spec yet. |
claim.statusenumrequired | No description in the spec yet. One of |
claim.expires_atstring (date-time)required | No description in the spec yet. |
claim.accepted_atstring (date-time) | No description in the spec yet. |
claim.linkstring | The claim link. Create always returns it, because Payezy does not email that customer. Resend returns it only when delivery was screen. |
Events it causes
Errors to handle
| Code | What it means and what to do |
|---|---|
external_ref_exists409 | Another active customer of your platform already has this external_ref.The response's |
individual_exists409 | The owner email already owns a personal (individual) account. A person can own one personal account. Create a business account, or use the existing one. |
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. |
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 |
invalid_application422 | The KYC/KYB data is incomplete or inconsistent. Read |
invalid_owner_email422 | enter the email address the customer will sign in with |
terms_required422 | The account agreement was not accepted. Send |
Every error is a Problem document. Branch on code; quote request_id to support.