Payezydevelopers
Sandbox

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

  • 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
typeenumrequiredNo description in the spec yet.

One of individual business

namestringDisplay name; defaults to the legal name
external_refstringNo 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.
applicationOnboardingDatarequiredNo description in the spec yet.
application.individualPersonNo description in the spec yet.
application.individual.first_namestringNo description in the spec yet.
application.individual.last_namestringNo description in the spec yet.
application.individual.date_of_birthstringYYYY-MM-DD
application.individual.emailstringNo description in the spec yet.
application.individual.phonestringNo description in the spec yet.
application.individual.ssnstringUS Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
application.individual.identityGovernmentIdNumber 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.numberstringNo description in the spec yet.
application.individual.identity.typeenumNo description in the spec yet.

One of PASSPORT DRIVER_LICENSE NATIONAL_ID

application.individual.titlestringNo description in the spec yet.
application.individual.ownership_percentagestringNo description in the spec yet.
application.individual.addressPersonAddressWhere 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_1stringrequiredNo description in the spec yet.
application.individual.address.street_line_2stringNo description in the spec yet.
application.individual.address.citystringrequiredNo description in the spec yet.
application.individual.address.statestringUS state or territory abbreviation when country is US. Optional elsewhere.
application.individual.address.zipstringrequiredZIP in the US. Any postal code elsewhere.
application.individual.address.countrystringISO 3166-1 alpha-2 country of residence. Defaults to US.
application.businessBusinessNo description in the spec yet.
application.business.legal_namestringNo description in the spec yet.
application.business.einstringResponses carry a masked value
application.business.websitestringNo description in the spec yet.
application.business.phonestringNo description in the spec yet.
application.business.emailstringNo description in the spec yet.
application.business.addressAddressNo description in the spec yet.
application.business.address.street_line_1stringrequiredNo description in the spec yet.
application.business.address.street_line_2stringNo description in the spec yet.
application.business.address.citystringrequiredNo description in the spec yet.
application.business.address.statestringrequiredNo description in the spec yet.
application.business.address.zipstringrequiredNo description in the spec yet.
application.controllerPersonNo description in the spec yet.
application.controller.first_namestringNo description in the spec yet.
application.controller.last_namestringNo description in the spec yet.
application.controller.date_of_birthstringYYYY-MM-DD
application.controller.emailstringNo description in the spec yet.
application.controller.phonestringNo description in the spec yet.
application.controller.ssnstringUS Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
application.controller.identityGovernmentIdNumber 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.numberstringNo description in the spec yet.
application.controller.identity.typeenumNo description in the spec yet.

One of PASSPORT DRIVER_LICENSE NATIONAL_ID

application.controller.titlestringNo description in the spec yet.
application.controller.ownership_percentagestringNo description in the spec yet.
application.controller.addressPersonAddressWhere 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_1stringrequiredNo description in the spec yet.
application.controller.address.street_line_2stringNo description in the spec yet.
application.controller.address.citystringrequiredNo description in the spec yet.
application.controller.address.statestringUS state or territory abbreviation when country is US. Optional elsewhere.
application.controller.address.zipstringrequiredZIP in the US. Any postal code elsewhere.
application.controller.address.countrystringISO 3166-1 alpha-2 country of residence. Defaults to US.
application.beneficial_ownersPerson[]No description in the spec yet.
application.beneficial_owners[].first_namestringNo description in the spec yet.
application.beneficial_owners[].last_namestringNo description in the spec yet.
application.beneficial_owners[].date_of_birthstringYYYY-MM-DD
application.beneficial_owners[].emailstringNo description in the spec yet.
application.beneficial_owners[].phonestringNo description in the spec yet.
application.beneficial_owners[].ssnstringUS Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
application.beneficial_owners[].identityGovernmentIdNumber 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.numberstringNo description in the spec yet.
application.beneficial_owners[].identity.typeenumNo description in the spec yet.

One of PASSPORT DRIVER_LICENSE NATIONAL_ID

