Skip to main content

Update rate table

PATCH 

/rates/tables/:id

JSON-RPC

rates.tables.update

info

All parameters except id are optional, only provided parameters will be updated.

Request​

Path Parameters

    id integerrequired

    Rate table ID.

Bodyrequired

    namestringrequired

    Name.

    Possible values: <= 128 characters

    currencies_idintegerrequired

    Currency ID.

    tagstring

    Rating tag.

    Default value: @
    parent_rate_tables_idinteger | nullnullable

    Parent rate table ID.

    Default value: null
    src_code_decks_idinteger | nullnullable

    Code deck ID for source codes.

    Default value: null
    code_decks_idinteger | nullnullable

    Code deck ID for destination codes.

    Default value: null
    agreements_idinteger | nullnullable

    Rate agreement ID.

    Default value: null
    with_taxesboolean

    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.

    Default value: false
    notesstring | nullnullable

    Notes.

    Default value: null
    rates_generators_idinteger | nullnullable

    Associated rate generator ID.

    Default value: null
    rates_generation_autoboolean

    If True, the rate generator will be used to generate rates for this rate table.

    Default value: false
    mail_import_template_idinteger | nullnullable

    Rate import template ID. Required when automatic import is enabled.

    Default value: null
    mail_auto_importboolean

    If True, automatic rate import from email is enabled. This requires mail_import_template_id, credentials_id and remote_settings to be set.

    Default value: false
    credentials_idinteger | nullnullable

    Credentials ID. Required when automatic import is enabled.

    Default value: null
    remote_settings object

    Additional settings for matching messages within automatic rate import from email.

    oneOf
    email_senderstring | nullnullable

    Possible values: <= 256 characters

    Default value: null
    email_subjectregexnullable

    Possible values: <= 256 characters

    Default value: null
    export_templates_idinteger | nullnullable

    Rate export template ID.

    Default value: null
    import_templates_idinteger | nullnullable

    Rate import template ID.

    Default value: null

Responses​

Number of the affected rows.

Schema
    integerinteger

Authorization: X-Api-Key

name: X-Api-Keytype: apiKeyin: headerdescription: Token for API access
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": {}
}'
Request Collapse all
Auth
Parameters
— pathrequired
Body required
{
  "name": "string",
  "currencies_id": 0,
  "tag": "@",
  "with_taxes": false,
  "rates_generation_auto": false,
  "mail_auto_import": false,
  "remote_settings": {}
}