On this page
An order-status call should answer what the authoritative systems actually know. “Paid,” “fulfilled,” “delivered,” and “refunded” are different facts. Turning them into one generic status can cause an agent to promise a shipment or refund that has not happened.
Begin with inbound, read-only lookup for a defined order population. This tutorial describes an integration contract to build and test, not undocumented QuickVoice Shopify setup screens or an automatic returns service.
Map statuses before writing responses
Shopify's status documentation distinguishes order, payment, fulfillment, and return statuses. For example, a canceled order can still have outstanding refund work. Other systems may use different terms, so map your actual fields rather than copying a universal status list.
| Data dimension | Safe response boundary |
|---|---|
| Order | Identify whether the order is active, canceled, or otherwise recorded |
| Payment | Report only the permitted payment state, without inferring bank settlement timing |
| Fulfillment | Distinguish unfulfilled, partial, and completed fulfillment |
| Shipment | Attribute carrier events and estimates to their source and timestamp |
| Return/refund | Separate a request, an approved process, and a completed refund record |
Do not interpret “label created” as proof of carrier possession. Keep an estimated arrival explicitly tentative. If a field is absent, preserve the unknown instead of inventing a standard delivery window.
Establish access and matching rules
An order number or caller ID alone may be insufficient to authorize disclosure. Have the business and implementation owners define the recipient verification appropriate for the data. Return only the minimum information needed for the task.
The lookup should distinguish one authorized match, multiple possible matches, no match, and an unavailable source. Do not reveal another person's address or purchase details while trying different matches. Keep internal notes and unnecessary payment data outside the model response.
Return structured, current information
Design the adapter to return an order reference, relevant line or shipment references, permitted status fields, source timestamps, and explicit unknown/error states. For split shipments, preserve each item grouping and its own status. Use the order's relevant time zone when describing dates and clarify ambiguous caller references such as “tomorrow.”
Create approved wording for stale or conflicting records. If the store and carrier disagree, attribute each fact and offer the defined staff route. An agent should not settle a delivery dispute by choosing whichever status sounds more reassuring.
Keep changes outside a read-only pilot
Address changes, cancellations, replacement shipments, return labels, and refunds need separate eligibility and authorization controls. Collecting a request for staff is different from making the change. Do not promise an email, text, or live transfer unless the selected route has been implemented and tested.
QuickVoice's MCP handler restricts marked write/side-effect tools. Confirm the permitted lookup and any separate action path in the repository before assigning the task to an agent.
Verify with synthetic orders
Test a partial shipment, a canceled but unrefunded order, a disputed delivered event, an ambiguous match, stale tracking, and an unavailable system. Inspect what the caller hears and whether the integration accesses only authorized data.
Measure accurate answers, unresolved lookups, repeat contacts, and staff correction work. Outbound notifications are a separate campaign with contact-permission and event-deduplication requirements; do not assume they automatically prevent inbound calls. The logistics guide covers a related shipment-level workflow, while this contract keeps the customer's full order states distinct.
Rahul Agarwal
More implementation guides