# Create a ship\_to\_account

Method : <mark style="color:green;">**POST**</mark>

{% code fullWidth="false" %}

```url
https://admin.vucustom.com/api/:api_version/ship_to_accounts
```

{% endcode %}

<details>

<summary>Example Request Body</summary>

```json
{
    "ship_to_account": {
        "account_number": "123",
        "address_1": "448 Test Street",
        "address_2": "",
        "alternate_name": "ATTN",
        "city": "Lawrence",
        "company_name": "",
        "country": "US",
        "email": "test@test.com",
        "first_name": "John",
        "last_name": "Doe",
        "parent_account_number": "1234",
        "phone": "(770) 210-4897",
        "postal_code": "66049",
        "state_region": "KS"
    }
}

```

</details>

Request Body Schema

<table><thead><tr><th width="187">Field Name</th><th width="85">Type</th><th width="101">Required</th><th>Description</th></tr></thead><tbody><tr><td>parent_account_number</td><td>string</td><td>yes</td><td>Required to add this object to a sold_to_account</td></tr><tr><td>account_number</td><td>string</td><td>Yes</td><td>Unique identifier for the sold-to account</td></tr><tr><td>first_name</td><td>string</td><td>Yes</td><td>Customer's first name</td></tr><tr><td>last_name</td><td>string</td><td>Yes</td><td>Customer's last name</td></tr><tr><td>alternate_name</td><td>string</td><td>No</td><td>Can be empty.</td></tr><tr><td>address_1</td><td>string</td><td>Yes</td><td>Primary address line</td></tr><tr><td>address_2</td><td>string</td><td>No</td><td>Secondary address line, can be empty</td></tr><tr><td>city</td><td>string</td><td>Yes</td><td>City name</td></tr><tr><td>state_region</td><td>string</td><td>yes</td><td>State/province/region code</td></tr><tr><td>postal_code</td><td>string</td><td>Yes</td><td>Postal/ZIP code</td></tr><tr><td>country</td><td>string</td><td>Yes</td><td>Two-letter country code (ISO 3166-1 alpha-2)</td></tr><tr><td>company_name</td><td>string</td><td>No</td><td>Business or company name, can be empty</td></tr><tr><td>phone</td><td>string</td><td>No</td><td>Phone number with optional formatting</td></tr></tbody></table>

{% tabs %}
{% tab title="200" %}
**`200 Successful Response Example`**

```json
{
  "ship_to_account": {
    "account_number": "123",
    "address_1": "448 Test Street",
    "address_2": "",
    "alternate_name": "ATTN",
    "city": "Lawrence",
    "company_name": "",
    "country": "US",
    "created_at": "2022-10-31T01:54:56.271Z",
    "email": "test@test.com",
    "first_name": "John",
    "id": 12345,
    "last_name": "Doe",
    "phone": "(770) 210-4897",
    "postal_code": "66049",
    "sold_to_account_number": "123",
    "state_region": "KS",
    "updated_at": "2022-10-31T01:54:56.271Z"
  }
}
```

{% endtab %}

{% tab title="401 " %}
**`401 Unauthorized`**

`The client doesn’t have correct authentication credentials.`

```
{
"errors": "[API] Invalid API key or secret (unrecognized login or wrong password)"
}
```

{% endtab %}

{% tab title="422" %}
**`422 Unprocessable Entity`**
{% endtab %}

{% tab title="5xx" %}
**`5xx Errors`**

`An internal error occurred in VU Admin.`
{% endtab %}
{% endtabs %}
