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
| Name | Type | Required |
|---|---|---|
code | any | No |
enabled | boolean | No |
name | any | Yes |
Responses
| Code | Description |
|---|---|
| 200 | OK (Envelope) |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |