TaxRates

Create a tax rate

Changed on

Create a new tax rate.

post/api/v2/tax_rates

Request

  • Base URL
    https://developer.productive.io (the document declares no server; this is the origin it was published from)
  • URL
    https://developer.productive.io/api/v2/tax_rates
  • Auth
    none declared

Request body

Example request

{
  "data": {
    "type": "tax_rates",
    "attributes": {
      "name": "Standard VAT 20%",
      "primary_component_name": "VAT",
      "primary_component_value": "0.2"
    },
    "relationships": {
      "subsidiary": {
        "data": {
          "type": "subsidiaries",
          "id": "2"
        }
      }
    }
  }
}

Response

Single tax rate

Example response

{
  "data": {
    "id": "8",
    "type": "tax_rates",
    "attributes": {
      "name": "Standard VAT 20%",
      "primary_component_name": "VAT",
      "primary_component_value": "0.2",
      "secondary_component_name": null,
      "secondary_component_value": null,
      "archived_at": null
    },
    "relationships": {
      "subsidiary": {
        "data": {
          "type": "subsidiaries",
          "id": "2"
        }
      }
    }
  },
  "included": []
}

Changes

    • warning

      added the new bad_decimal_format enum value to the // response property for the response status

    • warning

      added the new non_finite_number enum value to the // response property for the response status

    • warning

      added the new null_bytes_in_params enum value to the // response property for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      response property data/attributes/secondary_component_value list-of-types was widened by adding types null and string to media type application/vnd.api+json of response 201

    • breaking

      the // response's property type changed from string to no type, and format from date-time to no format for status

    • breaking

      the // response's property type changed from number to string for status

    • breaking

      the // response's property type changed from string to no type for status

    • warning

      deleted the header request parameter X-Organization-Id

    This list may be incomplete.