Skip to content

Orders

An order records a sale to a contact: one or more lines (catalog products or custom lines), an optional promo code and shipping, and the totals computed by the server. Finalizing an order issues its invoice; payments and refunds are then recorded against it.

Where to find orders:

  • E-commerce › Orders in the sidebar (/t/<workspace>/orders): the orders list.
  • New order (/t/<workspace>/orders/new): the three-step order wizard.
  • An order’s page (/t/<workspace>/orders/<order id>): items, payments, refunds, summary and history.
  • The Orders card on a contact’s page: the contact’s recent orders, live subscriptions and the amount collected.

Orders are created in four ways, shown in the Source column: Manual (created by a user in the app), API (created with an API key), Subscription (renewal orders generated by the billing job) and Checkout (purchases made by buyers on a checkout).

Checkout orders are born as drafts when the buyer submits the page and are finalized by the payment itself; each accepted post-purchase offer creates its own order (parent_order_id links it to the main purchase), and the order keeps the UTM parameters of the visit (attribution). Everything else about them — statuses, invoices, payments, refunds — works exactly as described on this page.

Each line has a name, an optional SKU, a quantity, a net unit price and a tax rate. A line created from a catalog product copies the product’s name, SKU, price and tax rate; you can override the price and tax rate per line. A custom line has its own description, price and tax rate.

The server computes every total in integer minor units of the order currency, in this order:

  1. Line subtotal = quantity × unit price.
  2. Discount (only with a promo code): a percentage of the eligible subtotal, rounded half up, or a fixed amount capped at the eligible subtotal. The discount is split across the eligible lines in proportion to their subtotals, so that the shares always add up exactly to the discount.
  3. Line tax = (line subtotal − line discount share) × tax rate, rounded half up, computed per line.
  4. Order total = subtotal − discount + tax + shipping. Shipping is never taxed or discounted.

All the lines of an order share one currency. When an order uses catalog products, its currency is the currency of the first product, and every other product must be priced in the same currency. An order with only custom lines uses the default currency. See Money, dates and time zones.

There is no separate payment status: the order status tells you where the money stands.

Status Meaning
Draft Still editable. No invoice, no promo redemption, no events. Can be deleted.
Unpaid Finalized, invoice issued, nothing collected yet.
Partially paid Some money collected, less than the total.
Paid Collected at least the total. A partial refund keeps the order Paid.
Refunded Every collected amount has been refunded.
Cancelled Cancelled while holding no money. The invoice is void.

What moves an order between statuses:

  • Draft → Unpaid: finalizing (the Finalize button, Create order in the wizard, or creating the order through the API without status: "draft"). An order with a zero total becomes Paid as soon as it is finalized.
  • Unpaid → Partially paid → Paid: recording succeeded payments. The status is recomputed from the amounts after every payment or refund: Refunded when refunds cover everything collected, Paid when collected ≥ total, Partially paid when something was collected, otherwise Unpaid.
  • Paid / Partially paid → Refunded: refunding everything collected.
  • Unpaid or Refunded → Cancelled: cancelling. An order still holding money (collected minus refunded greater than zero) cannot be cancelled; refund it first.
  • Draft → deleted: drafts are deleted, not cancelled.

The first time an order becomes fully paid, its payment date is set and the order.paid event is emitted.

When a draft is finalized:

  1. The promo code, if any, is checked again against all its limits and its redemption is recorded. A draft never reserves a redemption.
  2. The due date is set: the due date you gave, or the finalization time plus the payment terms (14 days by default). Renewal orders are due on the first day of their billing period.
  3. The invoice is issued with the next gapless invoice number.
  4. The order.created event is emitted for automations and webhooks.

Every order receives a number when it is created, drafts included: the order prefix followed by a six-digit counter, for example ORD-000123. The counter never restarts. Deleted drafts keep their number, so the order sequence can have gaps; invoice numbers never do.

Lines, currency, promo code, shipping and order date are locked once an order is finalized. Through the API you can still change the notes, owner, company, due date, analytics visitor id and custom fields of a finalized order. Changing the due date also updates the invoice.

An order can carry an analytics visitor id (API only). Payments of that order are sent to web analytics as revenue of that visitor; without it, amabledata uses the visitor most recently linked to the contact. See Payments.

The wizard has three steps shown at the top: Customer › Items › Review. You need the orders:write permission; without it the wizard shows “Your role does not allow this action.”

  1. Click New order on the orders list (or on the Orders card of a contact, which skips straight to Items with the contact already chosen, unless orders have required custom fields: then you stay on Customer to fill them in).
  2. Customer: type in Search contacts by name or email… and pick a contact from Matching contacts (up to 8 results; “No contacts found.” when nothing matches). To pick another one, click the cross (Change contact). When some order custom fields (defined in the Orders tab of Settings › Custom fields) are marked Required, they appear below the contact, each label followed by *: fill them in. Click Continue; a missing or invalid value is shown in red under its field and keeps you on this step.
  3. Items, in the Products card:
    • Use Add a product… to add an active catalog product. Each product line shows the name and SKU, a quantity (Qty, at least 1), a unit price and a tax rate. Leave price and tax empty to use the catalog values, which are shown as placeholders.
    • Click Custom line to add a line that is not in the catalog. Fill in Description, quantity, unit price and tax rate (pre-filled with the default tax rate).
    • Click the trash icon (Remove) to delete a line.
  4. Items, in the Subscriptions card (optional): use Add a subscription plan… to add active plans and set their quantity. “Each plan starts a subscription when you confirm; it bills its own orders.” Plans are not lines of this order.
  5. Click Continue (you need at least one line or one plan).
  6. Review: the Totals preview shows the lines and totals computed by the server (“Calculating…” while it updates). In Order details you can set:
    • Promo code (case-insensitive). An invalid code shows its error under the field.
    • Shipping, in the order currency.
    • Notes.
  7. Click Create order. The order is finalized, its invoice is issued, any subscriptions are started, and you see Order created. You land on the new order, or on the first subscription when you only added plans (“Only subscriptions: no one-off order is created.”).
  1. Open the draft order (filter the list by Draft).
  2. Click Finalize.
  3. You see Order finalized and invoice issued. The status becomes Unpaid and the Invoice … button appears.

Drafts cannot be edited in the order page; to change one, delete it and create a new order, or update it through the API.

  1. Open the draft and click Delete draft.
  2. The confirmation Delete this draft? reads “The draft has not been finalized or invoiced yet, so it will be removed. Its order number is not reused.” Click Delete draft. You see Draft deleted and return to the list.

On an Unpaid or Partially paid order with a balance due, click Record payment. See Record a payment for every field.

When the order holds money (collected minus refunded greater than zero), users with orders:refund see the Refund button. See Refund a payment.

  1. Open a finalized order that holds no money (for example Unpaid, or Refunded).
  2. Click Cancel order and confirm Cancel order …? (“The invoice is voided and any promo code redemption is released.”).
  3. You see Order cancelled. The status becomes Cancelled and the invoice Void.

Through the API you can add a reason (up to 500 characters); it is appended to the notes as “Cancelled: …”.

  • Type in Search orders… to search order numbers, contact names and emails, item names, SKUs, promo codes, notes and searchable custom fields.
  • Filter by status, and by order date with From and To.
  • From a contact’s page, View all orders opens the list filtered on that contact; the filter appears as a Contact: … chip that you clear with its cross.
Column Content Notes
Number Order number Sortable
Date Order date Sortable; the list loads newest first
Contact Contact name, with the email underneath Sortable
Status Status badge Sortable
Source Manual, API, Subscription or Checkout Only on very wide screens
Items Number of lines Wide screens only
Paid Collected minus refunded Hidden on small screens
Total Order total Sortable

The list loads 50 orders at a time; click Load more at the bottom for the next ones. The footer summary reads, for example, “50 of 312 orders · total €12,400.00 · collected €9,800.00”, with amounts summed per currency over the loaded orders. Column sorting reorders the loaded rows. With no results the list shows “No orders match these filters.”

Filter Options
Search orders… Full-text search (see above)
Status All statuses, Draft, Unpaid, Partially paid, Paid, Refunded, Cancelled
From / To Order date range
Contact: … chip Present when opened from a contact

The toolbar shows the status badge, the source and the order date, plus the actions available:

Button Shown when Permission
Invoice … The order has an invoice orders:read
Delete draft Status Draft orders:write
Finalize Status Draft orders:write
Cancel order Finalized, not cancelled, holding no money orders:write
Refund Collected minus refunded > 0 orders:refund
Record payment Unpaid or Partially paid with a balance due orders:write

Main column:

  • Items and totals: one row per line with Item (name and SKU), Qty, Unit price, Discount (only when the order has a discount), Tax (rate) and Net (subtotal minus discount). Below: Subtotal, Discount (CODE), one “Tax 22% on €100.00” row per tax rate (or a single Tax row when no line is taxed), Shipping (when not zero) and Total.
  • Payments: date and time, method, a Failed badge for failed attempts, a “… refunded” badge, the transaction ID or notes, and the amount. “No payments recorded yet.” when empty.
  • Refunds (only when there are refunds): date and time, reason and amount.
  • Notes (only when the order has notes).

