ReDoc documentation

taxRules

taxRules

post/V1/taxRules

Save TaxRule

Request
Request Body schema:
required
object (tax-data-tax-rule-interface)

Tax rule interface.

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

500

Internal Server error

default

Unexpected error

Request samples
{
  • "rule": {
    }
}
Response samples
{
  • "id": 0,
  • "code": "string",
  • "priority": 0,
  • "position": 0,
  • "customer_tax_class_ids": [
    ],
  • "product_tax_class_ids": [
    ],
  • "tax_rate_ids": [
    ],
  • "calculate_subtotal": true,
  • "extension_attributes": { }
}

taxRules

put/V1/taxRules

Save TaxRule

Request
Request Body schema:
required
object (tax-data-tax-rule-interface)

Tax rule interface.

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

500

Internal Server error

default

Unexpected error

Request samples
{
  • "rule": {
    }
}
Response samples
{
  • "id": 0,
  • "code": "string",
  • "priority": 0,
  • "position": 0,
  • "customer_tax_class_ids": [
    ],
  • "product_tax_class_ids": [
    ],
  • "tax_rate_ids": [
    ],
  • "calculate_subtotal": true,
  • "extension_attributes": { }
}