Quick security check

Verifying…

Protected by Cloudflare. This keeps bots from creating fake accounts.

We Ship YouAnythingAnywhere
  • Shop
  • Mobile APP
  • Docs
  • Pricing
  • About Us

Theme

  • Shop
    • WeShipYou

      Shop curated products from WeShipYou sellers, fulfilled end-to-end with our shipping guarantee.

    • Amazon

      Shop on Amazon, the world's largest store with the widest range of products, all with the security of WeShipYou!

    • eBay

      New and used items from US sellers: we buy Buy It Now listings for you.

    • AliExpress

      Millions of products at factory prices, bought and shipped by us.

    • Walmart

      Shop pharmacy and grocery products at Walmart quickly and easily!

    • Shein

      Shop the latest trending products at the best discounted prices, only at the Shein store!

    • Temu

      Shop the best products at discounted prices at the Temu store!

    • Shopify

      Search thousands of US Shopify stores at once, or paste a link from any of them.

  • Download Mobile APP
    • FulfillmentNew

      Receiving, storage, same-day pick & pack, multi-carrier shipping and returns — handled by us.

    • Price comparator

      Compare and select the shipping service based on your interest fast and easy

    • Shop integrations

      Shopify app, public API and more — plug WeShipYou into your store.

    • API

      API Access for developers

    • Invoicing

      Automatic monthly invoices, branded PDFs and one-click payments.

    • AI assistants

      Use ChatGPT, Claude, Gemini or Meta Muse with your WeShipYou account.

  • Docs
  • Pricing
  • About us
  • Recharges to Mexico
  • Recharges to Colombia

Join our newsletter!

No spam, guaranteed.

Miami, FL — United States Warehouse

1940 NW 70th Ave, Miami, FL 33126

Get Directions
Follow us
GroupChannel
RechargesRecharge to MexicoRecharge to ColombiaRecharge to JamaicaRecharge to Nicaragua
ShippingSend a packageFulfillment serviceShop integrationsInvoicingAI assistantsShip to ColombiaShip to BrazilShip to MexicoLocker for Colombia
ResourcesDownload APPApiCommercial Assistance
CompanyAbout
Careers
Hiring
Become an AffiliateSupportContact us
Shop
WeShipYou
Amazon
eBay
AliExpress
Walmart
Shein
Temu
Shopify

WeShipYou is proud to be PCI-compliant certified, ensuring the highest standards of payment security and data protection

© We Ship You Corp. Terms of service · Privacy Policy · Legal

The WeShipYou logo and the name "WeShipYou" are registered trademarks of We Ship You Corp

Theme
WeShipYou
  • Overview
Guides
  • Quickstart
  • Authentication
  • Test mode and live mode
  • Shipments and labels
  • Tracking
  • Sub-accounts
  • Errors
  • AI assistants (MCP)
Authentication process
  • Authentication
General
  • Shipments
  • Tracking
  • Services
Forwarder
  • Forwarder
Mobile Recharges
  • Mobile Recharges
Account
  • Accounts
  • Account Addresses
  • Transactions
  • Add Funds
  • Add Sub Account
Download the OpenAPI spec
Menu
  • Overview
Guides
  • Quickstart
  • Authentication
  • Test mode and live mode
  • Shipments and labels
  • Tracking
  • Sub-accounts
  • Errors
  • AI assistants (MCP)
Authentication process
  • Authentication
General
  • Shipments
  • Tracking
  • Services
Forwarder
  • Forwarder
Mobile Recharges
  • Mobile Recharges
Account
  • Accounts
  • Account Addresses
  • Transactions
  • Add Funds
  • Add Sub Account
Download the OpenAPI spec
Guides

Quickstart

Get a token, create a shipment, buy its label and track it, all against the sandbox.

This guide walks through the five calls of a first integration. Every example uses the sandbox server, https://sandbox.weshipyou.com/api/v1, so nothing you do here is charged to your live wallet. See Test mode and live mode before you switch to live.

Before you start#

  • Your WeShipYou user. You get a sandbox token with your live login: the sandbox keeps a test copy of your user and accounts, with no balance.
  • A terminal with curl, or Node.js 18 or later (it has fetch built in).

1. Get an access token#

Log in on live with "mode": "test". Live checks your username and password and answers a sandbox token. If two-factor authentication is on for your user, also send the current 6-digit code as twoFactorToken.

POST/authentication
Get an access token
1
2
3
curl -X POST https://weshipyou.com/api/v1/authentication \
  -H "Content-Type: application/json" \
  -d '{"username": "janedoe", "password": "your-password", "mode": "test"}'

Keep the accessToken in an environment variable. The examples below read it from WSY_ACCESS_TOKEN:

cURL
export WSY_ACCESS_TOKEN="eyJhbGciOi..."

2. Find your account#

Shipments belong to an account. List the accounts you are a member of and note the accountNumber (it starts with CU) of the one you ship from. Your sub-accounts are in the list too, each naming its parent in parentUid (see Sub-accounts).

GET/accounts
List your accounts
cURL
1
2
curl https://sandbox.weshipyou.com/api/v1/accounts \
  -H "Authorization: Bearer $WSY_ACCESS_TOKEN"

3. Create a shipment#

Send the sender, the recipient and the parcels. The answer is the shipment, with its uid and the services it can be sent with in parcel_rates.

POST/shipments
Add a new shipment to your account
cURL
1
2
3
4
curl -X POST https://sandbox.weshipyou.com/api/v1/shipments \
  -H "Authorization: Bearer $WSY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d @shipment.json

The Create a shipment reference has a complete shipment.json to start from.

4. Buy the label#

Pick one of the parcel_rates and buy it. The price is taken from your wallet balance first; only what the balance does not cover is charged to paymentMethod.

POST/shipments/labels
Buy labels
cURL
1
2
3
4
5
6
7
8
9
10
curl -X POST https://sandbox.weshipyou.com/api/v1/shipments/labels \
  -H "Authorization: Bearer $WSY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "CU1234567",
    "handoverOptions": [{
      "handoverOption": "dropoff",
      "shipments": [{ "shipmentId": "<shipment uid>", "rateId": "<parcel_rates[].uid>" }]
    }]
  }'

5. Track it#

Read the shipment to get its tracking number (label.trackingNumber), then ask for its status and checkpoints.

GET/tracking/{trackingNumber}
Track a package
cURL
1
2
curl https://sandbox.weshipyou.com/api/v1/tracking/WSY0000000000US \
  -H "Authorization: Bearer $WSY_ACCESS_TOKEN"

Next steps#

  • Authentication: token lifetime, two-factor codes and keeping tokens safe.
  • Labels: rates, payment, handover options and cancelling.
  • Sub-accounts: create them, list them and ship for one of them.
  • Errors: what each status means and when to retry.
NextAuthentication