Side column:

  • Summary: Contact (link to the contact), Total, Paid, Refunded (when not zero), Balance due, Due date and, for subscription orders, Subscription with the billing period (link to the subscription).
  • History: a timeline built from the order dates, payments and refunds: Created, Finalized, invoice issued, “Payment of …”, “Failed payment of …” (with the failure reason or transaction ID), “Refund of …” (with the reason), Fully paid and Cancelled.

There is no fulfilment or shipping tracking: shipping is only an amount on the order.

Field Rules
contact_id Required, an existing contact
status draft or unpaid (default unpaid, which finalizes immediately)
currency Optional ISO 4217 code; defaults to the first product’s currency, then the default currency
items 1 to 200 lines
items[].product_id Catalog product (must be active and in the order currency)
items[].name 1–255 characters; required without product_id
items[].sku Up to 64 characters
items[].description Up to 2,000 characters
items[].quantity 1–100,000, default 1
items[].unit_price_minor Required without product_id; 0–100,000,000,000
items[].tax_rate_bps 0–10,000 (0–100%); custom lines default to 0
promo_code Up to 40 characters, or null
shipping_minor 0–100,000,000,000, default 0
order_date ISO date-time, for back-dating imports; defaults to now
due_at ISO date-time; defaults to finalization + payment terms
notes Up to 10,000 characters
company_id, owner_id Optional; the owner defaults to the creating user
analytics_visitor_id Up to 128 characters; used for revenue attribution
custom_fields Custom field values, keyed by the API keys of the fields defined in the Orders tab of Settings › Custom fields; required order fields must be present (orders generated by subscriptions are exempt)

Relative to /api/v2/t/<workspace>:

Method and path Permission Purpose
GET /orders orders:read List, newest order date first (q, status, contact_id, subscription_id, source)
POST /orders orders:write Create an order (draft or finalized)
GET /orders/{id} orders:read Get an order
PATCH /orders/{id} orders:write Update (drafts: everything; finalized: notes, owner, company, due date, visitor id, custom fields)
DELETE /orders/{id} orders:write Delete a draft
POST /orders/{id}/finalize orders:write Finalize a draft
POST /orders/{id}/cancel orders:write Cancel an order holding no money
GET /orders/{id}/items orders:read Lines of an order
POST /orders/{id}/items orders:write Add a line to a draft
DELETE /orders/{id}/items/{itemId} orders:write Remove a line from a draft (one must remain)
Event When
order.created An order is finalized (not when a draft is saved)
order.paid An order becomes fully paid for the first time (renewal tells subscription renewals apart)
order.cancelled A finalized order is cancelled

Each event carries source (manual, api, subscription or checkout).

Action Permission Roles
View orders orders:read Owner, Admin, Marketer, Sales, Analyst, Viewer
Create, finalize, cancel orders, delete drafts, record payments orders:write Owner, Admin, Sales
Refund orders:refund Owner, Admin
Start subscriptions from the wizard subscriptions:write Owner, Admin, Sales
  • 1 to 200 lines per order; quantity 1 to 100,000 per line.
  • Amounts up to 100,000,000,000 minor units (1,000,000,000.00 in a two-decimal currency).
Symptom Cause Fix
“items[0].product_id: product … is priced in USD, the order in EUR” Products in different currencies on one order Create one order per currency
“items[0].product_id: product … is not active” The product was deactivated Activate it or remove the line
“items[0].name: name is required without product_id” A custom line has no description Fill in Description
The promo code field shows an error on Review The code is unknown, expired, used up or not applicable See Promotions
Create order stays disabled The preview is still calculating, or pricing failed Wait for the preview, then fix the error shown
“This field is required.” under a custom field on Customer A custom field on orders is marked Required Fill it in, then click Continue, or untick Required in the Orders tab of Settings › Custom fields
“custom_fields.…: … is required” (API) The request leaves a required order custom field empty Send its value in custom_fields
“order … is finalized; cancel it instead” Only drafts can be deleted Use Cancel order
“order … has payments; refund them before cancelling” The order still holds money Refund first, then cancel
“order … is finalized; items, … can only change on drafts” Locked fields on a finalized order (API) Cancel and create a new order
“an order needs at least one item” Removing the last line of a draft (API) Delete the draft instead
Unexpected Draft orders in the list The wizard was left without Discard, or checkout buyers submitted the page without completing the payment Finalize or delete wizard drafts; abandoned checkout drafts delete themselves about a day later
“The record changed in the meantime. Reload and retry.” A conflicting change Reload the page and retry