Shipment confirmation
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
- all-methods — Full account management
Confirms the shipment of goods to the sorting center or the order acceptance point. The action is available only after the shipment has been generated.
The shipment schedule is configured separately for each warehouse in your merchant profile and is not available via the API.
You can check the shipment confirmation using the method GET v2/campaigns/{campaignId}/shipments/{shipmentId}: among the available actions availableActions There must be an action CONFIRM.
Before the confirmation time, the method returns the code 400 and the error "Cutoff time for shipments has not been reached yet".
Read more about accepting orders and shipping schedules. in the Help of the Market for sellers.
| ⚙️ Limit: 100 requests per hour |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/campaigns/{campaignId}/first-mile/shipments/{shipmentId}/confirm
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: |
|
shipmentId* |
Type: integer<int64> Shipment ID. Min value: |
Body
application/json
{
"externalShipmentId": "string",
"signatory": "string"
}
|
Name |
Description |
|
externalShipmentId |
Type: string The shipment ID in the supplier's system. |
|
signatory |
Type: string The username of the user in Yandex ID, on whose behalf the electronic acceptance certificate will be signed. Specified without Where to find it:
|
Responses
200 OK
An empty answer.
Body
application/json
{
"status": "OK"
}
|
Name |
Description |
|
status* |
Type: string The type of response. Possible values:
Enum: |
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.