product

product.tax.add

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

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

Request body

product_idstring

Defines products specified by product id

namestring required

Defines tax class name where tax has to be added

idempotency_keystring

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>

Example request

{
  "name": "ECO-Tax",
  "idempotency_key": "098f6bcd4621d373cade4e832627b4f6"
}

Response

successful operation

return_codeinteger
return_messagestring

Changes

No recorded changes to this operation across all 1 revision of this API.