---
title: "Create Country"
description: "Use POST /countries to create a country. The current public operation is Country.register."
canonical: https://docs.ordering.co/api-reference/guides/create-country/
---

# Create Country

> **API operation:** [Open the endpoint in the API reference](https://docs.ordering.co/api-reference/#tag/countries/POST/countries)

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

```javascript
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)   |

[Open this operation in the API reference](https://docs.ordering.co/api-reference/#tag/countries/POST/countries)
