---
title: "product.tax.add"
method: POST
path: "/product.tax.add.json"
tags: ["product"]
---

# product.tax.add

`POST /product.tax.add.json`

## Request

- Base URL: `https://api.api2cart.com/v1.1`
- URL: `https://api.api2cart.com/v1.1/product.tax.add.json`
- Auth: API key in header `x-api-key` and API key in header `x-store-key`

Add tax class and tax rate to store and assign to product.

## Request body

- ProductTaxAdd
  - `product_id` string: Defines products specified by product id
  - `name` string, required: Defines tax class name where tax has to be added
  - `tax_rates` object[], required: Defines tax rates of specified tax classes
    - `name` string
    - `type` string
    - `value` number
  - `idempotency_key` string: A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>

## Response `200`

successful operation

- object
  - `return_code` integer
  - `return_message` string
  - `result` object
    - `tax_class_id` string

---

[API](https://skmtc.dev/api2cart/apis/api2cart-openapi.md) · [All operations](https://skmtc.dev/api2cart/apis/api2cart-openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/api2cart/apis/api2cart-openapi/revisions/c34440741693?raw)
