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:
GET method at the following endpoint:
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:
If you use the By Direct freight strategy, it is mandatory that the information in the "megaRota" field is identified on the label.
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.