Quick security check

Verifying…

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

We Ship YouAnythingAnywhere
  • Shop
  • Mobile APP
  • Docs
  • Pricing
  • About Us
  • 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.

  • 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 integrationsInvoicingShip 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
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
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

Sub-accounts

Create sub-accounts, list them under their parent, and ship for one of them.

A sub-account is an account under one of yours: one per store, branch or client, for example. It has its own account number, its own forwarding address and its own shipments. You are not a member of a sub-account; you reach it through the parent account you belong to, with the same access token.

Create a sub-account#

POST/add-sub-account
Add a sub-account

Send the parent's uid in accountUid and the details of the new account. When you belong to a single account, accountUid can be left out: the sub-account is created under that account.

cURL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
curl -X POST https://sandbox.weshipyou.com/api/v1/add-sub-account \
  -H "Authorization: Bearer $WSY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "accountUid": "h4jupn7wtfqp",
    "name": "Acme Imports Orlando",
    "displayName": "Acme Imports Orlando",
    "email": "orlando@example.com",
    "notificationEmail": "orlando@example.com",
    "phone": "+13055550100",
    "emergencyPhone": "+13055550101",
    "website": "https://example.com",
    "systemUnits": "imperial",
    "isBusiness": true,
    "language": "en"
  }'

The answer is the new account: its uid, its accountNumber, its parent in parentUid, and in locker the forwarding address that packages for it are sent to. Keep the uid: it is how you name the sub-account in every other call.

List your sub-accounts#

GET/accounts
List your accounts

GET /accounts returns the accounts you belong to and all their sub-accounts in one list. Tell them apart with parentUid: it is null on an account you belong to, and the parent's uid on a sub-account.

JSON
1
2
3
4
5
6
7
8
9
{
  "total": 2,
  "limit": 20,
  "skip": 0,
  "data": [
    { "uid": "h4jupn7wtfqp", "accountNumber": "000ACC1X16", "name": "Acme Imports", "parentUid": null },
    { "uid": "85js5f5clt2u", "accountNumber": "CUDHMFEDA9", "name": "Acme Imports Orlando", "parentUid": "h4jupn7wtfqp" }
  ]
}

To get only the sub-accounts of one account, pass its uid, account number or external account number in parentUid. The list is paged: up to 20 accounts by default, 500 with $limit, and $skip for the next page.

cURL
1
2
curl "https://sandbox.weshipyou.com/api/v1/accounts?parentUid=h4jupn7wtfqp" \
  -H "Authorization: Bearer $WSY_ACCESS_TOKEN"

Read a single sub-account by its uid with Get an account.

Ship for a sub-account#

Your token works for every sub-account of your accounts: name the sub-account in accountId. To create a shipment that belongs to the sub-account, send its uid as accountId:

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

with "accountId": "85js5f5clt2u" in shipment.json. Then buy its label as described in Labels.

List a sub-account's shipments#

GET/shipments
Find shipments

Without accountId, GET /shipments lists the shipments of your accounts and of all their sub-accounts together. Pass the sub-account's uid or account number in accountId to get only its shipments.

cURL
1
2
curl "https://sandbox.weshipyou.com/api/v1/shipments?accountId=85js5f5clt2u" \
  -H "Authorization: Bearer $WSY_ACCESS_TOKEN"

Who sees what#

Only the members of the parent account see its sub-accounts. A parentUid that names an account you cannot access returns an empty list, and an accountId or account uid you cannot access is refused.

PreviousTrackingNextErrors