object_id in the order field when you purchase the label. Shippo sends the email to the email on the shipment’s address_to.
Prerequisites
Turn on tracking email notifications in the Shippo web app:- Log in to the Shippo web app.
- Go to Settings > Tracking.
- Turn on the notification types you want to send, such as Shipped and Delivered.
NoteIf notifications are turned off in your settings, Shippo does not send any emails, even when your API requests are correct.
How it works
Tracking emails are sent when an order is fulfilled. Purchasing a label through the API does not fulfill an order by itself.- You create an order.
- You purchase a label (transaction) with the recipient’s email address in the shipment’s
address_to, and set theorderfield to the order’sobject_id. - Shippo marks the order as shipped and emails the address in the shipment’s
address_to.
Step 1: Create an order
Send aPOST request to the /orders/ endpoint.
cURL
object_id from the response. You need it in step 3.
Step 2: Create a shipment to get rates
Create a shipment to retrieve available rates. Foraddress_to, you can pass the full address or the object_id of the order’s to_address. Include the recipient’s email in address_to. This is the address that receives the notification.
cURL
Step 3: Purchase a label linked to the order
When you create the transaction, set theorder field to the object_id of the order from step 1. This links the label to the order and triggers the tracking email.
Option A: Purchase a rate from step 2
cURL
cURL
- Marks the linked order as
SHIPPED. - Emails the address in the shipment’s
address_to.
Summary
Troubleshooting
If recipients are not receiving tracking emails, check the following:- The transaction has no
orderfield. Without a linked order, there is nothing to fulfill and no email is sent. Labels created through/transactions/or/shipments/alone do not send tracking emails. - The shipment’s
address_tohas noemail. Shippo sends the email to this address. If it is missing, no email is sent. - Notifications are turned off. Check Settings > Tracking in the Shippo web app.