Fetch a label
GET/standard/label
This endpoint is meant to be used for retrieving the label for a given delivery. Labels can be customized by the sender based on technical and operational requirements.
Request
Query Parameters
access_token stringrequired
API Token
id stringrequired
Id of the delivery is been looked for
format string
Possible values: [pdf
, zpl
]
Default value: pdf
The returned label format whether it's a pdf or zpl. Zpl will be return a label optimized for 103x150mm @203dpi
Responses
- 200
- 400
- 500
OK
- application/pdf
- application/zpl
- Schema
Schema
- string binary
Returns the label as PDF
- Schema
Schema
- string binary
Returns the label as ZPL
Bad Request
- application/json
- Schema
- Example (from schema)
- example-400
Schema
error booleanrequired
message stringrequired
Possible values: non-empty
{
"error": true,
"message": "string"
}
{
"error": true,
"message": "not a valid id"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- example-500
Schema
error booleanrequired
message stringrequired
Possible values: non-empty
{
"error": true,
"message": "string"
}
{
"error": true,
"message": "Internal error, please contact support@sendit.green"
}
Loading...