Skip to content

List Transactions (Datagrid)

GraphQL counterpart of GET /api/admin/transactions. Returns a cursor-paginated list of payment transactions — the same rows shown on the admin Sales → Transactions datagrid. Every transaction column plus the raw gateway data blob and the linked order summary are populated on each row.

Operation

adminTransactions(first, after, id, transaction_id, invoice_id, order_id, status, created_at_from, created_at_to, sort, order) — a cursor QueryCollection. Every REST query parameter is also exposed as a GraphQL argument; see the REST page for the full argument table.

Permission

sales.transactions.view

data and order are returned whole

data (the gateway payload) and order (the order summary) are returned as JSON — query them bare, without a sub-selection (data / order, not order { … }). The whole object comes back. See the field reference below for the keys inside each.

Fields

Every field is populated on each row — the transaction columns, the resolved paymentTitle, the raw gateway data object, and the order summary.

FieldTypeDescription
idIDResource IRI of the transaction (/api/admin/transactions/{id}).
_idIntTransaction row id.
transactionIdStringGateway transaction id.
invoiceIdIntThe invoice this transaction paid (if any).
orderId / orderIncrementIdInt / StringParent order id and human-facing number.
amount / formattedAmountFloat / StringTransaction amount, raw and formatted.
statusStringTransaction status — e.g. paid, pending.
typeStringTransaction type — e.g. capture.
paymentMethod / paymentTitleStringPayment method code and its human-readable title.
dataJSONThe verbatim gateway response payload — query bare; shape varies by gateway; may be null.
createdAt / updatedAtStringTimestamps.
orderJSONSlim order summary (query bare) — id, incrementId, status, customerName, customerEmail, grandTotal, orderCurrencyCode.

Released under the MIT License.