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.
Restriction for the parameter limit
Do not pass a value greater than 30.
, Limit: 100 requests per hour |
---|
Request
PUT
https://api.partner.market.yandex.ru/campaigns/{campaignId}/first-mile/shipments
Path parameters
Name |
Description |
campaignId* |
Type: integer<int64> The campaign ID. You can find it using a query GET campaigns or find it in the seller's office on the Market — click on the name of your business and go to the page:
, Do not send the store ID instead, which is indicated in the seller's account on the Market next to the store name and in some reports.
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<int64>[] A list of order IDs from shipments. Min items: Unique items |
statuses |
Type: ShipmentStatusType[] List of shipment statuses. Enum: Min items: Unique items |
ShipmentStatusType
Shipment status:
OUTBOUND_CREATED
— it is being formed.OUTBOUND_READY_FOR_CONFIRMATION
— it can be processed.OUTBOUND_CONFIRMED
— confirmed and ready to ship.OUTBOUND_SIGNED
— an electronic acceptance certificate has been signed for it.ACCEPTED
— accepted at the sorting center or reception point.ACCEPTED_WITH_DISCREPANCIES
— accepted with discrepancies.FINISHED
— completed.ERROR
— cancelled due to an error.
Type |
Description |
Enum: |
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 |
result |
Type: SearchShipmentsResponseDTO Information about shipments. |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
SearchShipmentsResponseDTO
Information about shipments.
Name |
Description |
shipments* |
Type: ShipmentInfoDTO[] A list with information about shipments. |
paging |
Type: ForwardScrollingPagerDTO Pages with search results. |
ApiResponseStatusType
The type of response. Possible values:
OK
— there are no mistakes.ERROR
— an error occurred while processing the request.
Type |
Description |
Enum: |
ShipmentInfoDTO
A list with information about shipments.
Name |
Description |
draftCount* |
Type: integer<int32> The number of orders that the Market has scheduled for shipment. Min value: |
factCount* |
Type: integer<int32> The number of orders accepted at the sorting center or reception point. Min value: |
id* |
Type: integer<int64> Shipment ID. Min value: |
orderIds* |
Type: integer<int64>[] The IDs of the orders in the shipment. Min value: Unique items |
planIntervalFrom* |
Type: string<date-time> The beginning of the scheduled shipping interval. Date format: ISO 8601 with an offset relative to UTC. Example: |
planIntervalTo* |
Type: string<date-time> The end of the planned shipping interval. Date format: ISO 8601 with an offset relative to UTC. Example: |
plannedCount* |
Type: integer<int32> The number of orders that the Market has confirmed for shipment. Min value: |
signature* |
Type: [SignatureDTO(#signaturedto) Information about the signature of the acceptance certificate. |
deliveryService |
Type: DeliveryServiceDTO The delivery service. |
externalId |
Type: string The shipment ID in your system. If you haven't passed the ID yet, the ID from the parameter will be returned. |
palletsCount |
Type: PalletsCountDTO Information about the pallets in the shipment. |
shipmentType |
Type: ShipmentType The method of shipping orders. Enum: |
status |
Type: ShipmentStatusType Shipment status. Enum: |
statusDescription |
Type: string Description of the shipment status. |
statusUpdateTime |
Type: string<date-time> The time of the last change in the shipment status Date format: ISO 8601 with an offset relative to UTC. Example: |
warehouse |
Type: PartnerShipmentWarehouseDTO Information about the shipping warehouse. |
warehouseTo |
Type: PartnerShipmentWarehouseDTO Information about the destination warehouse. |
ForwardScrollingPagerDTO
The ID of the next page.
Name |
Description |
nextPageToken |
Type: string ID of the next results page. |
SignatureDTO
Information about the signature of the acceptance certificate.
Name |
Description |
signed* |
Type: boolean Has the acceptance certificate been signed? |
DeliveryServiceDTO
The delivery service.
Name |
Description |
id |
Type: integer<int64> The delivery service ID. |
name |
Type: string The name of the delivery service. |
PalletsCountDTO
The number of pallets in the shipment.
Name |
Description |
fact |
Type: integer<int32> The number of pallets accepted at the sorting center. Min value: |
planned |
Type: integer<int32> The number of pallets specified by the seller. Min value: |
ShipmentType
Shipping method of orders:
IMPORT
— you bring your orders to the selected sorting center or order acceptance point on your own.WITHDRAW
— you ship orders from your warehouse to Yandex Market couriers.
Type |
Description |
Enum: |
PartnerShipmentWarehouseDTO
Information about the shipping warehouse.
Name |
Description |
id* |
Type: integer<int64> The ID of the shipping warehouse. Min value: |
address |
Type: string The address of the shipping warehouse. |
name |
Type: string The name of the shipping warehouse. |
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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
ApiErrorDTO
The general error format.
Name |
Description |
code* |
Type: string The error code. |
message |
Type: string Description of the error. |
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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType 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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType 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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType 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: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
500 Internal Server Error
Internal error of Yandex. Market. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
No longer supported, please use an alternative and newer version.