application.beneficial_owners[].titlestringNo description in the spec yet.
application.beneficial_owners[].ownership_percentagestringNo description in the spec yet.
application.beneficial_owners[].addressPersonAddressWhere 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_1stringrequiredNo description in the spec yet.
application.beneficial_owners[].address.street_line_2stringNo description in the spec yet.
application.beneficial_owners[].address.citystringrequiredNo description in the spec yet.
application.beneficial_owners[].address.statestringUS state or territory abbreviation when country is US. Optional elsewhere.
application.beneficial_owners[].address.zipstringrequiredZIP in the US. Any postal code elsewhere.
application.beneficial_owners[].address.countrystringISO 3166-1 alpha-2 country of residence. Defaults to US.
accept_termsbooleanIgnored. Accept the agreement when submitting the application.
terms_versionstringIgnored. Send the current version when submitting the application.
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

Created as a draft, with the document requirements

FieldWhat it does
customerPlatformCustomerrequiredNo description in the spec yet.
customer.org_idstring (uuid)requiredNo description in the spec yet.
customer.namestringrequiredNo description in the spec yet.
customer.typeenumrequiredNo description in the spec yet.

One of individual business

customer.statusenumrequiredNo description in the spec yet.

One of kyc_required kyc_pending active restricted suspended closed

customer.status_reasonstringrequiredNo description in the spec yet.
customer.external_refstringrequiredThe platform's own identifier for this customer
customer.sourceenumrequiredNo description in the spec yet.

One of invitation enrollment_link staff platform_created

customer.joined_atstring (date-time)requiredNo description in the spec yet.
customer.availablestringrequiredNo description in the spec yet.
customer.postedstringrequiredNo description in the spec yet.
customer.awaiting_claimbooleanrequiredTrue only for an older platform-created account that still has no member
verification_statusenumrequiredNo description in the spec yet.

One of draft pending_review submitted in_review documents_required documents_review approved rejected

applicationOnboardingApplicationrequiredNo description in the spec yet.
application.idstring (uuid)requiredNo description in the spec yet.
application.entity_typeenumrequiredNo description in the spec yet.

One of individual business

application.statusenumrequiredNo description in the spec yet.

One of draft pending_review submitted in_review documents_required documents_review approved rejected

application.dataOnboardingDatarequiredNo description in the spec yet.
application.data.individualPersonNo description in the spec yet.
application.data.individual.first_namestringNo description in the spec yet.
application.data.individual.last_namestringNo description in the spec yet.
application.data.individual.date_of_birthstringYYYY-MM-DD
application.data.individual.emailstringNo description in the spec yet.
application.data.individual.phonestringNo description in the spec yet.
application.data.individual.ssnstringUS Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
application.data.individual.identityGovernmentIdSee GovernmentId.
application.data.individual.titlestringNo description in the spec yet.
application.data.individual.ownership_percentagestringNo description in the spec yet.
application.data.individual.addressPersonAddressSee PersonAddress.
application.data.businessBusinessNo description in the spec yet.
application.data.business.legal_namestringNo description in the spec yet.
application.data.business.einstringResponses carry a masked value
application.data.business.websitestringNo description in the spec yet.
application.data.business.phonestringNo description in the spec yet.
application.data.business.emailstringNo description in the spec yet.
application.data.business.addressAddressSee Address.
application.data.controllerPersonNo description in the spec yet.
application.data.controller.first_namestringNo description in the spec yet.
application.data.controller.last_namestringNo description in the spec yet.
application.data.controller.date_of_birthstringYYYY-MM-DD
application.data.controller.emailstringNo description in the spec yet.
application.data.controller.phonestringNo description in the spec yet.
application.data.controller.ssnstringUS Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
application.data.controller.identityGovernmentIdSee GovernmentId.
application.data.controller.titlestringNo description in the spec yet.
application.data.controller.ownership_percentagestringNo description in the spec yet.
application.data.controller.addressPersonAddressSee PersonAddress.
application.data.beneficial_ownersPerson[]No description in the spec yet.
application.data.beneficial_owners[].first_namestringNo description in the spec yet.
application.data.beneficial_owners[].last_namestringNo description in the spec yet.
application.data.beneficial_owners[].date_of_birthstringYYYY-MM-DD
application.data.beneficial_owners[].emailstringNo description in the spec yet.
application.data.beneficial_owners[].phonestringNo description in the spec yet.
application.data.beneficial_owners[].ssnstringUS Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
application.data.beneficial_owners[].identityGovernmentIdSee GovernmentId.
application.data.beneficial_owners[].titlestringNo description in the spec yet.
application.data.beneficial_owners[].ownership_percentagestringNo description in the spec yet.
application.data.beneficial_owners[].addressPersonAddressSee PersonAddress.
application.required_documentsRequiredDocument[]requiredNo description in the spec yet.
application.required_documents[].kindstringrequiredNo description in the spec yet.
application.required_documents[].display_namestringrequiredNo description in the spec yet.
application.required_documents[].person_labelstringNo description in the spec yet.
application.required_documents[].statusstringrequiredNo description in the spec yet.
application.documentsOnboardingDocument[]requiredNo description in the spec yet.
application.documents[].idstring (uuid)requiredNo description in the spec yet.
application.documents[].kindstringrequiredNo description in the spec yet.
application.documents[].person_labelstringNo description in the spec yet.
application.documents[].person_slotstringindividual, controller, or beneficial_owners[n]
application.documents[].file_namestringrequiredNo description in the spec yet.
application.documents[].size_bytesintegerrequiredNo description in the spec yet.
application.documents[].statusenumrequireduploaded: waiting for Payezy review; approved: accepted by Payezy, being sent; returned: Payezy asked for a replacement (see problem)

