TaxRules
Get TaxRule
Path parameters
ruleIdstringRequiredExample:
(Required)
<integer>
Responses
200
OK
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
GET /V1/taxRules/{ruleId} HTTP/1.1
Host: {{baseurl}}
Accept: */*
{
"code": "<string>",
"priority": "<integer>",
"position": "<integer>",
"customer_tax_class_ids": [
"<integer>",
"<integer>"
],
"product_tax_class_ids": [
"<integer>",
"<integer>"
],
"tax_rate_ids": [
"<integer>",
"<integer>"
],
"id": "<integer>",
"calculate_subtotal": "<boolean>",
"extension_attributes": "<object>"
}
Delete TaxRule
Path parameters
ruleIdstringRequiredExample:
(Required)
<integer>
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
DELETE /V1/taxRules/{ruleId} HTTP/1.1
Host: {{baseurl}}
Accept: */*
true
Save TaxRule
Header parameters
Content-TypestringOptionalExample:
application/json
Body
objectOptionalExample:
{"rule":{"code":"<string>","priority":"<integer>","position":"<integer>","customer_tax_class_ids":["<integer>","<integer>"],"product_tax_class_ids":["<integer>","<integer>"],"tax_rate_ids":["<integer>","<integer>"],"id":"<integer>","calculate_subtotal":"<boolean>","extension_attributes":"<object>"}}
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /V1/taxRules HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 300
{
"rule": {
"code": "<string>",
"priority": "<integer>",
"position": "<integer>",
"customer_tax_class_ids": [
"<integer>",
"<integer>"
],
"product_tax_class_ids": [
"<integer>",
"<integer>"
],
"tax_rate_ids": [
"<integer>",
"<integer>"
],
"id": "<integer>",
"calculate_subtotal": "<boolean>",
"extension_attributes": "<object>"
}
}
{
"code": "<string>",
"priority": "<integer>",
"position": "<integer>",
"customer_tax_class_ids": [
"<integer>",
"<integer>"
],
"product_tax_class_ids": [
"<integer>",
"<integer>"
],
"tax_rate_ids": [
"<integer>",
"<integer>"
],
"id": "<integer>",
"calculate_subtotal": "<boolean>",
"extension_attributes": "<object>"
}
Save TaxRule
Header parameters
Content-TypestringOptionalExample:
application/json
Body
objectOptionalExample:
{"rule":{"code":"<string>","priority":"<integer>","position":"<integer>","customer_tax_class_ids":["<integer>","<integer>"],"product_tax_class_ids":["<integer>","<integer>"],"tax_rate_ids":["<integer>","<integer>"],"id":"<integer>","calculate_subtotal":"<boolean>","extension_attributes":"<object>"}}
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
put
PUT /V1/taxRules HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 300
{
"rule": {
"code": "<string>",
"priority": "<integer>",
"position": "<integer>",
"customer_tax_class_ids": [
"<integer>",
"<integer>"
],
"product_tax_class_ids": [
"<integer>",
"<integer>"
],
"tax_rate_ids": [
"<integer>",
"<integer>"
],
"id": "<integer>",
"calculate_subtotal": "<boolean>",
"extension_attributes": "<object>"
}
}
{
"code": "<string>",
"priority": "<integer>",
"position": "<integer>",
"customer_tax_class_ids": [
"<integer>",
"<integer>"
],
"product_tax_class_ids": [
"<integer>",
"<integer>"
],
"tax_rate_ids": [
"<integer>",
"<integer>"
],
"id": "<integer>",
"calculate_subtotal": "<boolean>",
"extension_attributes": "<object>"
}