Getting information about multiple shipments
The method is available for the FBS model.
If you are using an API Key token, one of the accesses in the list is required to call the method
- inventory-and-order-processing — Order processing and inventory
- inventory-and-order-processing:read-only — View order information
- all-methods — Full account management
- all-methods:read-only — View all data
Returns information about shipments based on the specified parameters:
- date.
- status;
- order IDs.
The results are returned page by page.
Limitation for the parameter limit
Do not transmit a value greater than 30.
| ⚙️ Limit: 100 requests per hour |
|---|
Request
PUT
https://api.partner.market.yandex.ru/v2/campaigns/{campaignId}/first-mile/shipments
Path parameters
|
Name |
Description |
|
campaignId* |
Type: integer<int64> The ID of the campaign (store) — The technical identifier that represents your store in the Yandex Market system when working through the API. It is uniquely linked to your store, but it is intended only for automated interaction. You can find it using a query GET v2/campaigns or find it in the seller's office on the Market. Click on your account icon → Settings and in the menu on the left, select APIs and modules:
⚠️ Do not confuse it with:
Min value: |
Query parameters
|
Name |
Description |
|
limit |
Type: integer<int32> The number of values per page.
Min value: |
|
page_token |
Type: string ID of the results page. If the parameter is omitted, the first page is returned. We recommend transmitting the value of the output parameter If set |
Body
application/json
{
"dateFrom": "string",
"dateTo": "string",
"statuses": [
"OUTBOUND_CREATED"
],
"orderIds": [
0
],
"cancelledOrders": true
}
|
Name |
Description |
|
dateFrom* |
Type: string<date> The starting date for filtering by shipment date (inclusive). Date format: |
|
dateTo* |
Type: string<date> The end date for filtering by shipment date (inclusive). Date format: |
|
cancelledOrders |
Type: boolean Whether to refund cancelled orders. Default value: Default: |
|
orderIds |
Type: integer[] A list of order IDs from shipments. Min items: Unique items |
|
statuses |
Type: string[] List of shipment statuses.
Enum: Min items: Unique items |
Responses
200 OK
Shipments found.
Body
application/json
{
"status": "OK",
"result": {
"shipments": [
{
"id": 0,
"planIntervalFrom": "2017-11-21T00:00:00+03:00",
"planIntervalTo": "2017-11-21T00:00:00+03:00",
"shipmentType": "IMPORT",
"warehouse": {
"id": 0,
"name": "string",
"address": "string"
},
"warehouseTo": {
"id": 0,
"name": "string",
"address": "string"
},
"externalId": "string",
"deliveryService": {
"id": 0,
"name": "string"
},
"palletsCount": {
"planned": 0,
"fact": 0
},
"orderIds": [
0
],
"draftCount": 0,
"plannedCount": 0,
"factCount": 0,
"signature": {
"signed": false
},
"status": "OUTBOUND_CREATED",
"statusDescription": "string",
"statusUpdateTime": "2017-11-21T00:00:00+03:00"
}
],
"paging": {
"nextPageToken": "string"
}
}
}
|
Name |
Description |
||||||
|
status* |
Type: string The type of response. Possible values:
Enum: |
||||||
|
result |
Type: object
Information about shipments. |
400 Bad Request
The request contains incorrect data. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
401 Unauthorized
The authorization data is not specified in the request. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
403 Forbidden
The authorization data is incorrect or access to the resource is prohibited. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
404 Not Found
The requested resource was not found. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
420 Method Failure
The resource access limit has been exceeded. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
500 Internal Server Error
Internal error of the Market. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
No longer supported, please use an alternative and newer version.