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.
Get a list of countries.
Authorizations
Query parameters
order_bystringOptionalExample:
Column to order results by (e.g., 'created_at')
created_at
orderstring · enumOptionalExample:
Sorting order (asc or desc)
desc
Possible values: per_pageintegerOptionalExample:
Number of records per page (-1 for all records)
25
pageintegerOptionalExample:
Number of page
2
Responses
200
Successful response
application/json
401
Unauthorized
500
Internal Server Error
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?