Payezydevelopers
Sandbox

Guides

Create a customer and file KYB

When you already collect your customer's details, open the organization yourself and submit its verification without the customer signing up.

Before you start

  • Your platform is active, and your credential has platform:customers_add.
  • You collected the business's details and its controller's, and the customer accepted the account agreement in your product.
  1. Get the agreement. GETGet the customer account agreements returns the agreement and its version for each account type. Show it to the customer and keep their acceptance.
  2. Create the customer. POSTCreate a platform customer with type, your external_ref, the owner_email and the application. The response has the new customer.org_id, verification_status: draft and application.required_documents.
  3. Upload each required document. POSTUpload a customer verification document as multipart/form-data, with the kind and, for people, the person_slot (controller, beneficial_owners[0], …) from the requirements.
  4. Submit. POSTSubmit a customer for review with accept_terms: true and the terms_version. The application becomes pending_review and the customer kyc_pending.
  5. Wait for the decision. platform_customer.updated arrives with status: active on approval. If the partner asks for more documents, the status is documents_required: upload them and call POSTSend requested documents for review.
POST/v1/platforms/{orgId}/customers

Create a platform customer

Reference

Idempotent imports

external_ref is unique among your active customers. If a create is retried, or your import runs twice, the second call returns 409 external_ref_exists with details.customer_id: treat that as success and continue with that id.

Errors you will see

Code What to do
individual_exists That person already owns a personal account. Offer a business account or use the existing one.
invalid_application Read details; it names each field.
invalid_documents A required document is missing. Compare with required_documents.
platform_in_review Your platform is not active yet.

Platform: from zero to your customer's first paymentOnboard a business customer under your platform, verify it, give your servers a key for it, fund its account and pay a vendor - every step a real API call. 15 stages, about 25 minutes