EasyPost supports the option of creating a FedEx label with a leading or trailing Doc Tab. A Doc Tab is a section attached to the label with some basic order/shipment information on it.
Available Doc Tab Label Sizes
To pass different label sizes, you will need to pass the label_size
field in your options
object. To successfully get returned a FedEx label with a Doc Tab, you will need to use one of the following values:
- "4X6.75_LEADING_DOC_TAB"
- "4X6.75_TRAILING_DOC_TAB"
- "4X9_LEADING_DOC_TAB"
- "4X9_TRAILING_DOC_TAB"
Here is a JSON example:
"options": { "label_format": "ZPL", "label_size": "4X6.75_TRAILING_DOC_TAB", "invoice_number": "testInvoiceNumber", "print_custom_1":"printCustom1" }
The final result should look something like this: