Use cases / Customers and senders
Importing orders and booking by API
Orders already exist somewhere before they reach you: in a web shop, a warehouse system, a wholesaler's spreadsheet. Typing them in again is slow, and every retyped house number is a failed delivery waiting to happen. The job is to move them across once, checked, without booking anything twice.
Use case
IMP
- Where it happens
- Sender portal and API
- Works from
- The Growth plan. See why
- To try it
- Start free. A new workspace has the Scale features for 14 days.
The job
What it really involves
There are two kinds of sender. The first has a spreadsheet: a gift company in Tallinn exporting the day's orders from its shop, a distributor in Kampala with tomorrow's drops in a sheet. They need to hand over a file and learn, before anything is booked, which rows are wrong. A file that half imports is worse than no import, because nobody knows which half.
The second has developers. Their checkout or warehouse system should create the delivery when an order is packed, ask for a price first, fetch the label, and hear back when the parcel is delivered or fails. What breaks these integrations is rarely the normal case. It is the timeout that makes a script send the same order twice, the event that arrives while the shop's server is restarting, the nightly job that hits a rate limit halfway through.
Both routes need the same discipline: check before booking, never book twice, say plainly what went wrong. Bulk import lives in the sender portal; the REST API and webhooks serve everything else.
Problems and answers
Where it goes wrong, and what the product does about it
- Problem 1 of 4
One bad row spoils the whole file
A missing weight or a mistyped address in one row should not stop the others, and it should not slip through to be found by a driver at the wrong door.
How it is handled
Bulk import reads a CSV, TSV or TXT file of up to 200 rows and checks every row before anything is booked. Each row comes back ready, with its price, or with the error named. Warnings flag duplicate references and addresses outside your coverage areas. Only rows that pass are booked, when the sender confirms.
- Problem 2 of 4
Their export never matches your template
Every shop system exports its own headings in its own order. A sender who must rearrange columns by hand each morning soon goes back to emailing you the orders.
How it is handled
Columns are matched by header name, so their order does not matter, and a template can be downloaded from the Bulk import screen. There is no manual column mapping and no paste-in, and an Excel workbook must be saved as CSV first. The guide to integrating a web shop covers preparing an export.
- Problem 3 of 4
A retried request books the parcel twice
Networks drop. A script that hears nothing back sends the order again, and now one box has two labels, two planned stops and two charges.
How it is handled
Writes to the API accept an idempotency key, such as the shop's own order number. Repeating a request with the same key returns the first booking and never makes a second. Lists use cursor paging, and each key has its own rate limit, reported in response headers so a client can slow down before it is refused. The developer pages list every endpoint.
- Problem 4 of 4
Their system never hears what happened
Booking is half an integration. The shop also needs to mark the order delivered, tell its own customer, and react when an attempt fails, without polling all day.
How it is handled
Webhooks send 17 events, from shipment created through out for delivery, delivered and failed to return requested and cash collected. Each is signed with HMAC-SHA256 so the receiver can check it is genuine. A failed send is tried five times over about an hour, and the Developers screen keeps a delivery log with redelivery and test sends. Recipients are covered by your own notifications.
Step by step
How it runs, from start to finish
Each step names the screen it happens on, so you can find it in your own workspace.
Prepare the file
Portal: Bulk import
The sender downloads the template, or keeps their own export if its headings are recognised. One parcel per line, headings on the first. An Excel workbook is saved as CSV before uploading.
Check, then book
Portal: Bulk import
They choose the file and every row is checked and priced before anything is booked. Errors are named on the row; warnings mark duplicate references and addresses outside coverage. Ready rows are then booked together.
Create an API key
Portal: Developers
For a system integration the sender creates a key in their portal. Keys made on the console Developers screen have read, write or admin scope and can be tied to one sender.
Quote, book and label
API
Their system asks /api/v1 for a quote, creates the shipment with an idempotency key and fetches the label data. An address is lines, city, region, a postal code where the country uses one, country, or coordinates.
Listen for events
API
They register a webhook endpoint, verify the HMAC-SHA256 signature on each event and update their own order when a parcel is delivered, fails or is returned. Test sends prove the endpoint first.
Three points of view
What each person sees
Operations console
Your office
- Imported and API bookings arrive in Shipments and Dispatch like any other, with the sender's order reference attached.
- By default a booking outside coverage is accepted and flagged "outside planned rounds" so dispatch can decide. You can choose to refuse such bookings instead.
- On the console Developers screen: the endpoint catalogue, an in-browser request console, code samples, keys, webhooks and logs.
Driver app
Your driver
- Nothing different. A parcel booked by file or API appears on the run with the same flags as one typed in by hand.
- The driver note sent with the booking shows on the stop, so a sender's delivery instructions reach the door.
Tracking page, portal and messages
Your customer
- In Bulk import, the sender sees which rows are ready, which have problems, and a price for each before committing.
- In Developers, their own keys and webhook endpoints. A key tied to their account reaches only their shipments.
Plans
The plan it works from
Works from
Growth
For teams with business customers and their own systems to connect.
$79a month, or $66 a month billed yearly
- Deliveries a month
- 3,000
- Drivers
- 15
- Staff logins
- 10
- Locations
- 3
Plan prices are in US dollars. The prices you charge your own customers are in your currency.
Why Growth
Bulk import sits in the sender portal, and the API and webhooks are capabilities of their own: sender portal, REST API and webhooks are all included in Growth, Scale and Enterprise. Booking by hand in the console works on Starter.
When to move up
Scale
Scale adds the audit log, which records every change made through the API with who and when, and your own automation rules. Monthly shipment limits also rise with each plan.
Every new workspace has the Scale features for 14 days, so you can try the parts that sit on higher plans before you choose. Every price and limit is on the pricing page, and how usage is counted is explained in plans and usage.
Honest limits
What it does not do
- No ready-made plugins for e-commerce platforms or marketplaces. A shop connects by exporting a file or by calling the API.
- No SDK packages. The API is plain REST with JSON, with code samples on the Developers screen.
- No sandbox mode with test keys. To try an integration safely, use a separate workspace or the sample network.
- An import file is capped at 200 rows. Larger batches are split across files or sent through the API.
- Files are not picked up on a schedule from a server folder. A person uploads each one, with headings the import recognises.
These are the edges of the product today, written down so that you find them here and not halfway through a busy week. If one of them decides it for you, tell us.
Questions
Questions about this job
What file formats does the import accept?
CSV, TSV or plain TXT, up to 200 rows a file, with column headings on the first line. Columns are matched by header name, so their order does not matter. An Excel workbook must be saved as CSV first.
What stops the same order being booked twice?
In a file, the check warns on any row whose reference has been used before, and the sender sees that before booking. Through the API, an idempotency key does the work: a repeated request with the same key returns the original booking.
How do API keys and permissions work?
Requests carry a bearer key with read, write or admin scope. A key can be tied to one sender account, in which case it reaches only that sender's shipments. Senders manage their own keys in the portal. Each key has its own rate limit, reported in response headers.
What if our server is down when a webhook is sent?
The event is sent again, five attempts in all over about an hour. Every attempt is written to the delivery log on the Developers screen, and you can redeliver an event by hand once your server is back. Build the receiver to ignore an event it has already handled.
Is there a test mode?
Not as a switch. There are no test keys, and a booking made through the API is a real booking. To build an integration safely, use a separate workspace or switch on the sample network, and cancel anything booked while trying it.
Run this job in your own workspace
Start free and switch on the sample network to follow the steps above with something to work on. A new workspace has the Scale features for 14 days, with no card.