Skip To Main Content
All modules

Orders

Fields marked * are required. Updates keep every field they are not given. An AI app can ask vritto_describe for the same details, filtered to what its connection may use.

Orderorder

Something the user bought, with delivery and return state.

orders_getOrderFindthrough vritto_find

Get one order by ID with its notes, pickup code, and full scan timeline. Resolve the ID with orders_listOrders first.

FieldTypeDescription
orderId*stringOrder ID from a prior orders_listOrders result, never invented.
orders_listOrdersFindthrough vritto_find

List orders, newest first. ALWAYS pass status for delivery-state questions, kind for a type of purchase, and from/to when the question concerns a period (a year, a month, 'recently').

FieldTypeDescription
statusone of placed, shipped, arriving, completed, issue, cancelledOnly orders in this lifecycle state.
kindone of shipment, pickup, delivery, digital, ticket, serviceOnly orders of this kind.
fromstringEarliest orderedOn to include (YYYY-MM-DD).
tostringLatest orderedOn to include (YYYY-MM-DD).
detailone of summary, fullRow shape: "summary" (default, id, title, merchant, kind, status, order/tracking number, total, dates) or "full" (adds notes, pickup code, location, and the events[] scan timeline).
limitintegerMax orders to return (default 100 in summary mode).
includeArchivedbooleanInclude removed orders (default false).
orders_queryOrderStatsFindthrough vritto_find

Count orders by lifecycle status plus the number still open. Prefer this over orders_listOrders for how-many and anything-arriving questions.

No input.

orders_querySpendFindthrough vritto_find

Spend rollup: net USD per month, this month, this year, and the top merchants by total. Prefer this over listing rows for any how-much-did-I-spend question. Orders in a currency that could not be converted are excluded from the totals and counted in unconvertedCount, say so if it is above zero rather than presenting the total as complete.

FieldTypeDescription
limitintegerMax merchant rows to return (default 20).
orders_upsertOrderCreate or Updatethrough vritto_create or vritto_update

Create or update one order. Omit record.id to create; include a real id from orders_listOrders to update. Only the fields you send change.

FieldTypeDescription
record*objectProvide at least a title or merchantName when creating.
record.idstringExisting order ID to update. Omit to create.
record.titlestringWhat was bought, e.g. 'Air Zoom Pegasus 41'. Falls back to the merchant name.
record.merchantNamestringRetailer, e.g. 'Nike'. Resolves the logo.
record.merchantDomainstringMerchant domain, e.g. 'nike.com'.
record.kindone of shipment, pickup, delivery, digital, ticket, serviceHow it reaches the user; inferred when omitted.
record.sourceone of manual, gmail, outlook, import, carrier, bankWhere the record came from. Set by the ingestion pipeline; leave unset.
record.statusone of placed, shipped, arriving, completed, issue, cancelledLifecycle state (default 'placed').
record.statusDetailstringLatest status line, e.g. why an order is in 'issue'.
record.orderNumberstringMerchant order number, e.g. '112-3456789'.
record.carrierone of ups, usps, fedex, dhl, amazon, ontrac, lasership, other, unknownDelivery carrier; kind 'shipment' only.
record.trackingNumberstringCarrier tracking number for THIS package. A second, different number on the same order adds a package rather than replacing the first.
record.pickupCodestringLocker or counter code; kind 'pickup'.
record.pickupLocationstringWhere to collect it.
record.pickupByOnstringDate the pickup window closes.
record.orderedOnstringDate the order was placed.
record.shippedOnstringDate it shipped.
record.expectedOnstringExpected arrival or pickup date.
record.completedOnstringDate it arrived, was collected, or was redeemed.
record.amountnumberOrder total (default 0).
record.currencystringISO 4217 code (default USD).
record.returnStateone of none, started, shipped, refundedReturn progress (default 'none').
record.returnByOnstringDate the return window closes.
record.refundAmountnumberAmount refunded.
record.refundedOnstringDate the refund landed.
record.cardIdstringFinance card id that paid for it. Never a card number or last4.
record.recipientPersonIdstringPeople id the order is for; omit for the account owner.
record.notesstringFree-form notes.
record.tagslist of stringTags.
trackingModeone of merge, primaryHow trackingNumber is meant. Default 'merge': it names one package, and a different number adds a second package (what a shipping email means). Use 'primary' ONLY when the user is correcting this order's existing tracking number, which replaces the primary package instead of adding one.
Example input
{
  "record": {
    "title": "Standing desk",
    "merchantName": "Uplift",
    "kind": "shipment",
    "status": "shipped",
    "carrier": "fedex",
    "trackingNumber": "771234567890",
    "expectedOn": "2026-10-01",
    "amount": 689,
    "currency": "USD"
  }
}
orders_setOrderStatusUpdatethrough vritto_update

Cheap update of an order's lifecycle state, expected date, or return progress without sending the whole record. Stamps shippedOn / completedOn / refundedOn automatically.

FieldTypeDescription
orderId*stringOrder ID from a prior orders_listOrders result, never invented.
statusone of placed, shipped, arriving, completed, issue, cancelledNew lifecycle state.
statusDetailstringLatest status line.
lastLocationstringMost recent known location.
expectedOnstringUpdated expected arrival or pickup date.
completedOnstringDate it actually arrived or was collected.
returnStateone of none, started, shipped, refundedReturn progress.
returnByOnstringDate the return window closes.
refundAmountnumberAmount refunded.
Example input
{
  "orderId": "order_desk",
  "status": "completed",
  "completedOn": "2026-10-01"
}
orders_deleteOrderDeletethrough vritto_delete

Delete (archive) one order. Only for explicit removal requests. Resolve the ID with orders_listOrders first.

FieldTypeDescription
orderId*stringOrder ID from a prior orders_listOrders result, never invented.

Kept in the Vritto app

  • orders_refreshTracking: Reaches outside Vritto: another service, a device, or the public web.