Generate Labels¶
This endpoint allows the (seller
) to generate labels for a delivery using the id
as a reference.
Required Scope
Value | Description |
---|---|
open:order-logistics-seller:write |
Allows the execution of logistics operations. |
Request:
curl -X 'POST' \
'https://api.magalu.com/seller/v1/logistics/shipping-labels' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <Access Token>' \
-H 'Content-Type: application/json' \
-d '{
"deliveries": [{
"id": "uuid"
}],
"label": {
"format": "pdf|zpl",
"type": "summary|full"
},
"channel": {
"id": "uuid"
},
}'
Response:
{
"label": {
"expires_on": "2023-06-31T10:17:07.000Z",
"signed_url": "https://example.com/jas9df8yadfjf0kasd09fausdf0kd0a9k.zpl"
}
}
Response Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |