Skip to main content

Create Country

API operation: Open the endpoint in the API reference

Use POST /countries to create a country. The current public operation is Country.register.

If available, creation is restricted to role levels 0 and 1. name is required; code and enabled are optional fields. See the operation guide for the complete request schema, authentication, responses, and errors.

Legacy SDK example​

const response = await ordering.countries().save(data)

Confirm the SDK package and version before using this helper. This exact method/path match does not close field-level gaps.

OpenAPI reference​

Operation: POST /countries

Request body fields

NameTypeRequired
codeanyNo
enabledbooleanNo
nameanyYes

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