This bash script exercises the full partner-to-seller flow against the ShipStation API using a sandbox partner account.
- Creates a new sub-account (seller) under a Partner API key.
- Creates a primary warehouse with test addresses.
- Registers three carriers for the seller: Stamps.com (USPS), DHL Express and UPS.
- Generates domestic and international rates.
- Generates test shipping labels for the selected rates.
- Re-run the script to add additional sub-accounts.
jqmust be installed on your machine (e.g.brew install jq).- A valid ShipStation API Partner Sandbox API Key (e.g. TEST_XXXXXX)
Provide your sandbox API key as an environment variable when executing the script:
chmod +x partner-sandbox-demo.sh
export PARTNER_API_KEY="your_partner_sandbox_key"
./partner-sandbox-demo.sh- Original script provided by Auctane Co-Worker for testing the ShipStation API Partner Sandbox flow.
- Maintained by Peter McGee.