RocketShipIt

RocketShipIt

  • Docs
  • API Examples

›References

Guides

  • Getting Started
  • API Explorer
  • Errors
  • Self-Hosting
  • Cloud API
  • Rating
  • Tracking
  • Shipping Labels
  • Address Validation
  • Batch Requests
  • ETD / Paperless Customs
  • Thermal Printing
  • Add a logo to the shipping label
  • Add Reference Values to Labels
  • Return Labels
  • Scale Integrations
  • Laravel
  • FedEx Ground Collect
  • UPS Mail Innovations
  • Saturday Delivery
  • Find Locations
  • FedEx Test Environment
  • Switching UPS / FedEx REST
  • Authenticating Multiple UPS Accounts with UPS REST API
  • Authenticating with REST oauth APIs
  • Customizing RocketShipIt Requests

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?

Label Transformations

Transformation

A transformation modifies the label returned by the shipping carrier.

To add a transformation include the label parameter and add a transformation:

fieldtypevalues
typestringadd_image, add_text, flip_180
datastringbase64 encoded jpg,gif,png data
starting_xinthorizontal position on label to place image
starting_yintvertical position on label to place image
font_heightintheight of font for add_text
font_widthintwidth of font for add_text

Transformation Types:

  • add_image - Adds an image to the label (typically used to add logos)
  • add_text - Adds text to a label
  • flip_180 - Flips the label 180 degrees (typically used for print orientation when carriers lack API native support)
  • flip_90 - Flips the label 90 degrees (typically used for print orientation when carriers lack API native support) ZPL/EPL not currently supported

Supported Carriers:

  • UPS
  • FedEx
  • Stamps.com

Your carrier not supported? Just ask and we will add it.

Examples

Add text to your label (only ZPL/EPL labels supported):

...
    "label": {
      "transformations": [
        {
          "type": "add_text",
          "data": "your custom text!",
          "starting_x": 265,
          "starting_y": 25,
          "font_height": 12,
          "font_width": 10
        }
      ]
    },
...

Add an image to your label:

...
    "label": {
      "transformations": [
        {
          "type": "add_image",
          "image": "iVBORw0KGgoA...",
          "starting_x": 265,
          "starting_y": 25
        }
      ]
    },
...

See also: Add a logo to the shipping label

Flip the label 180 degrees:

...
    "label": {
      "transformations": [
        {
          "type": "flip_180"
        }
      ]
    },
...
← Command Line OptionsSupported Address Validation Countries →
RocketShipIt
Docs
Getting StartedAPI Reference
RocketShipIt
SupportMy Account
Copyright © 2025 RocketShipIt LLC