Create

POST /V1/taxRates

Create or update tax rate

Body

Responses

  • 200 Success.

    Hide response attributes Show response attributes object
  • 401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

  • 400 Bad Request

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

  • Internal Server error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

POST /V1/taxRates
curl \
 -X POST 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"
}