- Request
- Responses
- 200 OK
- Body
- V2CargoItem
- V2ResponseCargoPoint
- ClaimStatus
- CallbackProperties
- ClientRequirements
- ContactWithPhone
- HumanErrorMessage
- MatchedCar
- PerformerInfo
- ClaimPricing
- SameDayData
- ClaimWarning
- ItemFiscalization
- CargoItemSizes
- CargoPointAddress
- ContactOnPoint
- PointType
- PointVisitStatus
- PointVisitTime
- ExpectedVisitInterval
- ExternalOrderCost
- ResponsePaymentOnDelivery
- CargoType
- CurrencyRules
- TaxiOffer
- ItemType
- ItemMark
- CustomerFiscalization
- PaymentMethod
- 400 Bad Request
- 404 Not Found
- 429 Too Many Requests
Get claim information
The method returns basic information about the claim: status, price, free cancellation option, and other information.
For claims with the "Same-day delivery" service, a response with the "same_day_data" is returned.
Request
POST
b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/info
Service URL
Query parameters
Name |
Description |
claim_id* |
Type: string Claim ID received at the claim creation stage Min length: Max length: |
Headers
Name |
Description |
Accept-Language* |
Type: string Preferred response language. Examples: "en" — English |
Responses
200 OK
Claim information
Body
application/json
{
"id": "741cedf82cd464fa6fa16d87155c636",
"corp_client_id": "cd8cc018bde34597932855e3cfdce927",
"items": [
{
"extra_id": "BP-208",
"pickup_point": 1,
"droppof_point": 2,
"title": "Plumbus",
"size": {
"length": 0.1,
"width": 0.2,
"height": 0.3
},
"weight": 2,
"cost_value": "2.00",
"cost_currency": "AED",
"quantity": 1,
"fiscalization": {
"excise": "12.50",
"vat_code_str": "vat_none",
"supplier_inn": 3664069397,
"article": "20ML50OWKY4FC86",
"mark": {
"kind": "gs1_data_matrix_base64",
"code": "444D00000000003741"
},
"item_type": "product"
}
}
],
"route_points": [
{
"id": 1,
"contact": {
"name": "Bryan Burns",
"phone": "+97142774444",
"phone_additional_code": "602 17 500",
"email": "customer-BryanBurns@yango.com"
},
"address": {
"fullname": "One Central Building 5, Trade Center Second, Dubai",
"shortname": "One Central Building 5, Trade Center Second",
"coordinates": [
0
],
"country": "UAE",
"city": "Dubai",
"building_name": "Dubai",
"street": "Trade Center Second",
"building": "building number",
"porch": "A",
"sfloor": "1",
"sflat": "1",
"door_code": "169",
"door_code_extra": "courtyard entrance code #1234, apartment code #4321",
"doorbell_name": "Magidovich",
"comment": "The intercom doesn't work",
"uri": "ymapsbm1://geo?ll=38.805%2C55.084",
"description": "Yango Dubai Office, One Central Building 5, Trade Center Second, Dubai"
},
"type": "source",
"visit_order": 1,
"visit_status": "pending",
"skip_confirmation": false,
"leave_under_door": false,
"meet_outside": false,
"no_door_call": false,
"payment_on_delivery": {
"payment_ref_id": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
"client_order_id": "100",
"is_paid": false,
"customer": {
"full_name": "Morty",
"inn": 3664069397,
"email": "customer-BryanBurns@yango.com",
"phone": "+97142774444"
},
"payment_method": "card",
"invoice_link": "url"
},
"external_order_id": "100",
"external_order_cost": {
"value": "100.0",
"currency": "AED",
"currency_sign": "currency sign (if exists)"
},
"expected_visit_interval": {
"from": "2020-01-01T00:00:00+00:00",
"to": "2020-01-02T00:00:00+00:00"
},
"pickup_code": "893422",
"return_reasons": [
"string"
],
"return_comment": "string",
"visited_at": {
"expected": "2022-12-29T18:02:01Z",
"expected_waiting_time_sec": 0,
"actual": "2022-12-29T18:02:01Z"
}
}
],
"current_point_id": 372036854775807,
"status": "new",
"version": 0,
"user_request_revision": "string",
"error_messages": [
{
"code": "some_error",
"message": "Some error"
}
],
"emergency_contact": {
"name": "Rick",
"phone": "+97142772222",
"phone_additional_code": "602 17 500"
},
"skip_door_to_door": false,
"skip_client_notify": false,
"skip_emergency_notify": false,
"skip_act": false,
"optional_return": false,
"eta": 10,
"created_ts": "2020-01-01T00:00:00+00:00",
"updated_ts": "2020-01-01T00:00:00+00:00",
"pricing": {
"offer": {
"offer_id": "28ae5f1d72364468be3f5e26cd6a66bf",
"price": "12.50",
"valid_until": "2020-01-01T00:00:00+00:00",
"price_with_vat": "12.50"
},
"currency": "AED",
"currency_rules": {
"code": "AED",
"text": "AED",
"template": "$VALUE$ $SIGN$$CURRENCY$",
"sign": "₽"
},
"final_pricing_calc_id": "string",
"final_price": "12.50"
},
"client_requirements": {
"taxi_class": "express",
"cargo_type": "lcv_m",
"cargo_loaders": 0,
"cargo_options": [
"thermobag"
],
"pro_courier": false
},
"matched_cars": [
{
"taxi_class": "express",
"client_taxi_class": "cargo",
"cargo_type": "lcv_m",
"cargo_type_int": "2 is equal to \"lcv_m\"",
"cargo_loaders": 0,
"door_to_door": false,
"pro_courier": false
}
],
"warnings": [
{
"source": "client_requirements",
"code": "not_fit_in_car",
"message": "warning"
}
],
"performer_info": {
"courier_name": "Mark Smith",
"legal_name": "Individual entrepreneur Mark Smith",
"car_model": "Hyundai Solaris",
"car_number": "71673",
"car_color": "red",
"car_color_hex": "FF00000",
"transport_type": "car"
},
"callback_properties": {
"callback_url": "https://www.example.com/"
},
"due": "2020-01-01T00:00:00+00:00",
"shipping_document": "string",
"comment": "Restaurant",
"revision": 1,
"route_id": "string",
"same_day_data": {
"delivery_interval": {
"from": "2020-01-01T07:00:00+00:00",
"to": "2020-01-01T07:00:00+00:00"
}
}
}
Name |
Description |
created_ts* |
Type: string<date-time> Date and time of claim creation Example: |
id* |
Type: string Claim ID obtained at the claim creation stage Example: Min length: Max length: |
items* |
Type: V2CargoItem[] Item parameters Min items: |
revision* |
Type: integer<int64> Revision (int64) Example: |
route_points* |
Type: V2ResponseCargoPoint[] Route point information Min items: |
status* |
Type: ClaimStatus Claim status. To learn more, see Status model Example: Enum: |
updated_ts* |
Type: string<date-time> Date and time of the last claim update Example: |
user_request_revision* |
Type: string The current version of changes in the claim entered by the user |
version* |
Type: integer<int64> Version (int64) |
callback_properties |
Type: CallbackProperties Parameters for notifying the client's server about the claim status change. A notification is a POST request to the specified URL to Note that parameters are added by concatenation to callback_url, which means that the Only HTTP and HTTPS are supported. In the case of HTTPS, an SSL certificate must Notifications should be viewed as a push ahead of polling, a way The client should note that the response of the claims/info operation may |
client_requirements |
Type: ClientRequirements Customer requirements specified when creating or editing a claim |
comment |
Type: string General comment to the order Example: Max length: |
corp_client_id |
Type: string Yango Delivery corporate client ID (from the OAuth token) Example: Min length: Max length: |
current_point_id |
Type: integer<int64> Integer point ID (int64) generated Example: |
due |
Type: string<date-time> Estimated time of arrival of the courier. Example: |
emergency_contact |
Type: ContactWithPhone Information about the contact person with a phone number |
error_messages |
Type: HumanErrorMessage[] List of error messages |
eta |
Type: integer<int64> Estimated order fulfillment time in minutes (int64) Example: |
matched_cars |
Type: MatchedCar[] Information about the selected rate |
optional_return |
Type: boolean Disable item return in case of order cancellation. Possible values:
|
performer_info |
Type: PerformerInfo Information about the executor |
pricing |
Type: ClaimPricing Information about the order cost |
route_id |
Type: string ID of the route within which the order is delivered |
same_day_data |
Type: SameDayData Additional information for "Same-day delivery" claims |
shipping_document |
Type: string Shipping documents |
skip_act |
Type: boolean Don't show an acceptance certificate |
skip_client_notify |
Type: boolean Don't send SMS notifications to the sender/recipient Default value: false (send notifications) |
skip_door_to_door |
Type: boolean Disable door-to-door delivery (disable the "Door-to-door" option). Possible values:
|
skip_emergency_notify |
Type: boolean Don't send a notification to the emergency contact person Default value: false (send notifications) |
warnings |
Type: ClaimWarning[] Warnings during claim processing |
V2CargoItem
Name |
Description |
cost_currency* |
Type: string Three-digit code of the payment currency Example: Min length: Max length: |
cost_value* |
Type: string Price per item in cost_currency. Example: |
droppof_point* |
Type: integer<int64> ID of the point (int64) to deliver It can be any number. Must match the route_points[].point_id value Example: |
pickup_point* |
Type: integer<int64> ID of the point (int64) to pick up It can be any number. Must match the route_points[].point_id value Example: |
quantity* |
Type: integer<int64> Number of units (int64) Example: Min value: |
title* |
Type: string Item name Example: |
extra_id |
Type: string Short unique item ID (order number in the claim, usually identical to external_order_id) Example: Max length: |
fiscalization |
Type: ItemFiscalization Fiscalization information (valid for payment upon receipt) |
size |
Type: CargoItemSizes Unit dimensions in meters. The actual values should be added to the fields. If the dimensions aren't added, the order is placed, taking into account If the actual characteristics of the unit exceed the allowed dimensions, Courier: up to 0.80 m × 0.50 m × 0.50 м
|
weight |
Type: number Item weight in kg. The actual values should be entered in the field. If the weight isn't added, the order is placed, taking into account If the actual characteristics of the parcel exceed the allowed dimensions, Courier: up to 10 kg
Example: |
V2ResponseCargoPoint
Route point information
Name |
Description |
address* |
Type: CargoPointAddress Point address |
contact* |
Type: ContactOnPoint Information about the contact person |
id* |
Type: integer<int64> Integer point ID (int64) Example: |
type* |
Type: PointType Point type:
Example: Enum: |
visit_order* |
Type: integer<int64> The order in which the points are visited (numbering starts with 1) (int64) Example: |
visit_status* |
Type: PointVisitStatus Point visit status:
Example: Enum: |
visited_at* |
Type: PointVisitTime Information about the point visit time |
expected_visit_interval |
Type: ExpectedVisitInterval Time interval of the courier's visit to the point according to the selected offer |
external_order_cost |
Type: ExternalOrderCost Cost of the external order linked to the point |
external_order_id |
Type: string Order number from the customer's system. Example: |
leave_under_door |
Type: boolean Leave the parcel at the door |
meet_outside |
Type: boolean The courier will be met outside, at the entrance |
no_door_call |
Type: boolean Don't ring the doorbell |
payment_on_delivery |
Type: ResponsePaymentOnDelivery Parameters of payment upon receipt |
pickup_code |
Type: string Parcel pick-up code. Example: Min length: Max length: Pattern: |
return_comment |
Type: string Comments on the reasons for returning the cargo |
return_reasons |
Type: string[] Reasons for returning the cargo |
skip_confirmation |
Type: boolean Skip SMS confirmation at the given point Default value: false (confirmation required). |
ClaimStatus
Claim status. To learn more, see Status model
Type |
Description |
Example: Enum: |
CallbackProperties
Parameters for notifying the client's server about the claim status change.
A notification is a POST request to the specified URL to
which information about the date of the last claim change
and claim ID in the format
'updated_ts=
'https://example.com/?my_order_id=123&' format will be expanded into
'https://example.com/?my_order_id=123&updated_ts=...&claim_id=...'.
Note that parameters are added by concatenation to callback_url, which means that the
URL such as 'https://example.com' will turn into this invalid format:
'https://example.comupdated_ts=...&claim_id=...'.
Only HTTP and HTTPS are supported. In the case of HTTPS, an SSL certificate must
be issued by a certification authority known to the server.
Notifications should be viewed as a push ahead of polling, a way
of speeding up information on status changes. The server expects
the 200 response, and if there are timeouts or any other response, it will attempt
to deliver the notification and then stop the attempts.
So in order to reliably obtain the claim status, the client
needs to request information using the method claims/info.
The client should note that the response of the claims/info operation may
contain an older claim state (the value of the
updated_ts field should be used as a reference). In this case, the operation
call must be repeated after some time (from 5 to 30 seconds).
Name |
Description |
callback_url* |
Type: string The URL used in the case of a status change for the claim. This mechanism is deprecated, use the claims/journal operation instead. Example: Pattern: |
ClientRequirements
Customer requirements specified when creating or editing a claim
Name |
Description |
taxi_class* |
Type: string Delivery rate. Possible values: courier, express, cargo Example: |
cargo_loaders |
Type: integer<int64> Number of loaders for the cargo rate. For an exact list of possible values for a particular point, |
cargo_options |
Type: string[] List of additional rate options. Possible separate options:
Example of a list of options: ["auto_courier"]. For an exact list of possible values for a particular geo point, Example: |
cargo_type |
Type: CargoType Body type (size) for the cargo rate. For an exact list of possible values for a particular geo point, Example: Enum: |
pro_courier |
Type: boolean Enable the "Pro" option for "Express" and "Courier" rates. |
ContactWithPhone
Information about the contact person with a phone number
Name |
Description |
name* |
Type: string Name of the contact person Example: |
phone* |
Type: string Phone number of the contact person Example: Max length: Pattern: |
phone_additional_code |
Type: string Extension number to call the courier Example: |
HumanErrorMessage
Error code and description
Name |
Description |
code* |
Type: string Error code Example: |
message* |
Type: string Error description Example: |
MatchedCar
Name |
Description |
taxi_class* |
Type: string Delivery rate. Possible values: courier, express, cargo Example: |
cargo_loaders |
Type: integer<int64> Required number of loaders (int64) |
cargo_type |
Type: string Body type Example: |
cargo_type_int |
Type: integer<int64> Body type (int64) Example: |
client_taxi_class |
Type: string Customer rate Example: |
door_to_door |
Type: boolean The "door-to-door" option for the "Express" rate |
pro_courier |
Type: boolean Enable the "Pro" option for "Express" and "Courier" rates. |
PerformerInfo
Information about the courier
Name |
Description |
courier_name* |
Type: string Name of the courier who is delivering a parcel Example: |
legal_name* |
Type: string Data on the legal entity that performs the delivery Example: |
car_color |
Type: string Vehicle color Example: |
car_color_hex |
Type: string RGB code of the vehicle color Example: |
car_model |
Type: string Vehicle model Example: |
car_number |
Type: string License plate number of the vehicle Example: |
transport_type |
Type: string Type of courier transport Example: |
ClaimPricing
Information about the order cost
Name |
Description |
currency |
Type: string Three-digit code of the payment currency Example: |
currency_rules |
Type: CurrencyRules Currency display rules |
final_price |
Type: string Final delivery price, including VAT. Example: Pattern: |
final_pricing_calc_id |
Type: string Cost calculation ID |
offer |
Type: TaxiOffer Offer from Yango Delivery (valid for some time). |
SameDayData
Additional information for "Same-day delivery" claims
Name |
Description |
delivery_interval* |
Type: object Parcel pick-up and delivery interval |
ClaimWarning
Name |
Description |
code* |
Type: string Warning type:
Example: |
source* |
Type: string Warning source:
Example: |
message |
Type: string Warning description Example: |
ItemFiscalization
Fiscalization information (valid for payment upon receipt)
Name |
Description |
article |
Type: string Item SKU. Example: |
excise |
Type: string Amount of excise tax Example: Pattern: |
item_type |
Type: ItemType Name type: product or service. Enum: |
mark |
Type: ItemMark Unique item code (control identification sign). Valid for Russia. |
supplier_inn |
Type: string Supplier's ITN (10 or 12 digits). Fill in the field for orders with buyout and CoD options. If there is no ITN, specify the default value: 1234567890 Example: Pattern: |
vat_code_str |
Type: string VAT rate. Possible values: Example: |
CargoItemSizes
Unit dimensions in meters. The actual values should be added to the fields.
If the dimensions aren't added, the order is placed, taking into account
the maximum dimensions allowed for the selected rate.
If the actual characteristics of the unit exceed the allowed dimensions,
the courier has the right to refuse to fulfill the order on site.
In this case, the minimum fee will be withheld.
Courier: up to 0.80 m × 0.50 m × 0.50 м
Express: up to 1.00 m × 0.60 m × 0.50 m
Cargo:
- Small body: up to 1.70 m × 0.96 m × 0.90 m
- Medium body: up to 2.60 m × 1.30 m × 1.50 m
- Large body: up to 3.80 m × 1.80 m × 1.80 m
Name |
Description |
height* |
Type: number Height in meters Example: |
length* |
Type: number Length in meters Example: |
width* |
Type: number Width in meters Example: |
CargoPointAddress
Point address
Name |
Description |
fullname* |
Type: string Full address with an indication of the city, street, and house number. Example: |
building |
Type: string Building Example: |
building_name |
Type: string Apartment building name Example: |
city |
Type: string City Example: |
comment |
Type: string Comment for the courier. For the dispatch point, use the template: "Delivery from store <>. Inform the manager that the order is for Yango Delivery. Provide your order number <> and collect the parcel. The order was paid using cashless payment. So, there's no need to ask the recipient to pay for the delivery when handing over the order." For delivery points, leave the recipient's wishes in the comments. For example, "the intercom doesn't work" / "the gate is closed, call 10 minutes in advance" / "don't call, the baby is asleep". Example: Max length: |
coordinates |
Type: number[] Coordinates of points in the form of an array of two real numbers: longitude and latitude — exactly in that order. Max items: Min items: |
country |
Type: string Country Example: |
description |
Type: string A geographic area that turns a short address into a global match Example: |
door_code |
Type: string Intercom code Example: |
door_code_extra |
Type: string Additional instructions for intercoms Example: |
doorbell_name |
Type: string Name on the doorbell Example: |
porch |
Type: string Entrance (may be A) Example: |
sflat |
Type: string Flat Example: |
sfloor |
Type: string Floor Example: |
shortname |
Type: string Short address within the city (like on a Taximeter) Example: |
street |
Type: string Street Example: |
uri |
Type: string URI of the geo object on maps Example: |
ContactOnPoint
Information about the contact person
Name |
Description |
name* |
Type: string Name of the contact person Example: |
phone* |
Type: string Phone number of the contact person Example: Max length: Pattern: |
|
Type: string Email is a mandatory parameter for source and return points Example: Max length: Pattern: |
phone_additional_code |
Type: string Extension number to call the courier Example: |
PointType
Point type:
- source: the point of departure where the courier picks up the item
- destination: destination points where the courier delivers the items
- return: item return point (added automatically and matches the point of departure by default, but a different point can also be selected)
Type |
Description |
Example: Enum: |
PointVisitStatus
Point visit status:
- pending — not yet visited.
- arrived — the courier arrived at the point.
- visited — the courier handed over/picked up the cargo at the point.
- skipped — skipped (if the item wasn't accepted).
Type |
Description |
Example: Enum: |
PointVisitTime
Information about the point visit time
Name |
Description |
actual |
Type: string<date-time> Actual point visit time. |
expected |
Type: string<date-time> Estimated time of arrival. Can be filled in |
expected_waiting_time_sec |
Type: integer<int64> Estimated waiting time at the point. (int64) |
ExpectedVisitInterval
Time interval of the courier's visit to the point according to the selected offer
Name |
Description |
from* |
Type: string<date-time> Interval start Example: |
to* |
Type: string<date-time> Interval end Example: |
ExternalOrderCost
Cost of the external order linked to the point
Name |
Description |
currency* |
Type: string Currency Example: |
currency_sign* |
Type: string Currency symbol Example: |
value* |
Type: string Cost Example: |
ResponsePaymentOnDelivery
Parameters of payment upon receipt
Name |
Description |
is_paid* |
Type: boolean Order payment indication |
client_order_id |
Type: string customer order's external ID Example: |
customer |
Type: CustomerFiscalization Information about the customer (recipient) |
invoice_link |
Type: string Invoice link Example: |
payment_method |
Type: PaymentMethod Selected payment method. Enum: |
payment_ref_id |
Type: string<uuid> Payment ID |
CargoType
Body type (size) for the cargo rate.
Possible values:
- van ("Small body")
- lcv_m ("Medium body")
- lcv_l ("Large body").
For an exact list of possible values for a particular geo point,
use the method for obtaining rates tariffs
Type |
Description |
Example: Enum: |
CurrencyRules
Currency display rules
Name |
Description |
code* |
Type: string Three-digit code of the payment currency Example: Min length: Max length: |
template* |
Type: string Currency display template Example: |
text* |
Type: string Short currency name Example: |
sign |
Type: string Currency symbol Example: |
TaxiOffer
Offer from Yango Delivery (valid for some time).
Name |
Description |
offer_id* |
Type: string Offer ID Example: |
price* |
Type: string Offer price without VAT Example: Pattern: |
price_with_vat |
Type: string Delivery cost in Decimal(18, 4) format Example: Pattern: |
valid_until |
Type: string<date-time> Time until which the offer to accept the claim is valid. If there is no value, there are no limits on the offer duration Example: |
ItemType
Name type: product or service.
Default value: product
Type |
Description |
Enum: |
ItemMark
Unique item code (control identification sign). Valid for Russia.
If items have a unique code, a separate block must be created for each of them
Name |
Description |
code* |
Type: string Unit marking code in accordance with the format ''kind'' Example: |
kind* |
Type: string Marking type.
Example: |
CustomerFiscalization
Information about the customer (recipient)
Name |
Description |
|
Type: string User's email address. If not specified, the recipient's email address from the destination point will be used Example: |
full_name |
Type: string For legal entities — organization name, for individual entrepreneurs and individuals — full name Example: |
inn |
Type: string User's ITN (10 or 12 digits) Example: Pattern: |
phone |
Type: string User's phone number in +X XXX XXX XX XX format. If not specified, the recipient's phone number from the destination point will be used Example: |
PaymentMethod
Selected payment method.
card — payment by card.
cash — cash payment (not yet available).
Type |
Description |
Enum: |
400 Bad Request
Bad request
Body
application/json
{
"code": "bad_request",
"message": "Incorrect request body"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description Example: |
404 Not Found
Claim not found
Body
application/json
{
"code": "not_found",
"message": "Claim not found"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description Example: |
429 Too Many Requests
Too many requests
Body
application/json
{
"code": "too_many_requests",
"message": "Too many requests"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description Example: |