---
updatedAt: 2026-04-23T18:41:11.000Z
agentTools:
  projectIndex: https://docs.ciiruspartners.com/llms.txt
---

# Create tax location

Creates a new location with its tax rates

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "security": [
    {
      "basicAuth": []
    }
  ],
  "info": {
    "title": "CiiRUS Partner API",
    "version": "2024.07.31"
  },
  "paths": {
    "/taxes": {
      "post": {
        "summary": "Create tax location",
        "description": "Creates a new location with its tax rates",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_tax_location"
              }
            }
          },
          "description": "Tax location to create",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Created location",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tax_location"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "tags": [
          "Taxes"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.ciiruspartners.com/v2024.07.31"
    }
  ],
  "components": {
    "responses": {
      "BadRequest": {
        "description": "Bad Request response",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized response",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden response",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Not Found response",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "create_tax_location": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the tax location"
          },
          "sales_tax": {
            "type": "number",
            "format": "decimal",
            "description": "Sales tax percentage"
          },
          "tourist_tax": {
            "type": "number",
            "format": "decimal",
            "description": "Tourist tax percentage"
          },
          "other_tax": {
            "type": "number",
            "format": "decimal",
            "description": "Other tax percentage"
          }
        },
        "required": [
          "name"
        ]
      },
      "tax_location": {
        "type": "object",
        "properties": {
          "tax_rate_id": {
            "type": "integer",
            "description": "Unique identifier for the tax location"
          },
          "user_id": {
            "type": "integer",
            "description": "User ID associated with the tax location"
          },
          "name": {
            "type": "string",
            "description": "Name of the tax location"
          },
          "sales_tax": {
            "type": "number",
            "format": "decimal",
            "description": "Sales tax percentage"
          },
          "tourist_tax": {
            "type": "number",
            "format": "decimal",
            "description": "Tourist tax percentage"
          },
          "other_tax": {
            "type": "number",
            "format": "decimal",
            "description": "Other tax percentage"
          },
          "total_tax": {
            "type": "number",
            "format": "decimal",
            "description": "Sum of all tax percentages"
          }
        },
        "required": [
          "tax_rate_id",
          "user_id",
          "name",
          "sales_tax",
          "tourist_tax",
          "other_tax"
        ]
      }
    }
  }
}
```