PUT /V1/taxRates
curl \
-X PUT https://magento2.winkelstraat.mac/rest/all/V1/taxRates \
-d '{"taxRate":{"id":42,"tax_country_id":"string","tax_region_id":42,"region_name":"string","tax_postcode":"string","zip_is_range":42,"zip_from":42,"zip_to":42,"rate":42.0,"code":"string","titles":[{"store_id":"string","value":"string","extension_attributes":{}}],"extension_attributes":{}}}'
Request examples
{
"taxRate": {
"id": 42,
"tax_country_id": "string",
"tax_region_id": 42,
"region_name": "string",
"tax_postcode": "string",
"zip_is_range": 42,
"zip_from": 42,
"zip_to": 42,
"rate": 42.0,
"code": "string",
"titles": [
{
"store_id": "string",
"value": "string",
"extension_attributes": {}
}
],
"extension_attributes": {}
}
}
Response examples (200)
{
"id": 42,
"tax_country_id": "string",
"tax_region_id": 42,
"region_name": "string",
"tax_postcode": "string",
"zip_is_range": 42,
"zip_from": 42,
"zip_to": 42,
"rate": 42.0,
"code": "string",
"titles": [
{
"store_id": "string",
"value": "string",
"extension_attributes": {}
}
],
"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"
}