# Create a tax rate

`POST /api/v1/tax-rates`

Needs the `catalog:write` scope, or a full-access key.

## Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | optional | A unique value for this operation, chosen by you. A retry with the same key and the same body returns the first response instead of running again. The same key with a different body answers 409 `idempotency_key_reused`; a key whose first request is still running answers 409 `idempotency_in_progress`. |

## Request body

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "inclusive": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "active": {
      "type": "boolean"
    },
    "tax_id_label": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 50
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500
    },
    "country": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}$"
    },
    "region": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 100
    },
    "percentage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ],
      "description": "Percent, up to 4 decimals (e.g. \"8.875\").",
      "example": "10"
    }
  },
  "required": [
    "name",
    "country",
    "percentage"
  ]
}
```

## Responses

### 201

The rate.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "name": {
          "type": "string"
        },
        "country": {
          "type": "string",
          "example": "AU"
        },
        "region": {
          "type": [
            "string",
            "null"
          ],
          "example": "TX"
        },
        "percentage": {
          "type": "string",
          "example": "8.25"
        },
        "inclusive": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "null = follow the tenant’s tax_behavior."
        },
        "active": {
          "type": "boolean"
        },
        "tax_id_label": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "name",
        "country",
        "region",
        "percentage",
        "inclusive",
        "active",
        "tax_id_label",
        "description",
        "created_at",
        "updated_at"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```

### 409

An active rate already exists for that location.
