Validate arithmetic expression representing vehicle cost

Validate arithmetic expression representing vehicle cost.

Request

POST

https://courier.yandex.ru/vrs/api/v1/validate/vehicle_cost

Query parameters

Name

Description

apikey*

Type: string

API key.

Body

application/json
{
    "expression": "string"
}

Name

Description

expression*

Type: string

Arithmetic expression representing vehicle cost

Responses

200 OK

Experession is valid.

400 Bad Request

Invalid or empty JSON in POST request body.

Body

application/json
{
    "error": {
        "incident_id": "string",
        "message": "string"
    }
}

Name

Description

error*

Type: error_2_error

Error description.

error_2_error

Error description.

Name

Description

message*

Type: string

Human-readable error description.

incident_id

Type: string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

422 Unprocessable Entity

Expression is not valid.

Body

application/json
{
    "error": {
        "incident_id": "string",
        "message": "string"
    }
}

Name

Description

error*

Type: error_2_error

Error description.

429 Too Many Requests

Too many requests.

Body

application/json
{
    "error": {
        "incident_id": "string",
        "message": "string"
    }
}

Name

Description

error*

Type: error_2_error

Error description.

500 Internal Server Error

Server error during request processing.

Body

application/json
{
    "error": {
        "incident_id": "string",
        "message": "string"
    }
}

Name

Description

error*

Type: error_2_error

Error description.