# Save a customer's application draft

`PUT /v1/platforms/{orgId}/customers/{customerId}/onboarding`

Saves the linked customer's draft. Masked or empty SSN/EIN values keep what was stored.

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

## Request body

- `individual` (Person): 
- `individual.first_name` (string): 
- `individual.last_name` (string): 
- `individual.date_of_birth` (string): YYYY-MM-DD
- `individual.email` (string): 
- `individual.phone` (string): 
- `individual.ssn` (string): US Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
- `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.
- `individual.identity.number` (string): 
- `individual.identity.type` (enum):  One of PASSPORT, DRIVER_LICENSE, NATIONAL_ID.
- `individual.title` (string): 
- `individual.ownership_percentage` (string): 
- `individual.address` (PersonAddress): Where a person lives. Country defaults to US. Outside the US, state is optional and the postal code is free-form.
- `individual.address.street_line_1` (string, required): 
- `individual.address.street_line_2` (string): 
- `individual.address.city` (string, required): 
- `individual.address.state` (string): US state or territory abbreviation when country is US. Optional elsewhere.
- `individual.address.zip` (string, required): ZIP in the US. Any postal code elsewhere.
- `individual.address.country` (string): ISO 3166-1 alpha-2 country of residence. Defaults to US.
- `business` (Business): 
- `business.legal_name` (string): 
- `business.ein` (string): Responses carry a masked value
- `business.website` (string): 
- `business.phone` (string): 
- `business.email` (string): 
- `business.address` (Address): 
- `business.address.street_line_1` (string, required): 
- `business.address.street_line_2` (string): 
- `business.address.city` (string, required): 
- `business.address.state` (string, required): 
- `business.address.zip` (string, required): 
- `controller` (Person): 
- `controller.first_name` (string): 
- `controller.last_name` (string): 
- `controller.date_of_birth` (string): YYYY-MM-DD
- `controller.email` (string): 
- `controller.phone` (string): 
- `controller.ssn` (string): US Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
- `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.
- `controller.identity.number` (string): 
- `controller.identity.type` (enum):  One of PASSPORT, DRIVER_LICENSE, NATIONAL_ID.
- `controller.title` (string): 
- `controller.ownership_percentage` (string): 
- `controller.address` (PersonAddress): Where a person lives. Country defaults to US. Outside the US, state is optional and the postal code is free-form.
- `controller.address.street_line_1` (string, required): 
- `controller.address.street_line_2` (string): 
- `controller.address.city` (string, required): 
- `controller.address.state` (string): US state or territory abbreviation when country is US. Optional elsewhere.
- `controller.address.zip` (string, required): ZIP in the US. Any postal code elsewhere.
- `controller.address.country` (string): ISO 3166-1 alpha-2 country of residence. Defaults to US.
- `beneficial_owners` (Person[]): 
- `beneficial_owners[].first_name` (string): 
- `beneficial_owners[].last_name` (string): 
- `beneficial_owners[].date_of_birth` (string): YYYY-MM-DD
- `beneficial_owners[].email` (string): 
- `beneficial_owners[].phone` (string): 
- `beneficial_owners[].ssn` (string): US Social Security number. Write-only; responses carry a masked value. Not used outside the United States.
- `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.
- `beneficial_owners[].identity.number` (string): 
- `beneficial_owners[].identity.type` (enum):  One of PASSPORT, DRIVER_LICENSE, NATIONAL_ID.
- `beneficial_owners[].title` (string): 
- `beneficial_owners[].ownership_percentage` (string): 
- `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.
- `beneficial_owners[].address.street_line_1` (string, required): 
- `beneficial_owners[].address.street_line_2` (string): 
- `beneficial_owners[].address.city` (string, required): 
- `beneficial_owners[].address.state` (string): US state or territory abbreviation when country is US. Optional elsewhere.
- `beneficial_owners[].address.zip` (string, required): ZIP in the US. Any postal code elsewhere.
- `beneficial_owners[].address.country` (string): ISO 3166-1 alpha-2 country of residence. Defaults to US.

```json
{
  "individual": {
    "first_name": "Ada",
    "last_name": "Lovelace",
    "date_of_birth": "1990-12-10",
    "email": "ada@acme-robotics.example",
    "phone": "+14155550123",
    "ssn": "123-45-6789",
    "identity": {
      "number": "number",
      "type": "PASSPORT"
    },
    "title": "CEO",
    "ownership_percentage": "60",
    "address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip",
      "country": "US"
    }
  },
  "business": {
    "legal_name": "Acme Robotics, Inc.",
    "ein": "12-3456789",
    "website": "https://acme-robotics.example",
    "phone": "+14155550123",
    "email": "ada@acme-robotics.example",
    "address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip"
    }
  },
  "controller": {
    "first_name": "Ada",
    "last_name": "Lovelace",
    "date_of_birth": "1990-12-10",
    "email": "ada@acme-robotics.example",
    "phone": "+14155550123",
    "ssn": "123-45-6789",
    "identity": {
      "number": "number",
      "type": "PASSPORT"
    },
    "title": "CEO",
    "ownership_percentage": "60",
    "address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip",
      "country": "US"
    }
  },
  "beneficial_owners": [
    {}
  ]
}
```

Errors: application_locked, invalid_application, invalid_address

```bash
curl -X PUT "https://sandbox-api.payezy.io/v1/platforms/$ORG_ID/customers/$CUSTOMER_ID/onboarding" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "individual": {
    "first_name": "Ada",
    "last_name": "Lovelace",
    "date_of_birth": "1990-12-10",
    "email": "ada@acme-robotics.example",
    "phone": "+14155550123",
    "ssn": "123-45-6789",
    "identity": {
      "number": "number",
      "type": "PASSPORT"
    },
    "title": "CEO",
    "ownership_percentage": "60",
    "address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip",
      "country": "US"
    }
  },
  "business": {
    "legal_name": "Acme Robotics, Inc.",
    "ein": "12-3456789",
    "website": "https://acme-robotics.example",
    "phone": "+14155550123",
    "email": "ada@acme-robotics.example",
    "address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip"
    }
  },
  "controller": {
    "first_name": "Ada",
    "last_name": "Lovelace",
    "date_of_birth": "1990-12-10",
    "email": "ada@acme-robotics.example",
    "phone": "+14155550123",
    "ssn": "123-45-6789",
    "identity": {
      "number": "number",
      "type": "PASSPORT"
    },
    "title": "CEO",
    "ownership_percentage": "60",
    "address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip",
      "country": "US"
    }
  },
  "beneficial_owners": [
    {}
  ]
}'
```
