PUT /V1/taxRules
curl \
-X PUT https://magento2.winkelstraat.mac/rest/all/V1/taxRules \
-d '{"rule":{"id":42,"code":"string","priority":42,"position":42,"customer_tax_class_ids":[42],"product_tax_class_ids":[42],"tax_rate_ids":[42],"calculate_subtotal":true,"extension_attributes":{}}}'
Request examples
{
"rule": {
"id": 42,
"code": "string",
"priority": 42,
"position": 42,
"customer_tax_class_ids": [
42
],
"product_tax_class_ids": [
42
],
"tax_rate_ids": [
42
],
"calculate_subtotal": true,
"extension_attributes": {}
}
}
Response examples (200)
{
"id": 42,
"code": "string",
"priority": 42,
"position": 42,
"customer_tax_class_ids": [
42
],
"product_tax_class_ids": [
42
],
"tax_rate_ids": [
42
],
"calculate_subtotal": true,
"extension_attributes": {}
}
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (400)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}