> For the complete documentation index, see [llms.txt](https://vu-custom.gitbook.io/vu-custom/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vu-custom.gitbook.io/vu-custom/admin-api/account-management/create-a-ship_to_account.md).

# Create a ship\_to\_account

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

{% code fullWidth="false" %}

```url
https://os.vucustom.com/api/v1/ship_to_accounts
```

{% endcode %}

<details>

<summary>Example Request Body</summary>

```json
{
    "ship_to_accounts": [
        {
        "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_accounts": [
        {
        "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"
    }
    ]
}
```

{% 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="403" %}
**`403 Forbidden`**

`The server is refusing to respond. This is typically caused by incorrect access.`
{% endtab %}

{% tab title="404" %}
**`404 Not Found`**

`The requested resource was not found but could be available again in the future.`
{% endtab %}

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

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

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