# Get a list of sold\_to\_accounts

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

{% code fullWidth="false" %}

```url
https://os.vucustom.com/api/v1/sold_to_accounts?updated_at_min=&limit&account_number
```

{% endcode %}

URL Parameters

<table><thead><tr><th width="187">Field Name</th><th>Description</th></tr></thead><tbody><tr><td>updated_at_min</td><td>returns a list that was upated after this minimum value.</td></tr><tr><td>limit</td><td>Default and max 250 - The number of records to retrieve</td></tr><tr><td>account_number</td><td>filters all records based on the account number</td></tr></tbody></table>

<details>

<summary>Example Request</summary>

```
https://os.vucustom.com/api/v1/sold_to_accounts?updated_at_min=&limit&account_number
```

</details>

{% tabs %}
{% tab title="200" %}
**`200 Successful response example`**

```json
{
    "sold_to_accounts": [
        {
            "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",
            "ship_to_accounts": [
                {
                    "account_number": "123_sh",
                    "address_1": "448 Test Street",
                    "address_2": "",
                    "city": "Lawrence",
                    "company_name": "",
                    "country": "US",
                    "created_at": "2022-10-31T01:54:56.271Z",
                    "first_name": "John",
                    "id": 12345,
                    "last_name": "Doe",
                    "phone": "(770) 210-4897",
                    "postal_code": "66049",
                    "sold_to_account_number": "123",
                    "state_region": "Kansas",
                    "updated_at": "2022-10-31T01:54:56.271Z"
                }
            ],
            "state_region": "Kansas",
            "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="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 %}
