Overview
You can use the endpoint presented in this article to retrieve the Shipping Labels created for a single Sellercloud sales order. To consume it, you must:
- Be an authenticated user.
For information on how you can authenticate, see: Authentication
As soon as you authenticate and receive a valid token, it needs to be passed on to the call.
This endpoint only works for orders that have been shipped via Shipbridge.
Endpoint
An example of an endpoint for XX server is:
https://xx.api.sellercloud.com/rest/api/Orders/GetShippingLabel
For your the server endpoint will be:
https://{your_server_id}.api.sellercloud.com/rest/api/Orders/GetShippingLabel
Request
- Method Type: HttpGet
- Authorization: Use Bearer Token + token received from token authentication
- Header info: Content-Type: application/json
- Parameters: valid ID of an existing order
Response
- If the user is authenticated and provides a valid ID of an order, then the response will be Status Code 200 => OK and:
- The FileContent is returned Base 64 encoded in the response content.
- The FileName is returned in the response ContentDisposition header.
- If the user is not authenticated, then the response will be Status Code 401 => Not Valid Token
- On server response => Status Code 500 => Internal Server Error
- If the order does not have a shipping label printed via Shipbridge, the response code will be 404 => There is no shipping label generated for this order