Skip to main content

Find Country

API operation: Open the endpoint in Scalar

Use GET /countries/{country} to retrieve one country. The operation is Country.find.

Requests may use an API key or bearer token. Role levels 0 and 1 can access this operation. The optional params query can expand cities, metafields, and computed metadata; returned fields depend on the requested projection.

Legacy SDK example​

const response = await ordering.countries(countryId).get()

The SDK helper and available fields can differ by version.

OpenAPI reference​

Operation: GET /countries/{country}

Path parameters

NameTypeRequiredDescription
countryintegerYes—

Query parameters

NameTypeRequiredDescription
paramsstringNoComma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields.

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference