# 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.


Requires: organization platform (active); permission platform:customers_add

## Request body

- `type` (enum, required):  One of individual, business.
- `name` (string): Display name; defaults to the legal name
- `external_ref` (string): 
- `owner_email` (string (email)): Login address of the owner. Defaults to the individual's email or the business control person's. Payezy does not email it.
- `application` (OnboardingData, required): 
- `application.individual` (Person): 
- `application.individual.first_name` (string): 
- `application.individual.last_name` (string): 
- `application.individual.date_of_birth` (string): YYYY-MM-DD
- `application.individual.email` (string): 
- `application.individual.phone` (string): 
- `application.individual.ssn` (string): US Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
- `application.individual.identity` (GovernmentId): 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.number` (string): 
- `application.individual.identity.type` (enum):  One of PASSPORT, DRIVER_LICENSE, NATIONAL_ID.
- `application.individual.title` (string): 
- `application.individual.ownership_percentage` (string): 
- `application.individual.address` (PersonAddress): 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_1` (string, required): 
- `application.individual.address.street_line_2` (string): 
- `application.individual.address.city` (string, required): 
- `application.individual.address.state` (string): US state or territory abbreviation when country is US. Optional elsewhere.
- `application.individual.address.zip` (string, required): ZIP in the US. Any postal code elsewhere.
- `application.individual.address.country` (string): ISO 3166-1 alpha-2 country of residence. Defaults to US.
- `application.business` (Business): 
- `application.business.legal_name` (string): 
- `application.business.ein` (string): Responses carry a masked value
- `application.business.website` (string): 
- `application.business.phone` (string): 
- `application.business.email` (string): 
- `application.business.address` (Address): 
- `application.business.address.street_line_1` (string, required): 
- `application.business.address.street_line_2` (string): 
- `application.business.address.city` (string, required): 
- `application.business.address.state` (string, required): 
- `application.business.address.zip` (string, required): 
- `application.controller` (Person): 
- `application.controller.first_name` (string): 
- `application.controller.last_name` (string): 
- `application.controller.date_of_birth` (string): YYYY-MM-DD
- `application.controller.email` (string): 
- `application.controller.phone` (string): 
- `application.controller.ssn` (string): US Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
- `application.controller.identity` (GovernmentId): 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.number` (string): 
- `application.controller.identity.type` (enum):  One of PASSPORT, DRIVER_LICENSE, NATIONAL_ID.
- `application.controller.title` (string): 
- `application.controller.ownership_percentage` (string): 
- `application.controller.address` (PersonAddress): 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_1` (string, required): 
- `application.controller.address.street_line_2` (string): 
- `application.controller.address.city` (string, required): 
- `application.controller.address.state` (string): US state or territory abbreviation when country is US. Optional elsewhere.
- `application.controller.address.zip` (string, required): ZIP in the US. Any postal code elsewhere.
- `application.controller.address.country` (string): ISO 3166-1 alpha-2 country of residence. Defaults to US.
- `application.beneficial_owners` (Person[]): 
- `application.beneficial_owners[].first_name` (string): 
- `application.beneficial_owners[].last_name` (string): 
- `application.beneficial_owners[].date_of_birth` (string): YYYY-MM-DD
- `application.beneficial_owners[].email` (string): 
- `application.beneficial_owners[].phone` (string): 
- `application.beneficial_owners[].ssn` (string): US Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
- `application.beneficial_owners[].identity` (GovernmentId): 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.number` (string): 
- `application.beneficial_owners[].identity.type` (enum):  One of PASSPORT, DRIVER_LICENSE, NATIONAL_ID.
- `application.beneficial_owners[].title` (string): 
- `application.beneficial_owners[].ownership_percentage` (string): 
- `application.beneficial_owners[].address` (PersonAddress): 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_1` (string, required): 
- `application.beneficial_owners[].address.street_line_2` (string): 
- `application.beneficial_owners[].address.city` (string, required): 
- `application.beneficial_owners[].address.state` (string): US state or territory abbreviation when country is US. Optional elsewhere.
- `application.beneficial_owners[].address.zip` (string, required): ZIP in the US. Any postal code elsewhere.
- `application.beneficial_owners[].address.country` (string): ISO 3166-1 alpha-2 country of residence. Defaults to US.
- `accept_terms` (boolean): Ignored. Accept the agreement when submitting the application.
- `terms_version` (string): Ignored. Send the current version when submitting the application.
- `delivery` (enum): 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 email, screen.

```json
{
  "type": "business",
  "name": "Acme Robotics",
  "external_ref": "acme-001",
  "owner_email": "ada@acme-robotics.example",
  "application": {
    "business": {
      "legal_name": "Acme Robotics, Inc.",
      "ein": "12-3456789",
      "website": "https://acme-robotics.example",
      "phone": "+14155550123",
      "email": "ops@acme-robotics.example",
      "address": {
        "street_line_1": "1 Market St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94105"
      }
    },
    "controller": {
      "first_name": "Ada",
      "last_name": "Lovelace",
      "title": "CEO",
      "email": "ada@acme-robotics.example",
      "phone": "+14155550123",
      "date_of_birth": "1990-12-10",
      "ssn": "123-45-6789",
      "ownership_percentage": "60",
      "address": {
        "street_line_1": "12 Valencia St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94103"
      }
    },
    "beneficial_owners": []
  }
}
```

Events: platform_customer.updated

Errors: external_ref_exists, individual_exists, customer_type_not_offered, platform_in_review, invalid_application, invalid_owner_email, terms_required

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/platforms/$ORG_ID/customers" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "business",
  "name": "Acme Robotics",
  "external_ref": "acme-001",
  "owner_email": "ada@acme-robotics.example",
  "application": {
    "business": {
      "legal_name": "Acme Robotics, Inc.",
      "ein": "12-3456789",
      "website": "https://acme-robotics.example",
      "phone": "+14155550123",
      "email": "ops@acme-robotics.example",
      "address": {
        "street_line_1": "1 Market St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94105"
      }
    },
    "controller": {
      "first_name": "Ada",
      "last_name": "Lovelace",
      "title": "CEO",
      "email": "ada@acme-robotics.example",
      "phone": "+14155550123",
      "date_of_birth": "1990-12-10",
      "ssn": "123-45-6789",
      "ownership_percentage": "60",
      "address": {
        "street_line_1": "12 Valencia St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94103"
      }
    },
    "beneficial_owners": []
  }
}'
```
