This method will auto-generate an ID and create a new tax configuration. If an ID is specified for the tax configuration, an error will be thrown.
The tax configuration that you would like to be saved.
{- "default_tax_product_id": "string",
- "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "tax_product_id": "string",
- "rates": [
- {
- "enabled": true,
- "name": "string",
- "tax_product_id": "string",
- "classes": [
- {
- "class_id": "string",
- "rate": 100,
- "tax_product_id": "string"
}
]
}
]
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "default_tax_product_id": "string",
- "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "tax_product_id": "string",
- "rates": [
- {
- "enabled": true,
- "name": "string",
- "tax_product_id": "string",
- "classes": [
- {
- "class_id": "string",
- "rate": 100,
- "tax_product_id": "string"
}
]
}
]
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will look up a tax configuration by the specified ID and return it back.
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/taxConfigurations/:tenantId?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "default_tax_product_id": "string",
- "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "tax_product_id": "string",
- "rates": [
- {
- "enabled": true,
- "name": "string",
- "tax_product_id": "string",
- "classes": [
- {
- "class_id": "string",
- "rate": 100,
- "tax_product_id": "string"
}
]
}
]
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will update an existing tax configuration with the specified ID.
The updated tax configuration that will be saved.
{- "default_tax_product_id": "string",
- "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "tax_product_id": "string",
- "rates": [
- {
- "enabled": true,
- "name": "string",
- "tax_product_id": "string",
- "classes": [
- {
- "class_id": "string",
- "rate": 100,
- "tax_product_id": "string"
}
]
}
]
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "default_tax_product_id": "string",
- "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "tax_product_id": "string",
- "rates": [
- {
- "enabled": true,
- "name": "string",
- "tax_product_id": "string",
- "classes": [
- {
- "class_id": "string",
- "rate": 100,
- "tax_product_id": "string"
}
]
}
]
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will patch an existing tax configuration with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "default_tax_product_id": "string",
- "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "tax_product_id": "string",
- "rates": [
- {
- "enabled": true,
- "name": "string",
- "tax_product_id": "string",
- "classes": [
- {
- "class_id": "string",
- "rate": 100,
- "tax_product_id": "string"
}
]
}
]
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will delete a tax configuration with the specified ID.
curl -i -X DELETE \ https://commerce.api.756794052567.rhythmsoftware.com/taxConfigurations/:tenantId \ -H 'Authorization: YOUR_API_KEY_HERE'
"string"