Transactions
A transaction is one movement of money on an order: a customer payment in, a payout to you, a clawback, a fee. Use transactions to reconcile against your bank, and orderTransactions to see one order's complete history.
transactionsQuery
List your transactions across every order: payments, payouts, clawbacks and fees. Cursor-paginated and filterable by order, direction, status, method, sub-type, amount and cleared date. Amounts are in USD.
This is the ledger view. To reconcile a bank statement, filter types to PAYOUT and a clearedAt range; to audit what a customer has paid, filter orderIds and types to PAYMENT. The subType is the fine print: PAYMENT, DOWN_PAYMENT, PAYOUT, CHARGEBACK, REFUND, CLAWBACK or OTHER.
Money going back keeps its type and turns negative. A refund or a chargeback is a PAYMENT with a negative amount, and a clawback is a PAYOUT with a negative amount: subType tells them apart.
POST/graphql
transactions(input: TransactionsInput): TransactionConnection!
Arguments
| Name | Type | Description |
|---|---|---|
input.first | Int | Page size, 1–100. Defaults to 25. |
input.after | String | The endCursor from the previous page. Omit it for the first page. |
input.orderIds | [ID!] | Only transactions on these orders. |
input.types | [TransactionType!] | PAYMENT (money from your customer) or PAYOUT (money to you). |
input.statuses | [TransactionStatus!] | PENDING, CLEARED or FAILED. Omit for all. |
input.methods | [TransactionMethod!] | ACH or CARD. Omit for both. |
input.subTypes | [TransactionSubType!] | The fine-grained types, such as PAYMENT, DOWN_PAYMENT, PAYOUT, CHARGEBACK and REFUND. Values below. |
input.amountMin | Float | Amount at least this, in USD. |
input.amountMax | Float | Amount at most this, in USD. |
input.clearedAtFrom | String | Cleared on or after this calendar date, YYYY-MM-DD or YYYYMMDD. A time part is ignored. |
input.clearedAtTo | String | Cleared on or before this calendar date, YYYY-MM-DD or YYYYMMDD, including that whole day. A time part is ignored. |
input.sortBy | TransactionSortField | CREATED_AT, CLEARED_AT or AMOUNT. Defaults to CREATED_AT. |
input.sortDesc | Boolean | Descending when true. Defaults to true. |
Returns
| Field | Type | Description |
|---|---|---|
totalCount | Int! | How many transactions match your filter, across every page. |
pageInfo | PageInfo! | hasNextPage tells you whether to keep going; endCursor is what you pass as after. |
edges[].node | Transaction | One Transaction per edge, with its cursor beside it. The Transaction fields follow. |
Each Transaction node
| Field | Type | Description |
|---|---|---|
transactionId | ID! | The transaction id, a UUID. |
orderId | ID | The order this transaction belongs to. Null until the order is assigned an order ID. |
amount | Float! | The amount, in USD. Negative when money goes back: a refund, a chargeback or a clawback. |
type | TransactionType! | PAYMENT (your customer paid), PAYOUT (Payva paid you), or INVALID for an invalid stored type. |
status | TransactionStatus! | PENDING, CLEARED or FAILED. |
method | TransactionMethod! | ACH or CARD. |
subType | TransactionSubType | The fine-grained type, such as PAYMENT, DOWN_PAYMENT, PAYOUT, CHARGEBACK or REFUND. Values below. |
processedAt | String | When it was processed, YYYY-MM-DD. |
clearedAt | String | When it cleared, YYYY-MM-DD. Null until it does. |
Example
query Transactions($input: TransactionsInput) {
transactions(input: $input) {
totalCount
edges { node { transactionId orderId amount type status method subType processedAt clearedAt } }
}
}{
"input": {
"first": 3,
"types": [
"PAYMENT"
],
"statuses": [
"CLEARED"
],
"sortBy": "CLEARED_AT",
"sortDesc": true
}
}{
"data": {
"transactions": {
"totalCount": 526,
"edges": [
{
"node": {
"transactionId": "6d0b5e3a-0000-4000-8000-000000004471",
"orderId": "100235",
"amount": 900,
"type": "PAYMENT",
"status": "CLEARED",
"method": "ACH",
"subType": "PAYMENT",
"processedAt": "2026-07-14",
"clearedAt": "2026-07-14"
}
},
{
"node": {
"transactionId": "6d0b5e3a-0000-4000-8000-000000004472",
"orderId": "100219",
"amount": -450,
"type": "PAYMENT",
"status": "CLEARED",
"method": "CARD",
"subType": "REFUND",
"processedAt": "2026-07-13",
"clearedAt": "2026-07-14"
}
}
]
}
}
}orderTransactionsQuery
Every transaction on one order, with the same fields and filters as transactions. Pass the orderId and page through the order's complete history.
The one place to read an order's money history. Page through all of it, or filter it by type, status or date.
POST/graphql
orderTransactions(input: TransactionsInput, orderId: ID!): TransactionConnection!
Arguments
| Name | Type | Description |
|---|---|---|
orderId | ID!required | The order whose transactions you want. |
input.first | Int | Page size, 1–100. Defaults to 25. |
input.after | String | The endCursor from the previous page. Omit it for the first page. |
input.orderIds | [ID!] | Ignored here: the orderId argument already scopes the list. |
input.types | [TransactionType!] | PAYMENT (your customer paid), PAYOUT (Payva paid you), or INVALID for an invalid stored type. |
input.statuses | [TransactionStatus!] | PENDING, CLEARED or FAILED. |
input.methods | [TransactionMethod!] | ACH or CARD. |
input.subTypes | [TransactionSubType!] | The fine-grained types. |
input.amountMin | Float | Amount at least this, in USD. |
input.amountMax | Float | Amount at most this, in USD. |
input.clearedAtFrom | String | Cleared on or after this calendar date, YYYY-MM-DD or YYYYMMDD. A time part is ignored. |
input.clearedAtTo | String | Cleared on or before this calendar date, YYYY-MM-DD or YYYYMMDD, including that whole day. A time part is ignored. |
input.sortBy | TransactionSortField | CREATED_AT, CLEARED_AT or AMOUNT. Defaults to CREATED_AT. |
input.sortDesc | Boolean | Descending when true. Defaults to true. |
Returns
| Field | Type | Description |
|---|---|---|
totalCount | Int! | How many transactions on this order match your filter, across every page. |
pageInfo | PageInfo! | hasNextPage tells you whether to keep going; endCursor is what you pass as after. |
edges[].node | Transaction | One Transaction per edge, with its cursor beside it. The Transaction fields follow. |
Each Transaction node
| Field | Type | Description |
|---|---|---|
transactionId | ID! | The transaction id, a UUID. |
orderId | ID | The order you asked for. |
amount | Float! | The amount, in USD. Negative when money goes back: a refund, a chargeback or a clawback. |
type | TransactionType! | PAYMENT (your customer paid), PAYOUT (Payva paid you), or INVALID for an invalid stored type. |
status | TransactionStatus! | PENDING, CLEARED or FAILED. |
method | TransactionMethod! | ACH or CARD. |
subType | TransactionSubType | The fine-grained type, such as PAYMENT, DOWN_PAYMENT, CHARGEBACK or REFUND. |
processedAt | String | When it was processed, YYYY-MM-DD. |
clearedAt | String | When it cleared, YYYY-MM-DD. Null until it does. |
Example
query OrderTransactions($orderId: ID!, $input: TransactionsInput) {
orderTransactions(orderId: $orderId, input: $input) {
totalCount
edges { node { transactionId amount type status method clearedAt } }
}
}{
"orderId": "100235",
"input": {
"first": 5,
"sortDesc": true
}
}{
"data": {
"orderTransactions": {
"totalCount": 11,
"edges": [
{
"node": {
"transactionId": "6d0b5e3a-0000-4000-8000-000000004471",
"amount": 900,
"type": "PAYMENT",
"status": "CLEARED",
"method": "ACH",
"clearedAt": "2026-07-14"
}
}
]
}
}
}Types
TransactionTypeEnum
| Value | Meaning |
|---|---|
INVALID | An invalid stored type. |
PAYMENT | Money from your customer. Negative for a refund or a chargeback. |
PAYOUT | Money paid to you or the originating platform. Negative for a clawback. |
TransactionStatusEnum
| Value | Meaning |
|---|---|
PENDING | Submitted, not yet settled. |
CLEARED | Settled. The money has moved. |
FAILED | Rejected, returned or stopped. It will not settle. |
TransactionSortFieldEnum
| Value | Meaning |
|---|---|
CREATED_AT | When the transaction was created. |
CLEARED_AT | When it cleared. |
AMOUNT | The amount. |
TransactionSubTypeEnum
The fine-grained type of a transaction. Payva's internal accounting entries all fold into OTHER, so the set stays short and stable.
| Value | Meaning |
|---|---|
PAYMENT | A customer payment on the order. |
DOWN_PAYMENT | The down payment, paid by the customer at checkout. |
PAYOUT | A payout on the order, made directly to you or via the originating platform. |
REFUND | Money returned to the customer. Arrives as a PAYMENT with a negative amount. |
CHARGEBACK | The customer's bank reversed a payment. Arrives as a PAYMENT with a negative amount. |
CLAWBACK | Money taken back after the order was paid out. Arrives as a PAYOUT with a negative amount. |
OTHER | Internal accounting detail, such as fees, tax, reserves and corrections. Do not build logic on it. |