Country

API endpoints for countries

To fetch all countries using the GET endpoint in Simplio3D OpenAPI, use the /countries endpoint. This request retrieves a list of all available countries in JSON format. Ensure that the request headers include the necessary authentication token if required by the API documentation.

Fetch all countries

get

Get a list of countries.

Authorizations
Query parameters
order_bystringOptional

Column to order results by (e.g., 'created_at')

Example: created_at
orderstring · enumOptional

Sorting order (asc or desc)

Example: descPossible values:
per_pageintegerOptional

Number of records per page (-1 for all records)

Example: 25
pageintegerOptional

Number of page

Example: 2
Responses
200

Successful response

application/json
get
GET /api/open-api/v1/countries HTTP/1.1
Host: app.simplio3d.com
Authorization: Bearer JWT
Accept: */*
[
  {
    "id": 1,
    "name": "Austria",
    "iso2": "AT",
    "iso3": "AUT",
    "phone_code": "43",
    "created_at": "2024-02-25T12:00:00Z",
    "updated_at": "2024-02-25T12:30:00Z"
  }
]

Last updated

Was this helpful?