Skip to content

Payments

A payment is money collected for an order; a refund is money returned. Payments move the order from Unpaid to Partially paid and Paid, keep the invoice in sync, and become revenue in web analytics and ad attribution.

Where to find them:

  • E-commerce › Payments in the sidebar (/t/<workspace>/payments): every payment across orders.
  • The Payments and Refunds cards of an order page, with the Record payment and Refund buttons.

Payments reach an order in two ways:

  • Recorded: by hand in the app (for example after a bank transfer arrives) or from your own systems through the REST API, for instance from your payment provider’s webhook handler. The Method of a recorded payment (Card, Bank transfer, PayPal, …) is a label describing how the money arrived; it does not trigger anything.
  • Collected by a checkout: buyers pay by card or wallet through the Stripe account connected in Settings › E-commerce. These payments are recorded automatically with method Card and the Stripe payment intent id (pi_…) as transaction ID — that id is what makes them refundable through Stripe. The same applies to one-click offer charges and to the automatic charges of subscription renewals on a saved card. They all carry the buyer’s email as the Stripe receipt email, so Stripe’s receipts (when enabled in your Stripe settings, live mode) reach the buyer.
Status Meaning
Succeeded Money collected. It increases the order’s paid amount.
Failed A declined charge, recorded for the record. No money moves. Only through the API.

The payments list also shows a “… refunded” badge on succeeded payments that were partly or fully refunded.

  • The order must be finalized: drafts, Cancelled and Refunded orders do not accept payments.
  • A succeeded payment cannot exceed the order’s open balance (total minus paid). An order that is already fully paid accepts no further succeeded payments.
  • The payment is always in the order currency.
  • The payment date defaults to now. In the app you pick a day; the payment is stored at noon of that day in your browser’s time zone.
  • Transaction ID makes recording safe to repeat. Recording the same transaction ID again for the same order, amount and status returns the first payment and changes nothing. Using a transaction ID that is already recorded on a different order, amount or status is refused. Transaction IDs are unique across all payments of the workspace.

After a succeeded payment the order status is recomputed, and the payment.recorded event is emitted (plus order.paid when the order becomes fully paid).

A failed payment emits payment.failed. If the order belongs to an Active or Trial subscription, the subscription becomes Past due (see Subscriptions). Recorded payments are never retried by amabledata; the one exception is subscription renewals with a card saved by a checkout, which are charged automatically with two retries (see Automatic renewal charges).

  • You can refund up to what the order still holds: collected minus already refunded.
  • A refund can target one payment, limited to that payment’s unrefunded amount. Without a target (“Newest payments first”) the refund is spread over the order’s succeeded payments, newest first.
  • Without an amount, the whole refundable amount is refunded.
  • A transaction ID works like for payments: repeating it for the same order (and amount) returns the first refund.

After a refund the order status is recomputed: Refunded when everything collected has been returned, otherwise it stays Paid or Partially paid (the refunded amount is shown separately). The invoice of a refunded order stays Paid; amabledata does not issue credit notes. The refund.recorded event is emitted with full: true when nothing refundable is left.

A refund can also send the money back, not just record it, when the payment was collected by a checkout (its transaction ID is a Stripe payment intent, pi_…):

  • In the Refund dialog, the Refund on Stripe too switch appears whenever the order has Stripe payments with something refundable. It is on by default; the limit shown is what can be returned through Stripe (payments recorded by hand are excluded and keep working as records only).
  • The refund is split across the order’s Stripe payments, newest first (or sent to the one payment you picked), executed on Stripe, and recorded in amabledata with a stripe:… transaction ID — partially or in full, your choice. The action is written to the audit log as commerce.stripe_refunded.
  • The same works through the API: POST /orders/{id}/refunds with "stripe": true.
  • It also works in the other direction: a refund made in the Stripe dashboard flows back through the Stripe webhook and is recorded on the right payment automatically (reason “Refunded in Stripe”). Nothing is ever recorded twice: both paths converge on Stripe’s cumulative refunded amount per charge.