One of uploaded approved returned staged linked failed

application.documents[].identity_document_typestringNo description in the spec yet.
application.documents[].has_backbooleanNo description in the spec yet.
application.documents[].retainedbooleanStored by Payezy and not sent to the banking partner. Still required before approval.
application.documents[].problemstringWhy a failed or returned document was not accepted and what to do next
application.documents[].created_atstring (date-time)requiredNo description in the spec yet.
application.document_optionsDocumentOption[]A document type the customer can upload now
application.document_options[].kindstringrequiredNo description in the spec yet.
application.document_options[].display_namestringrequiredNo description in the spec yet.
application.document_options[].person_labelstringSend as person_label when uploading; the document is for this person
application.document_options[].person_slotstringSend as person_slot when uploading. individual, controller, or beneficial_owners[n]
application.document_options[].requestedbooleanrequiredVerification is waiting for this document
application.document_options[].identity_typesIdentityType[]For identity documents, the ID types accepted; send one as identity_document_type
application.partnerstringNo description in the spec yet.
application.termsTermsNo description in the spec yet.
application.terms.titlestringrequiredNo description in the spec yet.
application.terms.versionstringrequiredNo description in the spec yet.
application.terms.urlstringrequiredNo description in the spec yet.
application.submitted_atstring (date-time)No description in the spec yet.
application.decision_reasonstringNo description in the spec yet.
claimPlatformCustomerClaimNo description in the spec yet.
claim.idstring (uuid)requiredNo description in the spec yet.
claim.emailstringrequiredNo description in the spec yet.
claim.statusenumrequiredNo description in the spec yet.

One of pending accepted revoked expired

claim.expires_atstring (date-time)requiredNo description in the spec yet.
claim.accepted_atstring (date-time)No description in the spec yet.
claim.linkstringThe 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

CodeWhat it means and what to do
external_ref_exists409Another active customer of your platform already has this external_ref.

The response's details.customer_id is the existing customer - use it instead of creating a duplicate. This is what makes retried imports safe.

individual_exists409The 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_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.

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.

invalid_application422The KYC/KYB data is incomplete or inconsistent.

Read details for each field. US persons need an SSN and a US phone; businesses need an EIN and their owners.

invalid_owner_email422enter the email address the customer will sign in with
terms_required422The account agreement was not accepted.

Send accept_terms: true and the terms_version from the customer terms.

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

Usually next

Used in guided journeys