Shipping Label Service

How do I get my Shipping label?

Skyhub provides an endpoint to consume the service to obtain the shipping label for the services B2W Entrega and Mercado Envios 2 of Mercado Livre.

For your platform take advantage of this integration is necessary to follow the steps below:

Use the GET method at the following endpoint:

https://api.skyhub.com.br/orders/{code}/shipment_labels

Warning: The functionality above is applicable only for those who integrate orders and products via the new SkyHub API, otherwise use the PLP (clustering) method available at the link below:

Check in our API explorer

There are two ways to get the B2W Entrega service tag that must be configured in the request header, to get the tag in JSON, or in PDF the header accept must have one of the following values:

Application/json - To get the label in Json format

Label example in JSON format

Application/pdf - To get the label in PDF format

Label example in PDF

Warning: It is mandatory that the fields highlighted in red are on the label to avoid the risk of refusal by Correios. They are:

  • Seal of approval

  • Tracking number

  • PLP

  • Order number

  • Shipping address

B2W Entregas by Direct models

If you use the By Direct freight strategy, it is mandatory that the information in the "megaRota" field is identified on the label.

Label in JSON format

Label in PDF format

Warning: It is mandatory that the fields highlighted in red are on the label to avoid the risk of refusal by Correios. They are:

  • Order number and invoice number

  • Tracking number

  • PL number

  • Base

  • "Mega rota"

  • Shipping address

We reinforce that the information "megaRota" must be identified on the label, as marked in red in the above example.

Remember that if you want to print on your thermal printer, it needs to be developed internally to compile the information returned in JSON from B2W Entrega method.

To identify the order shipping method, just check the field: "calculation_type". If the field has the value "b2wentregacorreios" or "b2wentregadirect" the update must be made until the billed status. From billed all dealings are done via B2W.

There are two ways to get the Mercado de Envios 2 label that must be configures in the request header. To get the label in PDF format or in ZIP, the header accept must have one of the following values:

  • Application/pdf - To get the label in PDF format

  • Application/zip - To get the label in ZIP format

For options in PDF and Zip will be available a file in the format requested.

If there is any question send an e-mail to api@skyhub.com.br