Validate arithmetic expression representing vehicle cost

  1. HTTP Request
  2. Query Parameters
  3. Request Body
    1. Representation
    2. Fields
  4. Responses
    1. Code 200
    2. Code 400
      1. Representation
      2. Fields
    3. Code 422
      1. Fields

Validate arithmetic expression representing vehicle cost.

HTTP Request

POST https://courier.yandex.ru/vrs/api/v1/validate/vehicle_cost\
?apikey={string}

Query Parameters

apikey *

string

API key.

apikey *

string

API key.

Request Body

{
  "expression": string
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

expression *

string

Arithmetic expression representing vehicle cost

expression *

string

Arithmetic expression representing vehicle cost

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

Collapse all
Expand all

Fields

error *

object

Error description.

error.incident_id

string

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

error.message *

string

Human-readable error description.

error *

object

Error description.

error.incident_id

string

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

error.message *

string

Human-readable error description.

Code 422

Expression is not valid.

Fields