Orders API
The PrepVia Orders API for your own store
Your website's server sends each paid order to PrepVia. The team in Miami picks, packs and ships it from the inventory you keep at PrepVia, and the tracking comes back through the API and a webhook.
A PrepVia seller account can use the Orders API once it finishes the setup in the PrepVia app. You create and revoke your own keys in the app.
Building the connection? Read the Orders API documentation. No PrepVia account yet? Book a 15-minute call, and the team sets up receiving with you.
PrepVia Orders API
PrepVia LLC
Orders API for your own website
- Base URL
- api.prepvia.com/v1
- Format
- JSON over HTTPS
- Ships from
- Miami, FL
What does the PrepVia Orders API do?
It connects your website's server to your PrepVia account. Your server creates each order, the PrepVia warehouse in Miami ships it from your stock, and your server reads the status, the carrier and the tracking number.
Creates orders from your server
Your server sends each order once it is paid, with your order number, the items by SKU and the US shipping address. Sending the same order again is safe: PrepVia never creates a second one.
Ships from your stock in Miami
Each live order goes to the PrepVia warehouse team, who pick, pack and label it from the inventory you keep at PrepVia.
Sends the tracking back
Each package that leaves the warehouse shows up on the order with the carrier and the tracking number. A signed webhook tells your server when an order ships or is cancelled.
Reads your stock
For each SKU, the API returns the units PrepVia counted at the warehouse, the units held for orders and what a new order can take. A SKU linked to an Amazon listing can come back without these numbers, and the response says why.
Cancels an order
Cancel an order through the API before a package leaves. If the warehouse already started on it, the team stops it and confirms.
Tests before you go live
A test key creates test orders that never ship and never touch your stock. Simulate a shipment to try your webhook end to end.
How do you start with the Orders API?
Create a test key in the PrepVia app, send test orders from your server, and switch to a live key when everything works. Live orders go to the PrepVia warehouse in Miami.
Step 1
Create a test key
Sign in to the PrepVia app, open the Orders API page and create a test key. The app shows the key once, so store it on your server.
Step 2
Send test orders
Send a test order, read it back, add your webhook and simulate a shipment. Test orders never ship.
Step 3
Go live
Create a live key and switch your server to it. From then on, each order your site sends goes to the warehouse.
Already a PrepVia seller? Open the Orders API page in the PrepVia app. If you are signed out, the app asks you to sign in and then opens the page.
See how it works with your products
Pricing is quoted per account on a free 15-minute call.
The Orders API at a glance
- Base URL
- https://api.prepvia.com/v1
- Format
- JSON over HTTPS, called from your server only
- Keys
- Live and test keys, which you create and revoke in the PrepVia app
- Key access
- A key only sees its own PrepVia account
- Orders
- Create, read, list and cancel, with US shipping addresses for now
- Tracking
- The carrier and the tracking number of each package, on the order and in the order.shipped webhook
- Webhooks
- order.shipped and order.cancelled, signed with HMAC-SHA256
- Inventory
- On hand, reserved and available units by SKU
- Documentation
- www.app.prepvia.com/developers/orders-api, with examples in curl, Node.js and PHP
- Support
- contact@prepvia.com
How does PrepVia protect your keys and your buyers' data?
PrepVia stores each shipping address encrypted and uses it only for the label. No API response returns it: an order shows only the city, the state, the first 3 digits of the ZIP code and the country. The shipping label service and the carrier get the name and address on the label.
A key only sees its own PrepVia account. The API refuses calls from a browser. Keep the key on your server, and revoke it in the app.
See also the PrepVia Privacy Policy. For help with the API, see PrepVia support or email contact@prepvia.com.
Questions about the PrepVia Orders API
Who can use the PrepVia Orders API?
Do I need inventory at PrepVia?
What happens when a SKU is not in my PrepVia account?
Can I test the API before orders ship?
How does the tracking number reach my website?
Which shipping addresses does the API accept?
Where is the API documentation?
How do I get help with the Orders API?
Selling on your own website? Tell us your monthly orders and units, and we will quote your account.
Pricing is quoted per account on a free 15-minute call.