Skip to main content

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.

  1. 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.

  2. Step 2

    Send test orders

    Send a test order, read it back, add your webhook and simulate a shipment. Test orders never ship.

  3. 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

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?

A PrepVia seller account, once it finishes the setup in the PrepVia app: the onboarding and the PrepVia plan or its free trial. Accounts that an agency adds and opens in the app cannot create keys. You create the key yourself on the Orders API page of the app, at www.app.prepvia.com/dashboard/channels/api. No PrepVia account yet? Book a 15-minute call with the team in Miami.

Do I need inventory at PrepVia?

Yes. PrepVia ships each order from the inventory you keep at its warehouse in Miami, and every SKU in an order must be a PrepVia item in your account.

What happens when a SKU is not in my PrepVia account?

With a live key, the order gets the error sku_not_found and nothing is created. Add the item, or ask PrepVia to match it, and send the same order again.

Can I test the API before orders ship?

Yes. A test key creates test orders that never ship and never touch your stock. Simulate a shipment, and order.shipped goes to your test webhook.

How does the tracking number reach my website?

Read the order through the API, or add a webhook. A few minutes after the last package of the order leaves the warehouse, PrepVia sends order.shipped with the carrier and the tracking number of each package.

Which shipping addresses does the API accept?

US shipping addresses only, for now.

Where is the API documentation?

In the PrepVia app, at www.app.prepvia.com/developers/orders-api, with examples in curl, Node.js and PHP. It opens without a login.

How do I get help with the Orders API?

Email contact@prepvia.com with the request_id from the response, or book a 15-minute call with the team in Miami.

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.