Mark paid pickup orders as shipped
Ship paid pickup orders with no email. A validated mark_order_shipped@1 definition.
When a pickup order is paid, mark it shipped so it leaves your fulfillment queue, the same as pressing the Fulfill button with no tracking number. Trigger: order.paid@1 with a filter on the delivery type. Action: mark_order_shipped@1.
Model background: Automations. This action cannot be undone, so read "What it does not do" before you turn it on.
The definition
{
"schemaVersion": 1,
"trigger": {
"type": "order.paid@1",
"origins": [
"USER",
"API",
"MCP",
"ASSISTANT",
"BULK",
"IMPORT",
"DUPLICATE",
"SYSTEM",
"AUTOMATION"
],
"filter": {
"op": "all",
"rules": [
{
"path": "event.facts.order.deliveryType",
"op": "eq",
"value": "pickup"
}
]
}
},
"steps": [
{
"id": "ship",
"type": "action",
"contract": "mark_order_shipped@1",
"input": {
"orderId": {
"$ref": "event.entityId"
},
"notifyCustomer": false
}
}
]
}notifyCustomer is required and has no default: you must write true or false. This recipe uses false because the platform's shipped email says the order is on its way, which is wrong for a parcel the customer collects. Set it to true only if you want that email. To tell a pickup customer "ready to collect" in your own words, add a send_customer_email@1 step with a template of your own instead.
How it works
- The filter is the guard.
mark_order_shipped@1is refused withACTION_NEEDS_GUARDunless the trigger has a filter with at least one rule, or the action sits under aconditionstep, and a filter that can never be false (such asorder.total gte 0) does not count. Delete the filter from this definition and the validator rejects it. - Only paid orders ship. A paid, partly paid or authorized order is marked shipped, exactly as the Fulfill button does. An order whose payment is pending or missing is skipped with
ORDER_NOT_PAID. There is no setting to ship an unpaid order. - It does what the Fulfill button does: the stock units held for the order are committed and the order moves to Shipped. It records
order.fulfilledas made by the automation (so it cannot start itself again through that event), and it needs the same permission as the Fulfill button (update order status). carrierandtrackingNumberare optional, 1 to 100 characters on one line. A pickup order has none, so the step leaves them out. Under theorder.tracking_added@1trigger they can instead be{ "$ref": "event.facts.shipment.carrier" }and{ "$ref": "event.facts.shipment.trackingNumber" }: those are the only references accepted, so a tracking number cannot be fetched from an HTTP request.- With
"notifyCustomer": truethe platform's own shipped email goes out once, after the order is marked shipped. A replay after a crash does not send it twice. - The test dialog shows
would_changewith whether a tracking number and a carrier would go along (never the number itself), orwould_skipwith the reason. Nothing is shipped or sent in a test.
What it does not do
- It never ships an unpaid order.
ORDER_NOT_PAIDmeans the payment is not confirmed: mark the order paid first, or ship it by hand with the Fulfill button. - It cannot be undone. There is no step that un-ships an order. Test it on a real order first and keep the filter narrow.
- It skips an order that already shipped (
ORDER_ALREADY_SHIPPED): nothing changes and the customer is not emailed again. - It skips an order when shipping would take the stock on hand below the units you hold back for damage, quality control or safety stock (
SHIP_BELOW_HELD_UNITS). Move the held units back to Available first. - It skips a cancelled, refunded, draft, on-hold, archived or imported (view-only) order, an order outside the sales channels of the person who turned the automation on, and any Shopify or WooCommerce order (
ORDER_NOT_SHIPPABLE). - It works only under order triggers, never inside a
for_eachrepeat, and exposes onlysteps.ship.changedto later steps. - It does not wait for the customer to collect the order: it marks the order shipped the moment the payment is confirmed. Use it only if a paid pickup order is finished for you at that point.
- "Run again" does not re-run a run that succeeded.
Create it
With the Admin MCP:
get_automation_guidewithtopic: "order-actions".validate_automation_definition. Fix every finding.test_automationwithentity: { "type": "Order", "id": "<a paid pickup order id>" }. Nothing is shipped or sent.create_automation_draftwithname: "Mark paid pickup orders as shipped".
A signed-in dashboard user must then review and approve it. An API key cannot approve.