Download Label (PDF base64)
GET//:domain/api/starshipit/integration-instances/:integration_instance/orders/:order/label
Proxies StarShipIt's GET /api/orders/labels endpoint and returns the base64-encoded PDF label for the order.
The response contains filename, mime_type, and base64. The frontend decodes the base64 string client-side and triggers a download.
Returns 400 if the local order has no starshipit_order_id (i.e. was never submitted to Starshipit). Returns 502 if the StarShipIt API call fails or returns no label.
Authentication: Requires Bearer token.
Request
Responses
- 200
- 502
OK
Response Headers
Content-Type
Bad Gateway
Response Headers
Content-Type