# 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.** `GET /v1/platforms/{orgId}/customer-terms` (Get 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.** `POST /v1/platforms/{orgId}/customers` (Create 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.** `POST /v1/platforms/{orgId}/customers/{customerId}/onboarding/documents` (Upload 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.** `POST /v1/platforms/{orgId}/customers/{customerId}/onboarding/submit` (Submit 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 `POST /v1/platforms/{orgId}/customers/{customerId}/onboarding/documents/submit` (Send requested documents for review).


Try it: `POST /v1/platforms/{orgId}/customers`
## 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. |

Guided journey: Platform: from zero to your customer's first payment