Skip to content
On this page

States

Endpoint: /v1/country-states/{id}

http
GET /v1/country-states/32 HTTP/1.1
Host: sandbox.tristarexpress.com
Accept: application/json
Authorization: {{ token }}

If you need a list of states in a country, you can use this endpoint.

Example

http
GET /v1/country-states/32 HTTP/1.1
Host: sandbox.tristarexpress.com
Accept: application/json
Authorization: {{ token }}

Response:

json
{
    "data": [
        {
            "id": 20,
            "name": "São Paulo",
            "name_locale": null,
            "code": "SP",
            "country_id": 32,
            "sequence": 35,
            "created_by_id": 1,
            "updated_by_id": null,
            "ICMS": 18,
            "FECP": 0,
            "created_at": "2021-10-20 01:30:24",
            "updated_at": null
        },
        // ...
    ]
}