Getting started

Ship an order end to end

This walkthrough takes one order from Ready to ship to a booked carrier pickup. Each step is a tools/call, and the JSON shown is its arguments object. Carry the IDs forward exactly as returned. Steps 4 and 5 use buy_label, which is offered on access-token connections only (see Tools by connection type).

  1. Find the order. list_orders with {} returns orders ready to ship. Keep the order_id.
  2. Read its weight. get_order with {"order_id": 48213}. Read totals.weight_oz; if it's empty, weigh the package.
  3. Rate it. get_rates with {"order_id": 48213, "weight_oz": 14, "length": 10, "width": 8, "height": 4}. Pass the weight explicitly; the saved weight isn't used for pricing. Keep the top-level package_id, then pick one row and keep its rate_id, method and service_level.
  4. Preview the purchase. buy_label with those four values and a max_cost, without confirm. Check total_charge and balance_would_go_negative, and show them to the user.
  5. Buy. Repeat the same buy_label call with "confirm": true. Keep label_url and tracking_number. If it fails, see buy_label errors.
  6. Print the label, then mark it printed. Print label_url (and form_url, the customs form, when there is one). Then call mark_labels_printed with {"order_ids": [48213]} to preview, and again with "confirm": true. The order moves from Label purchased to Label printed, which is what a pickup collects. Your customer gets your Label Printed tracking email if you have it turned on.
  7. Check a pickup date. check_pickup_availability with {"date": "2026-10-06"}.
  8. Preview the pickup. schedule_pickup with {"date": "2026-10-06", "location": "Front Door"}. Confirm that eligible_order_ids includes your order.
  9. Book it. Repeat the call with "confirm": true and keep the pickup_id.

Step 3 as a complete request:

Shell
curl -s https://app.ship.com/mcp \
  -H "Authorization: Bearer $SHIPCOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"get_rates","arguments":{"order_id":48213,"weight_oz":14,"length":10,"width":8,"height":4}}}'

Step 5's request body, with the tokens shortened:

JSON
{"jsonrpc":"2.0","id":6,"method":"tools/call","params":{"name":"buy_label","arguments":{"order_id":48213,"rate_id":"eyJhbGciOi...","package_id":"eyJhbGciOi...","method":"USPS Ground Advantage","service_level":"usps_ground_advantage","max_cost":8.00,"confirm":true}}}

If you change the order's address, weight or dimensions after step 3, rate it again before buying: the rate_id and package_id keep the values from when you rated.