Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Rate limits are per minute and lower in test mode: about 50 list calls (10 test), 4000 single-object reads (400 test) and 500 creates (50 test) per resource; tracking 500 GETs and 750 POSTs (50 test). Over it answers 429.
  • Objects are disposable: to change a shipment or address, create a new one. Shipments, rates and transactions older than 390 days are not returned.
  • The flow is create a shipment (returns rates), pick a rate object_id, then create a transaction with it to buy the label.
  • Lists page with page and results (max 100).

Endpoints

Get a package’s tracking status

  • Needs a live token for real packages. Free for labels bought on Shippo; other tracking numbers cost per number. In test mode use carrier shippo with SHIPPO_PRE_TRANSIT, SHIPPO_TRANSIT, SHIPPO_DELIVERED, SHIPPO_RETURNED, SHIPPO_FAILURE or SHIPPO_UNKNOWN.

List shipments

Get a shipment

List a shipment’s rates

List shipping labels

Get a shipping label

  • Each call returns a new label_url with a new expiry; call again when the old one has expired.

List carrier accounts