If Stripe refuses or does not answer mid-way through a multi-payment refund, the error says how many payments were already refunded; check the payment in Stripe before retrying — a refund made there is picked up by the webhook anyway.

Every payment and refund belongs to the order’s contact. The contact page’s Orders card shows “Collected:” (succeeded payments minus refunds, per currency) and the number of orders. See Contact detail.

Succeeded payments and refunds are sent to web analytics so that revenue appears next to the traffic that produced it:

  1. After any change made through the app or the API, a synchronisation runs in the background; a scheduled run also happens every 5 minutes and picks up anything left.
  2. Each payment is attached to a visitor: the order’s analytics visitor id when the order has one (set through the API) and the site knows it, otherwise the visitor most recently linked to the contact. The payment is placed in the site where that visitor lives, or in your first site when no visitor is known.
  3. In the site the payment is recorded as revenue (transaction id crm_<payment id>) and as a payment goal of the visitor, attached to the visitor’s session that started at most 24 hours before the payment. Renewal payments of subscriptions are flagged as renewals.
  4. The session’s revenue only counts payments in the site’s currency; payments in other currencies are still recorded as payments.
  5. Refunds reduce the revenue of the payments they refer to.
  6. When a contact is later linked to a visitor (for example by a form submission), payments of that contact without a visitor are adopted by that visitor.

From there, revenue feeds the analytics dashboard, LTV and cohorts and the attribution models. Failed payments are not sent as revenue.

Subscription lifecycle events (started, trial started, renewed, cancelled, …) are also sent to the contact’s visitor as goals; see Subscriptions.

  1. Open an Unpaid or Partially paid order and click Record payment.
  2. The Record a payment dialog shows “Balance due: …”. Fill in:
    • Amount: pre-filled with the balance due. It must be greater than zero and not exceed the balance (“The amount exceeds the balance due.”).
    • Method: Card, Bank transfer (default), Cash, Check, PayPal, Direct debit or Other.
    • Payment date: “Leave empty for today.”
    • Transaction ID (optional): your provider’s or bank’s reference. “Recording the same ID twice is ignored.”
    • Notes (optional).
  3. Click Record payment. You see Payment recorded; the order status, Paid, Balance due and History update.
  1. Open an order that holds money and click Refund (Owner and Admin only).
  2. The Refund dialog shows “Refundable: …”. Fill in:
    • Refund the card through Stripe (only when the order has Stripe payments, on by default): “The money goes back to the buyer’s card; up to … was paid with Stripe.” Off, the dialog reminds you it “Only records the refund in the CRM: send the money back yourself.”
    • Payment: Newest payments first (default) or one specific payment, listed with its date, method and refundable amount. Choosing a payment sets the amount to that payment’s refundable amount. With the Stripe switch on, only Stripe payments are offered.
    • Amount: pre-filled with the refundable amount; at most the limit shown (“At most … can be refunded.”).
    • Reason (optional).
    • Transaction ID (optional; with the Stripe switch on it is set automatically).
  3. Click Refund (Refund on Stripe with the switch on). You see Refund recorded or Refunded on Stripe. The refund appears in the order’s Refunds card and History.
  1. Go to E-commerce › Payments.
  2. Filter by status (All statuses, Succeeded, Failed) and by payment date with From and To (whole days in your time zone).
  3. Click a payment to open its order.

Call POST /api/v2/t/<workspace>/orders/{id}/payments with an API key that has orders:write:

{
"amount_minor": 4900,
"method": "card",
"transaction_id": "ch_3PZ...",
"paid_at": "2026-10-18T09:30:00Z"
}

To record a declined charge, send "status": "failed" and an optional failure_reason. Always send your provider’s transaction id: retries of the same call are then harmless.

Column Content Notes
Payment date Date and time Sortable; newest first
Contact Contact name Sortable
Method Payment method Hidden on small screens
Status Succeeded, Failed or “… refunded”
Transaction ID Reference or — Wide screens only
Amount Amount in the order currency Sortable

