Update rates by filter
POST/rates/bulk
rates.update_bulk
If any of the new values is not set, it will be left unchanged.
Request​
- application/json
Bodyrequired
Bulk action.
Possible values: [insert
, update
, delete
, preview
]
search objectrequired
Effective date to set.
End date to set.
Grace volume to set.
Possible values: >= 0
Minimum billed volume to set.
Possible values: >= 1
Maximum number length to set.
Possible values: >= 1
Minimum number length to set.
Possible values: >= 1
Payment interval to set.
Possible values: >= 1
Setup fee value, check pay_setup_changes
and pay_setup_type
for the logic of the changes applied.
Setup fee value type. If abs
the value will be taken as absolute, if rel
- as percentage of the matched rate.
Possible values: [abs
, rel
]
abs
Setup fee change direction. If inc
the value will be increased, if dec
- decreased, if set
- set to the given value.
Possible values: [none
, set
, inc
, dec
]
none
Status to set.
Possible values: [active
, stashed
]
Tag to set.
Time profiles ID to set.
Rate value, check value_changes
and value_type
for the logic of the changes applied.
Rate value type. If abs
the value will be taken as absolute, if rel
- as percentage of the matched rate.
Possible values: [abs
, rel
]
abs
Rate value change direction. If inc
the value will be increased, if dec
- decreased, if set
- set to the given value.
Possible values: [none
, set
, inc
, dec
]
none
Notes to set.
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