Tool reference
Creating and changing orders
These tools create orders and change them before they ship. A typical flow: create an order (or up to 100 at once), adjust its details or ship-to address while it is still Ready to ship, then rate it and buy the label. If plans change, void just the label with cancel_shipping_label, or cancel the whole order with cancel_order.
Every order and customer lookup is limited to your own account. An ID from another account gets the same "was not found in this account" answer as one that doesn't exist. Ship.com keeps a record of changes made through MCP, just as it does for changes made in the app. Send numbers and booleans as real JSON numbers and booleans, and send ZIP codes as strings: a ZIP sent as a number loses its leading zero.
create_order
Creates one new order at Ready to ship. Ship to a customer already in your address book with customer_id, or pass the recipient inline with ship_to to import an order from anywhere, such as a spreadsheet, an email or a marketplace. Add line items and a package weight now or later. Pass external_order_id so a retry or re-import returns the existing order instead of creating a duplicate.
| Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | integer | One of two | An address-book customer (from list_customers or get_customer). The order copies the customer's saved name, company, address, email and phone. Provide exactly one of customer_id or ship_to. |
ship_to | object | One of two | Inline recipient. If your address book already has a contact with the same name and street line 1 (ignoring case) and the same ZIP, that contact is reused unchanged and its saved email and phone are copied to the order; otherwise a new contact is created. |
ship_to.name | string | With ship_to | Recipient's full name, split at the first space into first and last name. |
ship_to.company | string | No | Company name. |
ship_to.street1 | string | With ship_to | Street address line 1. |
ship_to.street2 | string | No | Apartment, suite or unit. |
ship_to.city | string | With ship_to | City. |
ship_to.state | string | With ship_to | State or province code. |
ship_to.zip | string | With ship_to | ZIP or postal code. Send it as a string. |
ship_to.country | string | No | Two-letter country code. Default US. |
items | array | No | Line items. Omit, or send [], for an order with no line items. |
items[].name | string | Yes | Product name. Also adds the product to your General product catalog, or updates the product with the same name there. |
items[].quantity | integer | No | At least 1. Default 1. |
items[].price | number | No | Unit price in dollars, 0 or more. Default 0. |
items[].sku | string | No | SKU or UPC, free text. |
items[].notes | string | No | Notes for this item. |
weight_oz | number | No | Package weight in ounces, greater than 0. Saved on the order. trigger_batch_purchase rates at it. get_rates doesn't: pass weight_oz to get_rates explicitly (you can read it back from get_order's totals.weight_oz). |
external_order_id | string | No | Your source system's order or PO number. If a live order in your account already carries it, that order is returned instead of a new one being created. |
Returns: created: true, order_id, a generated 6-character order_number, status ("Ready to ship"), the ship_to used and items_count. With items it adds subtotal (sum of price × quantity) and an equal total; with ship_to it adds customer_id and customer_created. weight_oz and external_order_id are echoed when you send them, and every result ends with a note. A duplicate re-send returns created: false, skipped_existing: true, the existing order's order_id, order_number and current status, and a note.
Good to know: Runs immediately. All input is checked before anything is saved, so a validation error creates nothing. No postage is charged and no carrier is contacted; the address is validated when you rate the order. Duplicate protection ignores canceled and merged orders, so a canceled import can be re-imported. A re-send isn't compared with the original and doesn't update it. The ID is kept in the order's notes as [ext:YOUR-ID], so replacing the notes with update_order turns duplicate protection off for that order. Send retries one at a time: two simultaneous calls with the same ID can both create an order. A catalog product matched by name (ignoring case) takes the new price and its cost resets to 0. If you run a rewards program, the order earns customer points as usual.
{"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"}, {"name": "Gift Wrap", "price": 3.00}], "weight_oz": 22, "external_order_id": "SHOP-10482"}bulk_create_orders
Creates up to 100 orders in one call. Each entry takes the same fields as create_order and goes through the same checks, including duplicate protection with external_order_id. One bad entry doesn't stop the rest: every entry gets its own result row, in input order, plus a summary. Use it instead of calling create_order in a loop.
| Parameter | Type | Required | Description |
|---|---|---|---|
orders | array | Yes | 1 to 100 order entries. A missing, empty or oversized list is rejected and nothing is created. Split larger imports across calls. |
orders[] | object | Yes | One order with the create_order fields: exactly one of customer_id or ship_to, plus optional items, weight_oz and external_order_id. |
Returns: results, one row per entry with index and ok. A successful row has order_id and order_number, plus skipped_existing: true when an existing order was returned; a failed row has error, the same message create_order would give. Also summary (created, skipped, failed) and a note. Rows don't include status, address or totals; use get_order for those.
Good to know: The whole call counts as one request against the rate limit of 60 requests per minute. There is no all-or-nothing: each entry is saved as it is processed. An external_order_id repeated inside the same batch is created once and reported as skipped on the later entry. Send numbers as JSON numbers: a value of the wrong type (such as "two" for a quantity) stops the whole call with an unexpected-error result after earlier entries were already saved. After any unexpected error, check with list_orders. Re-sending the same batch with an external_order_id on every entry is safe, because entries already created come back as skipped.
{"orders": [{"customer_id": 918274, "weight_oz": 8, "external_order_id": "SHOP-10483"}, {"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}], "external_order_id": "SHOP-10482"}]}update_order
Edits an order that is still at Ready to ship or an earlier status: notes, display order number, the amounts you charge your customer, line items and package weight. Send only the fields you want to change, at least one. The total is recalculated every time as subtotal - discount + tax + shipping + handling, using the saved value for any amount you don't send.
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | integer | Yes | The order to edit. Orders at Label Refunded or any later status (label purchased, printed, in transit, delivered and so on) are rejected. Canceled and merged orders aren't rejected; editing them doesn't reopen them. |
notes | string | No | Replaces the whole notes field. An empty string clears it. |
order_number | string | No | Display order number. An empty string clears it. Not checked for uniqueness. |
subtotal | number | No | Item subtotal. Ignored when items is sent in the same call. |
shipping | number | No | Shipping you charge your customer (not postage). |
tax | number | No | Sales tax. |
discount | number | No | Order-level discount, subtracted from the total. |
handling | number | No | Handling fee. |
items | array | No | Replaces all line items (not a merge). Each item takes name (required), quantity, price, sku and notes, as in create_order. [] removes every item. The subtotal is recalculated from the items. |
weight_oz | number | No | Package weight in ounces, greater than 0. Saved on the order. trigger_batch_purchase rates at it. get_rates doesn't: pass weight_oz to get_rates explicitly (you can read it back from get_order's totals.weight_oz). |
Returns: updated: true, order_id, order_number, totals (subtotal, shipping, tax, discount, handling, total), plus items_count and weight_oz when you sent them, and a note.
Good to know: Runs immediately and doesn't change the order's status. Rates you got before the change still carry the old weight; call get_rates again before buying. Amounts are saved as sent and aren't range-checked. Items update your General product catalog the same way create_order does. Replacing the notes on an order created with external_order_id removes its [ext:...] reference and with it duplicate protection; include that reference in the new notes to keep it. If you run a rewards program, the customer's points are recalculated. Invoices can't be created or sent through MCP; use the Ship.com app for those.
{"order_id": 4821937, "items": [{"name": "Lavender Soy Candle", "quantity": 3, "price": 18.50, "sku": "CND-LAV-08"}], "shipping": 6.95, "tax": 3.30, "discount": 5.00, "weight_oz": 30}update_order_address
Changes the ship-to street address on an order that is still at Ready to ship or an earlier status. The new address is validated before it is saved; if it doesn't validate, nothing changes. Only this order is updated: the customer's address-book entry and the recipient's name, company, phone and email stay as they are.
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | integer | Yes | The order to re-address. Orders at Label Refunded or any later status are rejected. Canceled and merged orders aren't rejected; editing them doesn't reopen them. |
street1 | string | Yes | Street address line 1. Saved as sent. |
street2 | string | No | Apartment, suite or unit. If omitted, any existing line 2 on the order is cleared, so re-send it to keep it. |
city | string | Yes | City. The validated city is saved. |
state | string | Yes | Two-letter state code. The validated state is saved. |
zip | string | Yes | ZIP code, sent as a string. The validated ZIP is saved and can differ from the one you sent. |
Returns: updated: true, order_id, the saved ship_to (street1, street2, city, state, zip, with the corrected city, state and ZIP) and a note.
Good to know: Runs immediately. Rates you got before the change still carry the old address; call get_rates again before buying. US addresses only: the address is always validated as a US address. If the validation service is briefly unavailable you get the same "could not validate" error, so a later retry may succeed.
{"order_id": 4821937, "street1": "1420 Maple Ave", "street2": "Apt 3B", "city": "Springfield", "state": "IL", "zip": "62704"}cancel_order
Cancels an order entirely. Its status becomes Canceled and it stays visible in your account. If the order hasn't shipped yet and its label is within 29 days of its ship date, the label is voided first, with the same refund handling as cancel_shipping_label. Customer reward points earned on the order are reversed. To void only the label and keep the order open, use cancel_shipping_label instead.
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | integer | Yes | The order to cancel. Orders in any status are accepted. |
confirm | boolean | No | Omit or false to preview; nothing changes. true cancels the order. |
Returns: A preview returns preview: true, order_id, current_status (for example "Label purchased"), would_void_label, would_reverse_reward_points, refund_note and note. A confirmed call returns canceled: true, order_id, status ("Canceled"), label_voided, postage_balance (your current balance, not a credit from this call) and refund_note (null when there was no label).
Good to know: Call it once without confirm to see what will happen, then again with confirm: true. A label isn't voided once the order is in transit, delivered or being returned, or when the label is more than 29 days past its ship date; the label and tracking then stay on the canceled order and no postage refund is issued. For an order that already shipped, the refund note may describe this as no label to void or as outside the void window. If the carrier refuses the void, the order is still canceled, label_voided is false and no refund is queued; contact help@ship.com if you expected one. would_reverse_reward_points is always true in a preview, even when the order earned no points. The cancellation isn't sent to connected sales platforms; only a voided label sends a tracking update. Cancel each order once. A canceled order can be imported again with create_order using the same external_order_id.
{"order_id": 4821937, "confirm": true}cancel_shipping_label
Voids a purchased shipping label and returns the order to Ready to ship, so you can edit or re-rate it. A label can be voided within 29 days of its ship date. The postage refund isn't immediate: it typically posts to your Ship.com postage balance about 14 days after the void, and is subject to the carrier accepting the void.
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | integer | Yes | The order whose label to void. It must have a purchased label. |
confirm | boolean | No | Omit or false to preview; nothing is voided. true voids the label. |
Returns: A preview returns preview: true, order_id, tracking_number, ship_date, within_void_window, shipping_cost, refund_note and note. A confirmed call returns canceled: true, order_id, status ("Ready to ship") and refund_note.
Good to know: A label past the 29-day window returns an error instead of a preview. When the void goes through, the tracking number, label, rate and insurance are cleared and insurance bought with the label is voided. Unsent follow-up emails to your customer that were triggered by the printed label are canceled. The order leaves any scheduled pickup, but the pickup itself stays booked. If the order came from a connected sales platform that syncs tracking, the change is sent there. When the refund comes due, the label cost and any insurance fee are credited to your postage balance, even if you paid by card, and you get a confirmation email. If the carrier has scanned the package by then, no credit is issued and the tracking number is restored. If the carrier refuses the void, most often because the package is already in transit, nothing changes and no refund is queued. The carrier gives no reason, and a retry the same day may be refused again. Contact help@ship.com if the label should have been refundable. Return labels aren't handled by this tool.
{"order_id": 4821937, "confirm": true}