2.2. Get classes available at the point

  1. HTTP Request
  2. Header Parameters
  3. Request Body
    1. Representation
    2. Fields
  4. Responses
    1. Code 200
      1. Representation
      2. Fields
    2. Code 400
      1. Representation
      2. Fields
  5. Example

In the response, the supported_requirements field returns possible additional requirements.
Acceptable values for requirements:

  1. cargo_type, possible size options
  2. cargo_loaders, possible options for loaders
  3. cargo_options, possible additional options: courier with a car - auto_courier, thermal bag — thermobag
    Each requirement has the "options" field that defines a list of possible values.
    Only one value can be selected for cargo_type/cargo_loaders,
    but for cargo_options there can be multiple values.
    These requirements can be passed when creating a claim in the field client_requirements.name,
    where "name" passes the name of the additional requirement,
    "value" passes an option for cargo_type or cargo_loaders,
    or an array of options for cargo_options.

HTTP Request

POST b2b.taxi.yandex.net/b2b/cargo/integration/v2/tariffs

Header Parameters

Accept-Language *

string

Preferred language of response

Accept-Language *

string

Preferred language of response

Request Body

{
  "fullname": string,
  "start_point": [
    "number"
  ]
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

fullname

string

Full name indicating the city (Moscow, Sadovnicheskaya Naberezhnaya, 82 bld. 2).
It's important to enter a locality indicating the house number but without the apartment number, entrance, or floor

start_point[]

array

Array of two real numbers [longitude, latitude]. The order is important!

fullname

string

Full name indicating the city (Moscow, Sadovnicheskaya Naberezhnaya, 82 bld. 2).
It's important to enter a locality indicating the house number but without the apartment number, entrance, or floor

start_point[]

array

Array of two real numbers [longitude, latitude]. The order is important!

Responses

Code 200

OK

{
  "available_tariffs": [
    {
      "minimal_price": number,
      "name": string,
      "supported_requirements": [
        {
          "default": boolean,
          "name": string,
          "options": [
            {
              "text": string,
              "title": string
            }
          ],
          "required": boolean,
          "text": string,
          "title": string,
          "type": string
        }
      ],
      "text": string,
      "title": string
    }
  ]
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

available_tariffs[] *

array

available_tariffs[].minimal_price *

number

available_tariffs[].name *

string

Service class

available_tariffs[].supported_requirements[] *

array

One Of:

available_tariffs[].supported_requirements[].name *

string

Requirement type

available_tariffs[].supported_requirements[].options[] *

array

Possible choices

available_tariffs[].supported_requirements[].options[].text *

string

Localized description of the requirement

available_tariffs[].supported_requirements[].options[].title *

string

Localized name of the requirement

available_tariffs[].supported_requirements[].options[].value *

object

Value passed to enable the option

available_tariffs[].supported_requirements[].required *

boolean

Required field

available_tariffs[].supported_requirements[].text *

string

Localized description of the requirement type

available_tariffs[].supported_requirements[].title *

string

Localized name of the requirement type

available_tariffs[].supported_requirements[].type *

string

Type of choice

Allowed values
  1. select
  2. multi_select

available_tariffs[].supported_requirements[].name *

string

Requirement type

available_tariffs[].supported_requirements[].options[] *

array

Possible choices

available_tariffs[].supported_requirements[].options[].text *

string

Localized description of the requirement

available_tariffs[].supported_requirements[].options[].title *

string

Localized name of the requirement

available_tariffs[].supported_requirements[].options[].value *

object

Value passed to enable the option

available_tariffs[].supported_requirements[].required *

boolean

Required field

available_tariffs[].supported_requirements[].text *

string

Localized description of the requirement type

available_tariffs[].supported_requirements[].title *

string

Localized name of the requirement type

available_tariffs[].supported_requirements[].type *

string

Type of choice

Allowed values
  1. select
  2. multi_select

available_tariffs[].supported_requirements[].name *

string

Requirement type

available_tariffs[].supported_requirements[].options[] *

array

Possible choices

available_tariffs[].supported_requirements[].options[].text *

string

Localized description of the requirement

available_tariffs[].supported_requirements[].options[].title *

string

Localized name of the requirement

available_tariffs[].supported_requirements[].options[].value *

object

Value passed to enable the option

available_tariffs[].supported_requirements[].required *

boolean

Required field

available_tariffs[].supported_requirements[].text *

string

Localized description of the requirement type

available_tariffs[].supported_requirements[].title *

string

Localized name of the requirement type

available_tariffs[].supported_requirements[].type *

string

Type of choice

Allowed values
  1. select
  2. multi_select

available_tariffs[].supported_requirements[].default *

boolean

Default value

available_tariffs[].supported_requirements[].name *

string

Requirement type

available_tariffs[].supported_requirements[].required *

boolean

Required field

available_tariffs[].supported_requirements[].text *

string

Localized description of the requirement type

available_tariffs[].supported_requirements[].title *

string

Localized name of the requirement type

available_tariffs[].supported_requirements[].type *

string

Type of choice

Allowed values
  1. bool

available_tariffs[].text *

string

available_tariffs[].title *

string

available_tariffs[] *

array

available_tariffs[].minimal_price *

number

available_tariffs[].name *

string

Service class

available_tariffs[].supported_requirements[] *

array

One Of:

available_tariffs[].supported_requirements[].name *

string

Requirement type

available_tariffs[].supported_requirements[].options[] *

array

Possible choices

available_tariffs[].supported_requirements[].options[].text *

string

Localized description of the requirement

available_tariffs[].supported_requirements[].options[].title *

string

Localized name of the requirement

available_tariffs[].supported_requirements[].options[].value *

object

Value passed to enable the option

available_tariffs[].supported_requirements[].required *

boolean

Required field

available_tariffs[].supported_requirements[].text *

string

Localized description of the requirement type

available_tariffs[].supported_requirements[].title *

string

Localized name of the requirement type

available_tariffs[].supported_requirements[].type *

string

Type of choice

Allowed values
  1. select
  2. multi_select

available_tariffs[].supported_requirements[].name *

string

Requirement type

available_tariffs[].supported_requirements[].options[] *

array

Possible choices

available_tariffs[].supported_requirements[].options[].text *

string

Localized description of the requirement

available_tariffs[].supported_requirements[].options[].title *

string

Localized name of the requirement

available_tariffs[].supported_requirements[].options[].value *

object

Value passed to enable the option

available_tariffs[].supported_requirements[].required *

boolean

Required field

available_tariffs[].supported_requirements[].text *

string

Localized description of the requirement type

available_tariffs[].supported_requirements[].title *

string

Localized name of the requirement type

available_tariffs[].supported_requirements[].type *

string

Type of choice

Allowed values
  1. select
  2. multi_select

available_tariffs[].supported_requirements[].name *

string

Requirement type

available_tariffs[].supported_requirements[].options[] *

array

Possible choices

available_tariffs[].supported_requirements[].options[].text *

string

Localized description of the requirement

available_tariffs[].supported_requirements[].options[].title *

string

Localized name of the requirement

available_tariffs[].supported_requirements[].options[].value *

object

Value passed to enable the option

available_tariffs[].supported_requirements[].required *

boolean

Required field

available_tariffs[].supported_requirements[].text *

string

Localized description of the requirement type

available_tariffs[].supported_requirements[].title *

string

Localized name of the requirement type

available_tariffs[].supported_requirements[].type *

string

Type of choice

Allowed values
  1. select
  2. multi_select

available_tariffs[].supported_requirements[].default *

boolean

Default value

available_tariffs[].supported_requirements[].name *

string

Requirement type

available_tariffs[].supported_requirements[].required *

boolean

Required field

available_tariffs[].supported_requirements[].text *

string

Localized description of the requirement type

available_tariffs[].supported_requirements[].title *

string

Localized name of the requirement type

available_tariffs[].supported_requirements[].type *

string

Type of choice

Allowed values
  1. bool

available_tariffs[].text *

string

available_tariffs[].title *

string

Code 400

Invalid claim

{
  "code": string,
  "message": string
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

code *

string

Error code

message *

string

Error description

code *

string

Error code

message *

string

Error description

Example

Request:

curl -X POST "b2b.taxi.yandex.net/b2b/cargo/integration/v2/tariffs" \
-H "Accept-Language: {string}" \
-d '{
  "fullname": "St. Petersburg, Bolshaya Monetnaya Ulitsa, 1 bld. 1A",
  "start_point": [
    0.1,
    0.1
  ]
}'
Copied to clipboard

Responses:

{
  "available_tariffs": [
    {
      "minimal_price": 213,
      "name": "cargo",
      "supported_requirements": [
        {
          "name": "cargo_type",
          "options": [
            {
              "text": "170 cm in length, 100 cm in width, 90 cm in height",
              "title": "Small body"
            }
          ],
          "required": false,
          "text": "Requirement for transportation vehicle dimensions",
          "title": "Body type",
          "type": "select"
        }
      ],
      "text": "Express tariff",
      "title": "Express"
    }
  ]
}
Copied to clipboard