Ship a Delivery¶
This endpoint allows the (seller
) to ship a delivery using the id
as a reference.
Required Scope
Value | Description |
---|---|
open:order-delivery-seller:write |
Allows writing deliveries and related data. |
URL Parameters
Field | Type | Description | Required |
---|---|---|---|
id |
string (UUID) | ID of the delivery on the platform. | Yes |
Request:
curl -X 'POST' \
'https://api.magalu.com/seller/v1/deliveries/{id}/shippings' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <Access Token>' \
-H 'Content-Type: application/json' \
-d '{
"channel": {
"id": "3f042852-3efc-4d47-97f8-f94989c7b0bc"
},
"tracking_url": "http://url.de.acompanhamento.da.entrega/",
"protocol": "000111222",
"labels": [
{
"value": "etiqueta",
"id": "123"
}
],
"dates": {
"estimated_delivery_at": "2021-07-22T13:06:28.000Z",
"shipped_at": "2021-07-22T13:06:28.000Z",
},
"carrier": {
"name": "Nome da transportadora"
}
}'
Resposta:
Response Codes
Code | Description |
---|---|
201 | CREATED |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |