Skip to content
Ingrid Kovarová

Dec 3, 202616 min read

Decide who holds the token before the first call.

Shippo's API is a REST API, authenticated with a token from your Shippo account, that covers rates, labels, tracking, address validation and customs declarations, and whoever holds that token owns every label the integration buys, whether it is called from your own code or from a workflow tool such as Activepieces.

A workflow execution interface showing a completed two-step Square OAuth token revocation flow with HTTP configuration

Every step between a cart and a parcel in transit has an endpoint. The five areas below are the ones this guide returns to, because each can fail on its own and each needs its own handling.

Shippo API scope and features

  • Rates return the carrier services and prices available for a shipment, so you can choose before you spend money.
  • Labels purchase a chosen rate and return the printable label, which makes this the call that costs money and must never run twice by accident.
  • Tracking reports a parcel's status after it ships, so support staff stop answering "where is it?" by hand.
  • Address validation checks a destination before purchase, catching the typo that would otherwise become a returned parcel.
  • Customs declarations describe the contents of international shipments, and a wrong one can hold a parcel at the border.

Which plan includes API access

Read Shippo's pricing page yourself before committing a project. The token comes from your Shippo account, and the plan terms are set out on that page, but I haven't confirmed which plan tier gates which capabilities.

Whoever approves the plan should also be the person who gets the 2am alert when a quota or billing limit stops label purchases.

This guide was checked on 3 December 2026. Any limit or price it quotes comes from Shippo's developer documentation or its pricing page, and where neither states a figure, the guide gives none.

If you are running this arithmetic for your own team, see what the same workload costs on Activepieces.

Getting a Shippo API key and authenticating

Create a Shippo account, generate a token on the API page in your account settings, and send it in an Authorization header on every request.

Before you generate anything, decide who owns that token, because whoever owns it is the person paged when it stops working.

Register, then open the API section of your account settings, where Shippo issues your tokens. Create them under a shared team identity, such as a role mailbox, not a developer's personal login.

When that developer leaves, the integration shouldn't leave with them. Record where each token is stored and who can rotate it.

Test token versus live token

Check the prefix before you paste anything, because Shippo issues two kinds of token and the prefix tells them apart: test tokens begin shippo_test_ and live tokens begin shippo_live_.

A test token exercises the API without buying real postage, so a mistake costs you nothing. A live token spends money and produces labels a carrier will accept.

Keep them in separate environment variables, and make the environment decide which one loads, never a line someone edits by hand before deploying.

Do not send Bearer. Shippo expects the token with its own scheme name:

Authorization: ShippoToken <your_token>

Send it over HTTPS only, load it from a secret store or environment variable, and keep it out of source control, client-side code and logs. If a token appears in any of those, treat it as exposed and regenerate it.

A single API token written as a short string on a small card, kept inside a locked secret store box on a shelf, while a…

Shippo API OAuth for third-party apps

If your application ships labels on behalf of other Shippo accounts, a single account token is the wrong tool. Shippo documents an OAuth flow for that case, in which each user authorizes your app and you hold a token scoped to that user.

Check Shippo's developer documentation for the current setup, since partner access may involve arrangements with Shippo. Each user's token's a credential you're now responsible for storing and revoking.

Shippo API endpoints and what each one does

Whoever holds a user's token can reach every resource below, and only one of them, the transaction that buys a label, spends money.

The table shows each resource's purpose, the inputs it needs and whether it charges, so you can see which calls are safe to retry freely and which need an idempotency guard.

Resource Purpose Key inputs Charge Docs
Addresses Store and validate a sender or recipient Name, street, city, postal code, country None Reference
Parcels Describe package size and weight Dimensions, weight, units None Reference
Shipments Group addresses and parcels, request rates From, to, parcels None Reference
Rates Carrier prices for a shipment Shipment ID None Reference
Transactions Buy a label Chosen rate ID Yes, the label Reference
Tracking Status of a shipped parcel Carrier, tracking number None stated for Shippo labels Reference
Customs declarations Describe international contents Items, value, origin None Reference
Batches Buy many labels in one request List of shipments Yes, per label bought Reference
Manifests Close out a day's shipments Carrier, ship date None Reference
Carrier accounts Connect your own carrier contracts Carrier credentials None from Shippo Reference
Webhooks Push events to your server Event type, URL None Reference

Build addresses, parcels and shipments eagerly, since they are free to create, and validate addresses before anything downstream depends on them. A shipment is the object that ties them together and triggers rate lookup.

Do not confuse the quote with the purchase: rates are quotes, a transaction is the purchase. Store the rate ID you chose and your own order reference, so a retried request can't buy a second label unnoticed.

Do not confuse the quote with the purchase: rates are quotes, a transaction is the purchase.

Register a webhook rather than polling. Someone must own the endpoint that receives it, because a dead receiver fails silently.

Because batches are bulk purchases, they carry the same charge risk as single transactions. Customs declarations must be complete before an international label, and manifests close out the day for carriers that require it.

Shippo API pricing and rate limits by plan

Whoever gets paged on a Tuesday night needs two numbers before launch: Shippo's per-label fee, which is small, and its request limits, which are published for only one endpoint. This table reflects plans as of 2026-12-03.

At $0.07 per label after 30 free, API work starts cheap, and a flat monthly plan only pays off once volume is steady, so the choice between them is crucial if you don't want to overpay.

Plan Monthly cost Per-label fee API access Suits
Starter $0 Per label Dashboard use Occasional manual shipping
API Starter $0 30 free, then $0.07 Yes Integrations in build or low volume
Own carrier account $0 $0.05 Yes Teams with negotiated carrier contracts
Pro 1-200 $17 annual, $19 monthly Included in tier Yes Steady low volume
Pro 201-500 $29 Included in tier Yes Steady mid volume

Pick the tier by monthly label count, then name the person who watches it.

Look at postage next, because it is the larger cost. Shippo advertises top discounts off retail of up to 90% for FedEx, 89% for USPS, 85% for UPS and 83% for DHL Express. These are ceilings, so budget from the rates your own account returns.

Shippo's advertised top discounts by carrier

Shippo API rate limits and 429 errors

For Address endpoints, Shippo's rate-limit page gives limits per minute, live versus test token:

Request Live Test
POST 500 50
GET single 4,000 400
GET multiple 50 10

Run a load test on a test token and it can fail at volumes production handles, since the test token allows a tenth of live POST and GET-single traffic.

Three doors of very different sizes in a wall: a tall wide door with a crowd of tiny parcels streaming through, a medium…

Shippo Address endpoint limits on live and test tokens

Shippo's documentation says exceeding a limit returns a 429. Shippo publishes no per-tier numbers, so none are assumed here.

Retry a 429 with exponential backoff and jitter, and cap the attempts so a stuck job alerts someone. Live GET-multiple allows only 50 per minute, so fetch lists rarely and store the results.

Worth checking against a plan that does not meter every step: one credit covers a whole run on Activepieces.

A minimal Shippo request from rates to label

Unlike the list fetches above, each of the three calls from address to label produces an ID you must store, and they run in a fixed order. The sequence below uses the test token only.

  1. POST /shipments with the sender, recipient and parcel.
  2. Read rates[] in the response and keep the object_id of the rate you choose.
  3. POST /transactions with that rate, then read label_url and tracking_number.

Send the sender address, the recipient address and at least one parcel with its dimensions and weight.

curl https://api.goshippo.com/shipments/ \
 -H "Authorization: ShippoToken $SHIPPO_TEST_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"address_from": {...}, "address_to": {...}, "parcels": [{...}], "async": false}'

Look in the response for a rates array. Each rate has an object_id, a carrier and a service. Persist the shipment's own object_id next to your order, because whoever is paged when a label goes missing needs that link first.

Pass the chosen rate's object_id to the transactions endpoint.

curl https://api.goshippo.com/transactions/ \
 -H "Authorization: ShippoToken $SHIPPO_TEST_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"rate": "<rate object_id>", "label_file_type": "PDF", "async": false}'

Check status before trusting label_url and tracking_number, which a successful response includes alongside it. Store all three against the order.

Do not ship with a test-token label, because it isn't valid for shipping; treat the output as proof that your code works, not as a parcel.

Before switching tokens, confirm that your code reads status rather than assuming success, and that a named person owns the failure path. Then repeat the same three calls with the live token.

Common Shippo API errors and solutions

When the live-token run fails, it usually fails in one of seven ways, and each has a known cause and fix. Whoever is paged at 2am on a Tuesday should be able to find the symptom here.

Read the table by symptom: it gives the cause and fix for each, and marks whether the fix comes from Shippo's docs or from practitioner experience. Test the practitioner rows before you rely on them.

Symptom Cause Fix Source
401 token Wrong token, test/live mix-up, or malformed header Send Authorization: ShippoToken <token> and check the token prefix Docs
400 address/parcel validation Missing or invalid fields, or street lines over a carrier limit Validate addresses before creating shipments; shorten long lines Docs
Empty rates No enabled carrier account, or details no carrier accepts Check the shipment's messages and your carrier accounts Practitioner
Transaction ERROR Carrier rejected the label purchase Read the transaction's messages and correct the input Docs
Expired rate Rate bought long after it was quoted Create a fresh shipment and buy a new rate Practitioner
429 Requests sent too fast Back off and retry with jitter Practitioner
Webhook failure Endpoint slow or returning non-2xx Acknowledge fast, process asynchronously Practitioner

Street address line limits by carrier versus Shippo

Name an owner for every row, because a failure with no owner is retried by nobody.

When you see a 401, the token is almost always wrong for the environment. Keep test and live tokens in separate secrets so a deploy can't mix them.

A 33-character street line passes Shippo's cap of 35 and still fails on UPS. Carriers cap street lines differently, according to Service Objects.

Per Docs, UPS allows 30 characters. FedEx allows 35, which matches Shippo. USPS allows 46, but Shippo's cap means you never reach it. Truncate or split lines at 30.

You will get no error response for an empty rates list, so alert on it explicitly. Read the messages on the shipment before retrying anything.

On a 429, queue and retry with growing delays. For webhooks, return 200 immediately and do the work afterward, so slow handlers never trigger redelivery.

Shippo API without code using Activepieces

Activepieces has 751 integrations, counted from its open source monorepo, and a managed cloud, so you can build shipments, label purchases and tracking updates as flows without running a server of your own, but the retry, rate and token discipline from the earlier sections still applies, because those limits belong to Shippo and not to the tool calling it.

A workflow automation interface showing the execution and configuration of an HTTP request that revokes an API token using…

Start with ownership, since that's what decides who gets paged. Activepieces allows unlimited flows on every plan, including free, so each Shippo flow can have its own named owner instead of sharing one.

When a label purchase fails at 2am on a Tuesday, the person who sees it is whoever was named as owner of that flow, so name one before you build it.

A lone desk lamp glowing in a dark office at night, a phone buzzing on the desk beside a blank name tent card, and a…

Nobody has to hand-build the rates-to-label sequence, either: describe it to the built-in chat in Activepieces and what it publishes is a live flow in your account, the same artefact a builder would assemble by hand, running under the same RBAC and audit logs.

Every run of that flow leaves a run trace showing exactly what happened, which the owner can open and read at 2am with no developer needed to interpret it.

Hundreds of integrations sit in the library, filterable by category, including Commerce, Developer Tools and Payment Processing, which shows how broad the tool is, so you probably don't need to build your own.

Activepieces connectors library page showing 502 available integration pieces with filtering options and sample connector…

The screenshot below shows that library, and the useful takeaway is that Webhook and HTTP sit beside the branded integrations as ordinary building blocks. Those two are what you'll lean on for anything Shippo-specific.

Which Shippo actions are available

Roughly 60% of those 751 integrations are community-contributed, so check the Shippo integration inside Activepieces itself rather than trusting a list in an article, because coverage changes.

Look for the actions you need: creating a shipment, purchasing a label, and a trigger for tracking updates. If all three are present, a basic flow works without code.

If one is missing, you aren't blocked, because the next step covers it.

Using the HTTP step for the rest

For anything the integration lacks, the HTTP step sends a request to any Shippo endpoint with the same token you would use in code.

Put the test token in the flow first and swap in the live one only when the flow has run cleanly, so a half-built flow can't buy real labels.

Turn on the step's retry behaviour only for requests that are safe to repeat, and never for label purchase unless you check for an existing transaction first.

For tracking, use the Webhook integration as the receiving URL and keep the handler short, matching the earlier advice to acknowledge first and work afterward.

At high volume, this stops fitting. Shippo's rate limits don't change because a flow made the call, and a batch job with careful backoff is easier to reason about in code.

On Monday, do these in order:

  1. Name one owner for each Shippo flow, with a way to reach them.
  2. Build the first flow against the test token only.
  3. Confirm which of the three actions the Shippo integration covers, and use the HTTP step for the rest.
  4. Add a failure notification that reaches the owner, not a shared inbox.
  5. Swap in the live token last, after a clean test run.

Frequently asked questions

Once the integration is live, these are the questions that decide who owns the bill, the test data and the carrier relationship.

Cost and the test environment

Is the Shippo API free to use? Calling the API costs nothing by itself, but live labels are billed under your Shippo plan. Test-token calls don't buy real labels, so a contractor can build against them without spending money.

Confirm current pricing and plan terms on Shippo's pricing page before you commit, because those change independently of the API.

Does Shippo have a sandbox environment? Shippo separates test from live with the token, not with a different host. A test token returns test rates and labels that no carrier will honor, and a live token buys real postage.

Keep the two tokens in separate secrets, because a live token pasted into a test script is the mistake that creates a real charge.

Your own carrier accounts

Can I use my own UPS or FedEx account with the Shippo API? Yes. Shippo lets you connect your own carrier accounts, so rates and labels can come from your negotiated contracts instead of Shippo's.

Whoever holds that carrier account owns the contract and the credentials, so decide that person before launch. Otherwise a lapsed credential fails shipments with no one assigned to fix it.

Tracking webhooks

Does the Shippo API support tracking webhooks? Yes. You register a webhook for tracking updates and Shippo posts status changes to your endpoint, which means you don't have to poll tracking numbers and spend your rate budget on it.

Your endpoint must tolerate repeated deliveries and return quickly, so process the event after you acknowledge it.

The official reference

Where's the official Shippo API reference? The reference lives in Shippo's developer documentation on the Shippo website.

Treat it as the source of truth over any summary here, this one included, and check the relevant page again before you rely on a limit, a field rule or a plan detail.

Share

Running the numbers

See what the same workload costs here.

Free forever plan, and every paid plan self-hosts at no extra cost.

See pricing Talk to sales