Skip to main content
Some carriers enable you to add reference information to your label. Depending on your application, you could use this to add information like customer order numbers or other reference details to a shipping label. For example, USPS print reference fields at the bottom of the their label. USPS sample label with the location of ref1 and ref2 highlighted

Supported carriers

Not every carrier supports this and different carriers enable this in different ways. Refer to this table for details on Shippo supported carriers that have enabled this feature.

Add reference details to a Shipment

To add reference details to a label for a supported carrier, use the fields reference_1 and reference_2 in the Shipments Extras object.
noteFor versions 2014-02-11 and 2016-10-25, reference_1 and reference_2 are in the Shipments object.
Follow this example showing how to set reference fields.
cURL

Add reference details to a Parcel

You can also define reference details in your parcel. To add reference details to a label for a supported carrier, use the fields reference_1 and reference_2 in the Parcels Extras object. This can be useful for multi-piece shipments where you may choose to add a different reference to each label. If you define both a parcel reference and a shipment reference, the parcel reference will be printed on your label (if your carrier supports it). Follow this example showing how to set different references for each label in a multi-piece shipment.
cURL
The following are the resulting labels. sample multipiece label

Add additional details to a FedEx label

For FedEx, Shippo supports more fields where you can add more information. In the Shipments Extras object, you can use the following fields.
  • customer_reference
  • po_number
  • dept_number
  • invoice_number
  • rma_number
Follow this example.
cURL
Note, these fields are available only on ZPL labels and support up to 11 characters for the prefix and up to 40 characters for the value.
  • If customer_reference is used, reference_1 will be ignored.
  • If po_number is used, reference_2 will be ignored.
  • If invoice_number is used, for international shipments, shipment.customs_declaration.invoice will be ignored.

Omnichannel shipping with FedEx

You can also customize FedEx’s label prefixes to meet those requirements for omnichannel shipping and label specific SOPs. Note, this applies to ZPL labels only. The following example uses the ARN which is a unique shipment number assigned by Amazon to track the shipments and the LOAD number is a reference number for the shipment.
cURL

Add additional details to a UPS label

You can add additional reference fields to UPS ZPL II labels. UPS allows a maximum of five reference fields for a single label. In the Shipments Extras object, you can use the following fields.
  • accounts_receivable_customer_account
  • appropriation_number
  • bill_of_lading_number
  • cod_number
  • customer_reference
  • dealer_order_number
  • dept_number
  • fda_product_code
  • invoice_number
  • manifest_number
  • model_number
  • part_number
  • po_number
  • production_code
  • purchase_request_number
  • rma_number
  • salesperson_number
  • serial_number
  • store_number
  • transaction_reference_number
Follow this example.
Use ref_sort to define the order your references are printed on your label. If you choose to use ref_sort, you cannot use the same number more than once. If you choose to set ref_sort for one reference, you must set ref_sort for all other supported UPS references.
Last modified on July 16, 2026