Blog/Category
Why Ship.com?

Batch Label Purchase with an AI Agent: 200 Orders, One Prompt

November 28, 2026
Founder and CEO
Batch Label Purchase with an AI Agent: 200 Orders, One Prompt

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.

What do you need before you start?

  • A Ship.com MCP connection. 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.
  • For a connection key, a client that sends a header, like Claude Code with --header, Cursor, VS Code, Windsurf or your own server code. See our MCP setup guide and Use Ship.com in Claude.
  • A plan with batch shipping: Growth or Executive. Each label also counts toward your monthly shipment limit. Growth covers up to 100 shipments a month, so a 200-label run needs a plan with room for it, like Executive (unlimited). See pricing.
  • Enough postage balance, or auto-recharge on, in which case any shortfall is charged to your card on file once, up front.

Step 1: How do 200 orders get into Ship.com?

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.

Step 2: Should you check addresses first?

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.

Step 3: How do you preview the batch?

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.

Step 4: How do you confirm with a spending cap?

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.

Step 5: How do you know when it's done?

Poll get_batch_status. With no batch_id, it returns the batch in progress, or else the most recent one.

FieldWhat it tells you
completefalse while running, true when done
requested, completedOrders in the batch and orders processed so far
purchase_success, purchase_failedLabels bought and labels that failed
failed_ordersEach failed order_id with a reason, like "Limit reached - 100" or "Not attempted - ..."
shipping_balanceYour postage balance after the batch
unprinted_count, next_stepBought 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.

What happens when something goes wrong?

  • A payment failure stops the worker and marks the remaining orders Not attempted, so you don't get repeated charges. Fix billing and run a new batch for those orders. Hitting your monthly shipment limit fails the rest with a reason like "Limit reached - 100".
  • An order that already has a label isn't bought twice, and voided, canceled and return orders drop out.
  • Only one batch runs at a time per account. Wait for 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.

What comes after the labels?

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.

What is the one prompt for a batch label purchase?

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.

Frequently asked questions

How many labels can an AI agent buy in one Ship.com batch?

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.

Can I choose UPS or Priority Mail for a batch?

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.

Will a retry buy the same labels twice?

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.

How do I stop a batch from spending too much?

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 Ship.com to your agent

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.

Read the Ship MCP setup guide

Create a Ship.com account

References

  • Ship.com MCP documentation: trigger_batch_purchase and get_batch_status behavior, bulk_create_orders limits, external_order_id, mark_labels_printed, voids, rate limits and plan requirements (accessed November 2026)
  • Ship.com Claude connection guide: which connections can buy labels (accessed November 2026)
  • Ship.com pricing: plan shipment allowances (accessed November 2026)
Joe DiSorbo
About the author
Joe DiSorbo
Founder and CEO

Joe DiSorbo is the founder and CEO of Ship.com, the shipping platform that gives more than 10,000 business customers discounted USPS and UPS rates and simplifies logistics for ecommerce brands and software platforms. Before Ship.com, he founded and led Webgistix, an ecommerce technology and global fulfillment company that grew internationally before Rakuten acquired it in 2013. His background spans global operations, software development, finance and logistics, with experience across the United States and Asia. Joe holds undergraduate degrees in Economics and Geography, masters degrees in Finance and International Management, and is a graduate of Harvard Business School (OPM 41).

Shipping software built for online sellers

Ship.com saves you time and money, giving you more freedom to live your life.

  • No credit card required.
  • Up to 89% off USPS and up to 87% off UPS.
  • Connects with major e-commerce platforms.
  • Free home pickup. Skip the trip to the post office.
Try for free
UPS
UP TO 87% OFF
Daily Rates*
USPS
UP TO 89% OFF
Retail Prices*
Today's orders
Order #1042USPS Ground AdvantageReady
Order #1043UPS Ground SaverReady
Order #1044USPS Priority MailReady
★★★★★Trusted by 10,000+ business customers

More on this topic

See all