Get Shipping Label

GetDocument. Retrieves the shipping labels for an order.

The response fields provided by this API are detailed in the following table:

Field NameTypeDescription
DocumentTypeStringDocument type requested in the API call
MimeType*StringCan have the values text/plain or application/pdf. text/plain indicates the type of decoding to be used to convert from base64 to plain text (.txt or .zpl). application/pdf is the decoding to be used to convert from base64 to pdf. Currently, text/plain only applies to Chile.
FileStringLabel encoded in BASE64

*The MimeType returned in the call is based on the format type previously requested by the seller. Changing the format requires creating a ticket in the Seller Support platform; at the moment, this request can only be made for sellers in Chile.

To reconstruct the file, the data from the <File> node must be decoded in base64 and interpreted according to the <MimeType>.

🚧

## How to request your ZPL label?

You must create a ticket through the support button in Falabella Seller Center, selecting

Post Sale > Pending Order Dispatch > I want to receive my labels in ZPL format

Currently, this applies only to Chile.

Errors

Error CodeMessage
20E020: "%s" Invalid Order Item IDs (Invalid order item IDs)
21E021: OMS Api Error Occurred (An error occurred in the API)
32E032: Document type "%s" is not valid (The document type "%s" is not valid)
34E034: Order Item must be packed. Please call setStatusToReadyToShip before (The order item must be packed. Please call setStatusToReadyToShip)
35E035: "%s" was not found ("%s" was not found)
Language