This documentation is in beta, and might contain errors. Contact us at integration@instabee.com with any questions.

Instabee API

Fetch Label

Fetch the shipping label for an order.

Environments: Production https://api.integration.instabee.com · Sandbox https://sandbox-api.integration.instabee.com (same paths; use sandbox credentials for the sandbox host).


Fetch Label

Production: GET https://api.integration.instabee.com/orders/{orderId}/labels
Sandbox: GET https://sandbox-api.integration.instabee.com/orders/{orderId}/labels

Headers:

1Authorization: Bearer {token}

Path Parameters

ParamTypeRequiredDescriptionConstraints
orderIdstringrequiredThe unique order IDMinimum 1 character

Query Parameters

The label endpoint supports optional query parameters to customize the output format:

ParamTypeDefaultOptionsDescription
fileFormatstringpdfpng, zpl, pdfOutput file format
encodingstringbase64Return label as base64-encoded string
templatestringa6a6, a7Label paper size
dpiinteger96Resolution in dots per inch
debugbooleanfalsetrue, falseEnable debug mode
1curl -X GET "https://api.integration.instabee.com/orders/ORDER-12345/labels?fileFormat=pdf&template=a6" \
2  -H "Authorization: Bearer {token}" \
3  --output label.pdf
1curl -X GET "https://sandbox-api.integration.instabee.com/orders/ORDER-12345/labels?fileFormat=pdf&template=a6" \
2  -H "Authorization: Bearer {token}" \
3  --output label.pdf

Response

Returns the label file in the requested format. When encoding=base64, returns a JSON object with a base64-encoded string.

Error Handling

Status CodeDescriptionSolution
401UnauthorisedVerify your Bearer token
404Order not foundCheck the orderId is correct
429Rate limit exceededReduce request frequency

Command Palette

Search for a command to run...