Validate arithmetic expression representing vehicle cost
Validate arithmetic expression representing vehicle cost.
HTTP Request
POST https://courier.yandex.ru/vrs/api/v1/validate/vehicle_cost\
?apikey={string}
Query Parameters
* Required parameter
Request Body
{ "expression": string }
Copied to clipboard
Representation
Fields
expression * | string Arithmetic expression representing vehicle cost |
expression * | string Arithmetic expression representing vehicle cost |
* Required parameter
Responses
Code 200
Experession is valid.
Code 400
Invalid or empty JSON in POST request body.
{ "error": { "incident_id": string, "message": string } }
Copied to clipboard
Representation
Fields
error * | object Error description. |
error. | string Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation. |
error. | string Human-readable error description. |
* Required parameter
Code 422
Expression is not valid.
{ "error": { "incident_id": string, "message": string } }
Copied to clipboard
Representation
Fields
error * | object Error description. |
error. | string Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation. |
error. | string Human-readable error description. |
* Required parameter
Code 429
Too many requests.
{ "error": { "incident_id": string, "message": string } }
Copied to clipboard
Representation
Fields
error * | object Error description. |
error. | string Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation. |
error. | string Human-readable error description. |
* Required parameter
Code 500
Server error during request processing.
{ "error": { "incident_id": string, "message": string } }
Copied to clipboard
Representation
Fields
error * | object Error description. |
error. | string Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation. |
error. | string Human-readable error description. |
* Required parameter