The body of the call to the Labeler API uses a structured JSON format with mandatory and optional fields. The JSON must be properly structured to be accepted and mandatory fields must be populated. Each property in the request has a specific data type for the value; all values must conform to the required data type.
The number of generated PDF labels depends on the number of objects in the parcels array. barcode identifies a label and is the only required field within the object.
Base URL
Toggle the Base URL to call either staging or production based on the environment that you are working with:
Production:
https://api.paack.io/v3/labels
Staging:
https://api.staging.paack.io/v3/labels
HEADER
Pass your access_token as a Bearer token in the Authorization header. The value of the header should look like this:
Bearer {{access_token}}
Parameter Constraints
You can click in the input box of each parameter to see all the constraints related to a field.
The Labeler API matches the definition of the order management service. The list below includes only required and printable fields but you can extend your request with any field from the order creation API.
Responses
206
In case of an HTTP 206 response, the Labeler API returns partial content, in the format specified in the template_id field of the request body. This occurs due to exceeding the character field length or due to unsupported characters.
- Response body: The label in the specified format is returned but the displayed information is incomplete: names can be truncated and unsupported characters converted into question marks (?).
400
If the information you provided is invalid, the HTTP code of the response is 400. For instance, you didn't use the specified data type or missed required fields. - Response body as described here.
Learn more in Labeler API > Troubleshooting.
401
Communicates a missing or expired access token for authorization.
Updated over 2 years ago
Language
ShellNodeRubyPHPPython
Credentials
Header
Header
URL
Base URL
https://api.paack.io/v3/labels
Loading…
Response
Click Try It! to start a request and see the response here! Or choose an example: