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?

Request/Response Format

The default request/response format is JSON. Successful requests will return a 200 OK HTTP status.

Some general information about responses:

  • All fields are generally included in responses even if that shipping carrier doesn't support that field. These fields will be blank.
  • Dates are returned in RFC3339 format: YYYY-MM-DDTHH:MM:SSZ. Some shipping carriers don't indicate a timezone, in this case it will be assumed to be in local time indicated by -00:00 format: 2006-01-02T15:04:05-00:00.
  • Any decimal monetary amount, such as prices or totals, will be returned as floats with at least two decimal places.
  • Other amounts, such as package counts, are returned as integers.
  • When self-hosting, requests have no timeout unless the timeout parameter is specified. The timeout parameter is in milliseconds. The Cloud API has a hard timeout of 30 seconds which can be shortened but not extended.

Request Properties

FieldTypeDescription
carrierstring: "ups"the shipping carrier the request is intended for
actionstring: "SubmitShipment"API action you wish to take i.e. SubmitShipment, Track, GetAllRates See: Available Actions
paramsobject: {}Parameters for the API action you are taking

Carrier

CarrierDescription
UPSUPS (legacy) SOAP based API
UPS-RESTUPS Newer REST/oauth based API
FedExFedEx (legacy) SOAP based API
FedEx-FIMSFedEx International MailService
FedEx-RESTFedEx REST/oauth based API
USPSUSPS direct API (no paid postage)
USPS-eVSUSPS eVS (direct USPS postage paid)
StampsStamps.com
DHLDHL XML PI API
DHL-GlobalMailDHL Global Mail / eCommerce
DHL-DEDHL Germany
DHL-PLDHL Poland
CanadaCanada Post
PurolatorPurolator
GSOGolden State Overnight now GLS
OnTracOnTrac
RoyalMailRoyal Mail
DPDDPD
DicomDicom
ODOld Dominion Freight API

Action

ActionDescription
AuthenticateFor carriers that require oauth temp tokens (FedEx-REST)
TrackTrack packages or shipments
GetAllRatesGet live rates for all services
SubmitShipmentCreate shipping label
AddressValidateValidate an address to get address suggestions
VoidShipmentCancel a shipment
TimeInTransitGet detailed transit time information and estimated delivery times
PickupRateDetermine cost of a pickup
CreatePickupSchedule a carrier to pickup package(s)
PickupStateCheck the status of a pickup
GetSubscriptionDownload UPS Quantum View data as CSV
PurchasePostagePurchase USPS postage (Stamps.com only)
CreateManifestCreate end-of-day report (USPS Scan Form)
FindLocationsFind drop-off locations, Access Points, etc.
AccountInfoGet carrier account info (Stamps.com only)
UploadDocumentUpload user-defined customs documents
LinkDocumentLink user-defined customs documents to a shipment
NotifyAdd email notifications to a package after it has been shipped

Response Properties

FieldTypeDescription
metaobject: {}meta holds metadata of the request
meta.codeint: 200code holds the RocketShipIt Response code
meta.error_messagestring: "Invalid JSON - invalid character '\"' after object key:value pair"error_message holds a RocketShipIt related (not a carrier error) error message
meta.debug_informationobject: {}debug_information holds information about the version of RocketShipIt used as well as all underlying API requests RocketShipIt made. This field is only returned when debug:true.
meta.debug_information.build_hashstring: "02a0ba0ad38c644fcdb79a299ec9ec304cab91cc"build_hash is the computed hash of the code used to produce the version of RocketShipIt used
meta.debug_information.build_timestring: "2018-12-14_06:18:28PM"build_time is the time in PST when RocketShipIt was built
meta.debug_information.requestobject: {}request is the request JSON made to RocketShipIt
meta.debug_information.versionstring: 2.8.1.273version is the named version of RocketShipIt
meta.debug_information.transactionsarray: []transactions holds a list of all transactions RocketShipIt made in association with the request (some actions require multiple underlying transactions)
transaction.durationint: 441696573duration is nanoseconds it took to make the transaction with the carrier or 441696573 / 1,000,000,000 = 0.44 seconds
transaction.requeststring: JSON/XMLrequest is the request body sent to the carrier
transaction.responsestring: JSON/XMLresponse is the response body received from the carrier
transaction.status_codeint: 200status_code is the status code returned from the carrier
transaction.urlstring: https://ws.fedex.com:443/web-services/rateurl is the endpoint/url RocketShipIt sent the request/transaction to
dataobject: {}data holds action response data

Action Response Properties

Track

FieldTypeDescription
errorsarray: []ErrorA list of errors
shipment_idstring: "9361289878130102925130"shipment ID, for UPS this is the first tracking number in a multi-package shipment
destinationobject: {}Destination address of the shipment
destination.addr1string: "123 Main St."Address line 1
destination.addr2string: "Apt 2"Address line 2
destination.citystring: "San Francisco"City
destination.statestring: "CA"ISO state code
destination.postal_codestring: "94115"zip/postal code
destination.countrystring: "US"ISO country code
originobject: {}Origin address of the shipment
origin.addr1string: "123 Main St."Address line 1
origin.addr2string: "Apt 2"Address line 2
origin.citystring: "San Francisco"City
origin.statestring: "CA"ISO state code
origin.postal_codestring: "94115"zip/postal code
origin.countrystring: "US"ISO country code
estimated_deliverystring: "2018-11-03T00:00:00-00:00"Datetime when the package should be delivered
delivered_timestring: "2018-11-03T00:00:00-00:00"Datetime when the package was delivered
weightobject: {"unit": "LB", "amount": 10.2}Weight of shipment
dimensionsobject: {}Dimensions of the shipment/package
serviceobject: {"code": "013", "description": "UPS Saver"}Service type of the shipment
reference_numbersobject: {"code": "PO", "value": "order123"}A list of reference number/values (Invoice, Purchase Order, etc) associated with the shipment
pickup_datestring: "2018-11-03T00:00:00-00:00"Datetime when the shipment was picked up
packagesarray: []A list of packages within the shipment
delivery_detailobject: {}Details about when and how the package was delivered
activityarray: []A list of activity a shipment has experienced

GetAllRates

FieldTypeDescription
errorsarray: []errorA list of errors
ratesarray: []rateA list of rates for various services offered
restrictionsarray: []restrictionA list of shipping restrictions for this origin/destination pair (USPS only)
rate.descstring: "UPS Next Day Air Early AM"Description of the service
rate.ratefloat: 15.42Total rate of the shipment including all surcharges
rate.commercial_ratefloat: 14.49(USPS only) Total rate of the online (discounted) shipment including all surcharges
rate.negotiated_ratefloat: 12.15Total rate of the your cost including all surcharges
rate.currencystring: "USD"ISO currency code of rate
rate.service_codestring: "FEDEX_GROUND"Service identifier
rate.est_delivery_timestring: "2018-12-15T09:30:00-00:00"Estimated time until delivery (usually in destination timezone)
rate.delivery_daysint: 1Number of business/shipping days (non-holiday/non-shipping days) estimated until delivery
rate.package_typestring: "YOUR_PACKAGING"Type of packaging
rate.rate_detailarray: []rate_detailSurcharges, taxes, fuel charges etc.
rate.taxesarray: []taxesDetailed tax charges with types
rate.billing_weightfloat: 5.4Carrier calculated dimensional/billing weight
rate.guaranteedbool: trueIndicates if service has guaranteed delivery
rate.saturday_deliverybool: trueIndicates if service has saturday delivery special service
rate.zonestring: "5"Zone where destination address is (USPS only)

SubmitShipment

FieldTypeDescription
errorsarray: []errorA list of errors
chargesfloat: 14.49estimated actual charges for the shipment
tracking_numberstring: "1Z0W4A787299041353"tracking number for the shipment
shipment_idstring: "1Z0W4A787299041353"shipment ID for the shipment, often the same as tracking_number for most carriers
billing_weightfloat: 5.0calculated dimensional/billing weight of the shipment
packagesarray: []packageA list of packages in the shipment
package.tracking_numberstring: "1Z0W4A787299041353"tracking number for the package
package.label_formatstring: "image/png"MIME type of the resulting label
package.labelstring: "iVBORw0KGgoAAAANSUh..."base64 encoded label data
documentsarray: []documentA list of documents (usually customs paperwork) associated with the shipment
document.codestring: "01"carrier code for document type
document.typestring: "application/pdf"MIME type of the resulting document
document.mediastring: "iVBORw0KGgoAAAANSUh..."base64 encoded document data

AddressValidate

FieldTypeDescription
errorsarray: []errorA list of errors
namestring: "John Doe"Recipient name
addr1string: "123 Main St."Address line 1
addr2string: "Apt 2"Address line 2
addr3string: "building 9"Address line 3
citystring: "San Francisco"City
statestring: "CA"ISO state code
zipcodestring: "94115"zip/postal code
zipcode_addonstring: "1646"zip code addon
matchbool: truetrue if address is high quality or considered valid
city_state_zip_matchbool: truetrue if address has valid city, state, and zip combination
residentialbool: truetrue if address is considered residential, not all carriers return this data
po_boxbool: truetrue if address is a PO box
countrystring: "US"ISO country code
suggestionsarray: []addressA list of suggested addresses
checksarray: []checkA list of checks ran for that address (FedEx only)
check.typestring: "StreetRangeValidated"Type of address validation check StreetRangeValidated, MissingOrAmbiguousDirectional, etc
check.resultbool: truethe result of the check

VoidShipment

FieldTypeDescription
errorsarray: []errorA list of errors
status_codestring: "1"carrier void code
statusstring: "Voided"description of the void code

TimeInTransit

FieldTypeDescription
errorsarray: []errorA list of errors
services[]service: []a list of services offered by the carrier
service.descstring: "UPS Next Day Air Early"description of the service
service.service_codestring: "1DM"the carrier's service code
service.is_guaranteedbool: truetrue when service has guaranteed delivery
service.etaint: 1545040800timestamp when delivery is expected
service.formatted_etastring: "Mon December 17 by 10:00 am"formatted date and time when delivery is expected
service.delivery_daysint: 1number of shipping/business days until expected delivery

PickupRate

FieldTypeDescription
errorsarray: []errorA list of errors
total_chargefloat64: 10.33total charge for the pickup

CreatePickup

FieldTypeDescription
errorsarray: []errorA list of errors
pickup_idstring: "CL123"pickup confirmation ID

PickupState

FieldTypeDescription
errorsarray: []errorA list of errors
pending_status[]pending_status: []A list of pickups associated with your account_number
pending_status.pickup_idstring: "2929AONCALL"pickup confirmation ID
pending_status.descriptionstring: "Received at dispatch"pickup description
pending_status.contactstring: "Shipping Mgr."Contact name for person creating pickup
pending_status.reference_numberstring: "OnCallNextDayAir"User defined reference tag/ID

GetSubscription

FieldTypeDescription
errorsarray: []errorA list of errors
events[]event: []A list of shipping events
event.record_typestring: ""Event type code
event.shipper_numberstring: "abc123"shipper account number
event.shipper_namestring: Acme Inc.the shipper's name
event.tracking_numberstring: "1Z0W4A780397852164"tracking number
event.to_namestring: "John Doe"recipient contact name
event.pickup_datestring: "2018-12-17T10:00:00-00:00"the date of the pickup
event.servicestring: "FEDEX_GROUND"service code
event.shipment_reference_value1string: ""user-defined reference value
event.shipment_reference_value2string: ""user-defined reference value
event.shipment_reference_value3string: ""user-defined reference value
event.pkg_reference_value1string: ""user-defined reference value
event.pkg_reference_value2string: ""user-defined reference value
event.pkg_reference_value3string: ""user-defined reference value

PurchasePostage

FieldTypeDescription
errorsarray: []errorA list of errors
postage_purchasedbool: truetrue if postage purchase request was successful
available_postagefloat64: 120.00an updated postage balance

CreateManifest

FieldTypeDescription
errorsarray: []errorA list of errors
documents[]document: examplea list of documents
document.codestring: ""document code
document.typestring: application/pdfMIME type of document
document.mediastring: "iVBORw0KGgoAAAANSUh..."base64 encoded contents of document

FindLocations

FieldTypeDescription
errorsarray: []errorA list of errors
locations[]location: []a list of locations
typestring: "drop_location"location type code
namestring: "THE UPS STORE"the name of the location
addr1string: "123 Main St."Address line 1
addr2string: "Apt 2"Address line 2
addr3string: "building 9"Address line 3
citystring: "San Francisco"City
statestring: "CA"ISO state code
zipcodestring: "94115"zip/postal code
zipcode_addonstring: "1646"zip code addon
countrystring: "US"ISO country code
phone_numberstring: "123-123-1234"phone number of location
fax_numberstring: "123-123-1235"fax number :)
emailstring: "joe@email.com"email
distancedistance: {}distance
distance.valuefloat64: 0.9distance value
distance.unitstring: MIdistance unit
idstring: 10518location ID
geocodegeocode: exampledesc
geocode.latfloat64: 33.40742874latitude
geocode.longfloat64: -111.909774longitude
available_services[]loc_service: []a list of available services the location supports
loc_service.codestring: "008"service code
loc.service.descstring: "Early Pickup Delivery Time"description of service
normal_hours[]hours: []normal shipping hours
descstring: ""description of the location

AccountInfo

FieldTypeDescription
errorsarray: []errorA list of errors
available_postagefloat64: 50.0amount of available funds for postage

UploadDocument

FieldTypeDescription
errorsarray: []errorA list of errors
document_idstring: ""document ID
status_codestring: ""document status code
statusstring: ""description of status

LinkDocument

FieldTypeDescription
errorsarray: []errorA list of errors
document_idstring: ""document ID
status_codestring: ""document status code
statusstring: ""description of status

Notify

FieldTypeDescription
errorsarray: []errorA list of errors
tracking_numberstring: 1Z0W4A780397852164tracking number of shipment
← API ExamplesParameters →
  • Request Properties
  • Carrier
  • Action
  • Response Properties
  • Action Response Properties
    • Track
    • GetAllRates
    • SubmitShipment
    • AddressValidate
    • VoidShipment
    • TimeInTransit
    • PickupRate
    • CreatePickup
    • PickupState
    • GetSubscription
    • PurchasePostage
    • CreateManifest
    • FindLocations
    • AccountInfo
    • UploadDocument
    • LinkDocument
    • Notify
RocketShipIt
Docs
Getting StartedAPI Reference
RocketShipIt
SupportMy Account
Copyright © 2025 RocketShipIt LLC