The list loads 50 payments at a time (Load more). With no results it shows “No payments match these filters.” Refunds are listed on each order, not in this list.

Field Required Default Limits
Amount (amount_minor) Yes Balance due 1–100,000,000,000 minor units; ≤ balance for succeeded payments
Method (method) Yes Bank transfer in the app card, bank_transfer, cash, check, paypal, direct_debit, other
status No succeeded succeeded or failed (API only)
Payment date (paid_at) No Now ISO date-time
Transaction ID (transaction_id) No 1–255 characters, unique
failure_reason No Up to 500 characters, failed payments only
Notes (notes) No Up to 2,000 characters
Field Required Default Limits
Amount (amount_minor) No Whole refundable amount 1 up to the refundable amount
Payment (payment_id) No Newest payments first A succeeded payment of the order with something refundable
Reason (reason) No Up to 500 characters
Transaction ID (transaction_id) No 1–255 characters, unique
refunded_at No Now ISO date-time (API only)
stripe No false true also refunds the card through Stripe; the targeted payments must be Stripe payments (API only; the app uses the dialog switch)

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

Method and path Permission Purpose
GET /payments orders:read All payments, newest first (order_id, contact_id, status, from, to)
GET /payments/{id} orders:read Get a payment
GET /orders/{id}/payments orders:read Payments of an order
POST /orders/{id}/payments orders:write Record a payment
GET /refunds orders:read All refunds, newest first (order_id, contact_id)
GET /refunds/{id} orders:read Get a refund
GET /orders/{id}/refunds orders:read Refunds of an order
POST /orders/{id}/refunds orders:refund Record a refund; "stripe": true also refunds the card
Event When
payment.recorded A succeeded payment is recorded (renewal is true for subscription renewals)
payment.failed A failed payment is recorded
refund.recorded A refund is recorded (full is true when nothing refundable is left)
order.paid The order becomes fully paid
Action Permission Roles
View payments and refunds orders:read Owner, Admin, Marketer, Sales, Analyst, Viewer
Record payments orders:write Owner, Admin, Sales
Record refunds orders:refund Owner, Admin
Symptom Cause Fix
No Record payment button The order is a draft, cancelled, refunded or fully paid, or your role lacks orders:write Finalize the draft; check the status and your role
No Refund button Nothing left to refund, or your role lacks orders:refund Ask an Owner or Admin
“amount_minor: amount exceeds the open balance of …” The amount (in minor units) is more than the balance Record at most the balance due
“order … is already paid” The balance is zero Nothing to record
“order … is a draft; finalize it first” Payments need a finalized order Click Finalize first
“order … is cancelled” / “order … is refunded” These orders accept no payments Create a new order if needed
“transaction … is already recorded on another payment” The transaction ID is used by a different payment Check the reference; use the right order and amount
“order … has nothing to refund” Collected minus refunded is zero Nothing to refund
“amount_minor: amount exceeds the refundable …” The refund is larger than the limit Lower the amount or choose another payment
“payment_id: payment … has nothing refundable on this order” That payment is fully refunded, failed or belongs to another order Pick another payment
“this payment was not made with Stripe or has nothing left to refund” The picked payment has no pi_… transaction ID (recorded by hand) Turn the Stripe switch off and record the refund; return the money the way it arrived
“order … has nothing to refund on Stripe” Only hand-recorded payments hold money on this order Same as above
“Stripe refused the refund: …” Stripe rejected it (for example the charge is disputed or already refunded there) Check the payment in the Stripe dashboard
A refund made in Stripe does not appear The Stripe webhook is not configured Set the webhook in Settings › E-commerce
Revenue does not appear in analytics No site exists, or the sync has not run yet Create a site; wait up to 5 minutes
Revenue appears in the wrong session or none The contact had no linked visitor at payment time Send analytics_visitor_id when creating orders through the API