Update rate table
PATCH/rates/tables/:id
rates.tables.update
All parameters except id
are optional, only provided parameters will be
updated.
Request​
Path Parameters
Rate table ID.
- application/json
Bodyrequired
Name.
Possible values: <= 128 characters
Currency ID.
Rating tag.
@
Parent rate table ID.
null
Code deck ID for source codes.
null
Code deck ID for destination codes.
null
Rate agreement ID.
null
If True
, the system assumes that rates within rate table
include taxes. In this case, the tax value will be calculated from
the rate value and the tax rate according to the tax profile of the
client.
false
Notes.
null
Associated rate generator ID.
null
If True
, the rate generator will be used to
generate rates for this rate table.
false
Rate import template ID. Required when automatic import is enabled.
null
If True
, automatic rate import from email is
enabled. This requires mail_import_template_id
,
credentials_id
and remote_settings
to be set.
false
Credentials ID. Required when automatic import is enabled.
null
remote_settings object
Rate export template ID.
null
Rate import template ID.
null
Responses​
- 200
- 400
- 401
- 404
- 422
- 500
Number of the affected rows.
- application/json
- Schema
Schema
The request contains invalid arguments or is malformed
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "Invalid request",
"data": {
"name": "Empty value is not allowed",
"payment_terms_id": "Object \"payment_terms(123)\" was not found!"
}
}
}
Access is not authorized
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "utoken-auth-failed: Authentication Failed: IP 10.0.0.1 is not allowed",
"data": {
"code": "utoken-auth-failed",
"message": "Authentication Failed: IP 10.0.0.1 is not allowed"
}
}
}
Requested object was not found
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "not_found: Object \"clients(123)\" was not found!",
"data": {
"code": "not_found",
"message": "Object \"clients(123)\" was not found!",
"object_name": "clients",
"object_id": "123"
}
}
}
A logical error occurred, making the request unprocessable
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "invoices-zero-amount: Impossible to create an invoice with zero amount",
"data": {
"code": "invoices-zero-amount",
"message": "Impossible to create an invoice with zero amount"
}
}
}
An unexpected error occurred
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "An unexpected error occurred"
}
}
Authorization: X-Api-Key
name: X-Api-Keytype: apiKeyin: headerdescription: Token for API access
- curl
- python
- nodejs
- php
- CURL
curl -L -X PATCH 'https://docs.jerasoft.net/rates/tables/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Api-Key: <X-Api-Key>' \
--data-raw '{
"name": "string",
"currencies_id": 0,
"tag": "@",
"with_taxes": false,
"rates_generation_auto": false,
"mail_auto_import": false,
"remote_settings": {}
}'