---
title: "Create product tax code"
method: POST
path: "/public/v2/product-tax-codes/"
tags: ["Product Tax Codes"]
---

# Create product tax code

`POST /public/v2/product-tax-codes/`

Create an organization-scoped product tax code. Global product tax codes are system managed.

## Headers

- `Idempotency-Key` string

## Request body

- PublicProductTaxCodeSchemaCreateIn
  - `code` string, required
  - `description` string, required
  - `source` 'INTERNAL' | 'AVALARA'

## Response `201`

Created

- PublicProductTaxCodeSchemaOut
  - `created_at` string, date-time, required — Date and time the record was created
  - `updated_at` string, date-time, required — Date and time the record was last updated
  - `id` integer, required
  - `code` string, required
  - `description` string, required
  - `source` 'INTERNAL' | 'AVALARA', required
  - `is_active` boolean, required
  - `is_global` boolean, required

## Other responses

- `400` — Bad Request
- `422` — Unprocessable Content

## Changes

- **2026-08-28** `48edcb3acb74` — 2 info
  - added the required property `created_at` to the response with the `201` status
  - added the required property `updated_at` to the response with the `201` status
- **2026-08-12** `34b7cf5b4b6c` — 1 info
  - added the new optional `header` request parameter `Idempotency-Key`

[Change history](https://skmtc.dev/dualentry/apis/dualentry-public-api/changes/public/v2/product-tax-codes/post.md)

---

[API](https://skmtc.dev/dualentry/apis/dualentry-public-api.md) · [All operations](https://skmtc.dev/dualentry/apis/dualentry-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dualentry/dualentry-public-api/revisions/48edcb3acb74/schema)
