Edit a claim after confirmation
The method enables you to change some parameters of the claim after it is confirmed
Request
POST
b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/apply-changes/request
Service URL
Query parameters
Name |
Description |
claim_id* |
Type: string Claim ID received at the claim creation stage Min length: Max length: |
request_id* |
Type: string Unique edit request ID (idempotency token) Min length: Max length: |
Headers
Name |
Description |
Accept-Language* |
Type: string Preferred response language. Examples: "en" — English |
Body
application/json
{
"last_known_revision": "string",
"changes": [
{
"kind": "change_items",
"pickup_point_id": 1,
"dropoff_point_id": 2,
"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"
}
}
]
},
{
"kind": "change_comment",
"point_id": 1,
"comment": "string"
},
{
"kind": "change_contact",
"point_id": 1,
"contact": {
"name": "Bryan Burns",
"phone": "+97142774444",
"phone_additional_code": "602 17 500",
"email": "customer-BryanBurns@yango.com"
}
}
]
}
Name |
Description |
changes* |
Type: (ChangeItemsRequest A set of changes to the claim (the entire set or nothing will apply). Min items: |
last_known_revision* |
Type: string The latest claim version that the customer knows (version obtained from claims/info) |
ChangeItemsRequest
Request to change a list of items in the order
Name |
Description |
dropoff_point_id* |
Type: integer<int64> ID of the destination point where a list of items is changed (int64) Example: |
items* |
Type: V2CargoItem[] A new list of items for this combination of points Min items: |
kind* |
Type: string Change type (change_items) Example: Enum: |
pickup_point_id* |
Type: integer<int64> ID of the dispatch point where a list of items is changed (int64) Example: |
ChangeCommentRequest
Request to change a comment at the route point
Name |
Description |
comment* |
Type: string A new comment at the point Max length: |
kind* |
Type: string Change type (change_comment) Example: Enum: |
point_id* |
Type: integer<int64> ID of the point for which a comment is changed (int64) Example: |
ChangeContactRequest
Request to change the contact person at the point
Name |
Description |
contact* |
Type: ContactOnPoint Information about the contact person |
kind* |
Type: string Change type (change_contact) Example: Enum: |
point_id* |
Type: integer<int64> ID of the point where the contact person is changed (int64) Example: |
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: |
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: |
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: |
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: |
Responses
200 OK
OK
400 Bad Request
Limit on the maximum number of apply-changes request calls reached
Body
application/json
{
"code": "max_apply_changes",
"message": "Claim changed, refresh the page"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string The person understood the error message 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: |
409 Conflict
The entered request revision is outdated. You need to update the data via claims/info.
Body
application/json
{
"code": "old_version",
"message": "Claim changed, refresh the page"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string The person understood the error message Example: |