RocketShipIt

RocketShipIt

  • Docs
  • API Examples

›Guides

Guides

  • Getting Started
  • API Explorer
  • Errors
  • Self-Hosting
  • Logging & Debugging
  • Cloud API
  • Rating
  • Tracking
  • Shipping Labels
  • Address Validation
  • Batch Requests
  • ETD / Paperless Customs
  • EU De Minimis
  • Thermal Printing
  • Add a logo to the shipping label
  • Add Reference Values to Labels
  • FedEx Doc Tab Labels
  • Return Labels
  • Scale Integrations
  • Laravel
  • FedEx Ground Collect
  • UPS Mail Innovations
  • Saturday Delivery
  • Find Locations
  • FedEx Test Environment
  • Switching UPS, FedEx, USPS REST
  • Authenticating Multiple UPS Accounts with UPS REST API
  • Authenticating with REST oauth APIs
  • FedEx Authentication with RocketShipIt Child Credentials
  • Customizing RocketShipIt Requests
  • Hazardous Materials

References

  • Requirements
  • Supported Shipping Carriers
  • Carrier Authentication
  • API Examples
  • Request/Response Format
  • Parameters
  • Carrier Errors
  • Command Line Options
  • Label Transformations
  • Supported Address Validation Countries
  • DHL Addons (Special Service Codes)
  • Rate Details
  • GetSubscription
  • Accessorial / Surcharge Codes
  • Shipping Carrier APIs
  • FedEx SmartPost
  • Carrier Parameters
  • UPS API Parameters
  • FedEx API Parameters
  • API REST Migration Deadlines

Troubleshooting

  • What if I run into trouble?
  • FAQs
  • Inaccurate Rates?

FedEx Doc Tab Labels

Doc tab label stock is thermal label stock with an extra tear-off tab. FedEx can print shipment data on the tab, either a standard set of fields or fully custom content arranged in up to 12 zones.

Doc tabs are supported by the FedEx-REST carrier for SubmitShipment requests using a thermal image_type (ZPLII/EPL2) and a doc tab label_stock_type such as:

  • STOCK_4X6.75_LEADING_DOC_TAB
  • STOCK_4X6.75_TRAILING_DOC_TAB
  • STOCK_4X9_LEADING_DOC_TAB
  • STOCK_4X9_TRAILING_DOC_TAB
  • STOCK_4X8.5_TRAILING_DOC_TAB
  • STOCK_4X10.5_TRAILING_DOC_TAB

Standard doc tab

Choosing a DOC_TAB label stock is all that is required for FedEx to print its standard doc tab data:

{
  "carrier": "FedEx-REST",
  "action": "SubmitShipment",
  "params": {
    "image_type": "ZPLII",
    "label_stock_type": "STOCK_4X6.75_LEADING_DOC_TAB",
    ...
  }
}

Custom doc tab zones

The label.doc_tab parameter customizes the doc tab content. Each zone prints a header and a value. The value is either free-form text (literal_value) or a field FedEx fills in from the shipment request/reply (data_field).

Zone parameters:

ParameterDescription
numberZone position on the tab, 1-12. Defaults to the zone's position in the zones list.
headerPrinted header for the zone, e.g. PO Number.
literal_valueFree-form text printed as-is.
data_fieldRequest/reply path FedEx fills in, e.g. REQUEST/PACKAGE/weight/Value or REQUEST/SHIPMENT/ShipTimestamp.
justificationLEFT or RIGHT.

Example:

{
  "carrier": "FedEx-REST",
  "action": "SubmitShipment",
  "params": {
    "image_type": "ZPLII",
    "label_stock_type": "STOCK_4X6.75_LEADING_DOC_TAB",
    "label": {
      "doc_tab": {
        "zones": [
          {
            "header": "Customer",
            "literal_value": "ACME Corp",
            "justification": "LEFT"
          },
          {
            "header": "Weight",
            "data_field": "REQUEST/PACKAGE/weight/Value",
            "justification": "RIGHT"
          },
          {
            "header": "Date",
            "data_field": "REQUEST/SHIPMENT/ShipTimestamp"
          }
        ]
      }
    },
    ...
  }
}

Doc tab type

The doc tab content type can be set explicitly with label.doc_tab.type: STANDARD, MINIMUM, ZONE001, BARCODED, or CUSTOM. It defaults to ZONE001 when zones are provided and STANDARD otherwise, so most requests do not need to set it.

BARCODED prints a single zone as a barcode. The first zone is used and the barcode symbology is set with symbology (e.g. CODE128):

"label": {
  "doc_tab": {
    "type": "BARCODED",
    "symbology": "CODE128",
    "zones": [
      {
        "header": "PO",
        "data_field": "REQUEST/PACKAGE/customerReferences[0]/value"
      }
    ]
  }
}

Migrating from the legacy FedEx API

RocketShipIt v1 doc tab parameters map to label.doc_tab as follows:

Legacy parameterNew parameter
docTabTypetype
docTabZone[N]Labelzones[N-1].header
docTabZone[N]DataFieldzones[N-1].data_field
docTabZone[N]FreeFormzones[N-1].literal_value
docTabZone[N]Justificationzones[N-1].justification

Note that FedEx changed the data_field path syntax in their REST API. Legacy SOAP paths do not carry over verbatim; the REST API uses paths like REQUEST/SHIPMENT/ShipTimestamp, REQUEST/PACKAGE/weight/Value, and REQUEST/PACKAGE/InsuredValue/Amount.

See also

  • Add Reference Values to Labels for printing reference values on the label body itself
  • Label Transformations for adding text or images to a returned label
← Add Reference Values to LabelsReturn Labels →
  • Standard doc tab
  • Custom doc tab zones
  • Doc tab type
  • Migrating from the legacy FedEx API
  • See also
RocketShipIt
Docs
Getting StartedAPI Reference
RocketShipIt
SupportMy Account
Copyright © 2026 RocketShipIt LLC