
Updated November 2026. Facts verified against vendor and carrier documentation; see references at the end.
To buy 200 shipping labels with one prompt, connect an agent to the Ship.com MCP server and let it run 4 steps: load the orders, preview the batch with trigger_batch_purchase, confirm it with a max_total cap after you approve the total, and follow it with get_batch_status. Batches buy USPS Ground Advantage labels, usually within about a minute of the confirm. Your only job is to approve the number.
trigger_batch_purchase is one of the 2 tools that spend money, and both work on either connection type: a connection key (Bearer) or OAuth sign-in, which both get all 40 tools. Get a connection key in app.ship.com under Settings > API Integration.--header, Cursor, VS Code, Windsurf or your own server code. See our MCP setup guide and Use Ship.com in Claude.If they come from Shopify or Etsy, ask the agent to check list_connected_platforms, import with sync_platform_orders and follow the job with get_sync_status. Re-running a sync is safe.
If they come from your own system, use bulk_create_orders. It takes 1 to 100 orders per call, so 200 orders means 2 calls. Give each order your own external_order_id, so a retry returns the existing order instead of a duplicate. Each order takes a ship_to address, items and a weight_oz:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "bulk_create_orders",
"arguments": {
"orders": [
{"ship_to": {"name": "Maria Delgado", "street1": "1420 Maple Ave", "street2": "Apt 3B", "city": "Springfield", "state": "IL", "zip": "62704"}, "items": [{"name": "Lavender Soy Candle", "quantity": 2, "price": 18.50, "sku": "CND-LAV-08"}], "weight_oz": 22, "external_order_id": "SHOP-10482"}
]
}
}
}
Each reply lists every order's result (ok, order_id, skipped_existing or error) plus a summary, and good orders are saved even when others fail. One wrong type, like "two" for a quantity, stops the whole call after earlier entries were already saved, so validate types before you send. Each call counts as one request against the 60-per-minute limit.
Yes. Batch rating doesn't run address validation. Have the agent run validate_address (US only) on anything that looks off, and fix bad ones with update_order_address, which validates as it saves.
Call trigger_batch_purchase without confirm. It rates every order and returns per-order prices and a postage total, and buys nothing. Pass your 200 order_ids. If you leave them out, the batch covers every Ready to ship order on the account, which may be more than you meant.
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "trigger_batch_purchase",
"arguments": {
"order_ids": [48210551, 48210554, 48210560],
"weight_oz": 8
}
}
}
Yours lists all 200 IDs. weight_oz is a fallback for orders with no saved weight. Every call, preview included, requests a live USPS rate for each order, so expect it to take a while. The preview doesn't check your plan's monthly shipment limit, so know your remaining allowance before you confirm.
Once a person approves the postage total, confirm with the same order_ids and a max_total cap. Our suggestion is to keep the cap close to the total the person approved:
{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "trigger_batch_purchase",
"arguments": {
"order_ids": [48210551, 48210554, 48210560],
"max_total": 25.00,
"weight_oz": 8,
"confirm": true
}
}
}
max_total is a spending ceiling in dollars for the batch's postage, insurance premiums not counted, and there is no ceiling by default. Always set it. The confirm rates the orders again, so the cap is what protects you if prices move between preview and confirm. Insurance follows your account's insure-all setting unless you pass insurance.
The server doesn't require a preview before a confirm, so make your agent stop and show the total before it confirms. Our safe-buying guide covers approvals and logging in more detail.
Poll get_batch_status. With no batch_id, it returns the batch in progress, or else the most recent one.
| Field | What it tells you |
|---|---|
complete | false while running, true when done |
requested, completed | Orders in the batch and orders processed so far |
purchase_success, purchase_failed | Labels bought and labels that failed |
failed_orders | Each failed order_id with a reason, like "Limit reached - 100" or "Not attempted - ..." |
shipping_balance | Your postage balance after the batch |
unprinted_count, next_step | Bought labels not yet marked printed, and what to do next |
If completed stays at 0 for several minutes, check the orders with list_orders. An unknown batch ID returns no_status: true, not an error.
complete: true before you start the next one.cancel_shipping_label voids a wrong label within 29 days of the ship date. The refund reaches your postage balance about 14 days after the carrier accepts the void, unless the package was already scanned.More in error handling for shipping agents.
Bought labels stay at Label purchased. Once they are printed, call mark_labels_printed with the batch_id. It handles up to 100 per call, so 200 labels means calling it twice. Then schedule_pickup can book a free carrier pickup if your plan includes carrier pickup.
Import my new Shopify orders. Validate any address that looks wrong and fix it. Then preview a batch for those orders only, show me the order count, the postage total and any orders that couldn't be rated, and wait for my OK. When I approve, confirm with max_total set to the total I approved, watch the batch until it's complete, and list every failed order with its reason.
Our docs state no batch size limit for trigger_batch_purchase. Your real limits are your plan's monthly shipment allowance, your postage balance and time, because every call rates each order live with USPS. Getting orders in has a limit: bulk_create_orders takes up to 100 orders per call, so 200 orders takes 2 calls.
No. trigger_batch_purchase buys USPS Ground Advantage labels only, with no service choice. For orders that need UPS, Priority Mail or another service, have the agent rate each order with get_rates and buy it individually with buy_label, using the same preview, confirm and max_cost steps. Leave those orders out of the batch's order_ids.
No. In a batch, an order that already has a label isn't bought twice, and voided or canceled orders drop out. When you create orders, pass your own external_order_id so a retried bulk_create_orders call returns the existing orders instead of making duplicates. Avoid parallel calls with the same ID, since simultaneous requests can still create a duplicate.
Preview first by calling trigger_batch_purchase without confirm, and have a person approve the postage total. Then confirm with the same order_ids and a max_total close to that total. There is no ceiling by default, so always set one. The cap covers postage only, not insurance premiums.
Connect your agent and buy USPS and UPS labels at up to 89% off USPS and up to 87% off UPS, from a single label to a 200-order USPS Ground Advantage batch. For the bigger picture, read our developer guide to MCP and the API.