Transactionstransactions
HelpStatusOpen portal

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

NameTypeDescription
input.firstIntPage size, 1–100. Defaults to 25.
input.afterStringThe 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.amountMinFloatAmount at least this, in USD.
input.amountMaxFloatAmount at most this, in USD.
input.clearedAtFromStringCleared on or after this calendar date, YYYY-MM-DD or YYYYMMDD. A time part is ignored.
input.clearedAtToStringCleared on or before this calendar date, YYYY-MM-DD or YYYYMMDD, including that whole day. A time part is ignored.
input.sortByTransactionSortFieldCREATED_AT, CLEARED_AT or AMOUNT. Defaults to CREATED_AT.
input.sortDescBooleanDescending when true. Defaults to true.

Returns

FieldTypeDescription
totalCountInt!How many transactions match your filter, across every page.
pageInfoPageInfo!hasNextPage tells you whether to keep going; endCursor is what you pass as after.
edges[].nodeTransactionOne Transaction per edge, with its cursor beside it. The Transaction fields follow.

Each Transaction node

FieldTypeDescription
transactionIdID!The transaction id, a UUID.
orderIdIDThe order this transaction belongs to. Null until the order is assigned an order ID.
amountFloat!The amount, in USD. Negative when money goes back: a refund, a chargeback or a clawback.
typeTransactionType!PAYMENT (your customer paid), PAYOUT (Payva paid you), or INVALID for an invalid stored type.
statusTransactionStatus!PENDING, CLEARED or FAILED.
methodTransactionMethod!ACH or CARD.
subTypeTransactionSubTypeThe fine-grained type, such as PAYMENT, DOWN_PAYMENT, PAYOUT, CHARGEBACK or REFUND. Values below.
processedAtStringWhen it was processed, YYYY-MM-DD.
clearedAtStringWhen 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 } }
  }
}
Variables
{
  "input": {
    "first": 3,
    "types": [
      "PAYMENT"
    ],
    "statuses": [
      "CLEARED"
    ],
    "sortBy": "CLEARED_AT",
    "sortDesc": true
  }
}
Response
{
  "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

NameTypeDescription
orderIdID!requiredThe order whose transactions you want.
input.firstIntPage size, 1–100. Defaults to 25.
input.afterStringThe 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.amountMinFloatAmount at least this, in USD.
input.amountMaxFloatAmount at most this, in USD.
input.clearedAtFromStringCleared on or after this calendar date, YYYY-MM-DD or YYYYMMDD. A time part is ignored.
input.clearedAtToStringCleared on or before this calendar date, YYYY-MM-DD or YYYYMMDD, including that whole day. A time part is ignored.
input.sortByTransactionSortFieldCREATED_AT, CLEARED_AT or AMOUNT. Defaults to CREATED_AT.
input.sortDescBooleanDescending when true. Defaults to true.

Returns

FieldTypeDescription
totalCountInt!How many transactions on this order match your filter, across every page.
pageInfoPageInfo!hasNextPage tells you whether to keep going; endCursor is what you pass as after.
edges[].nodeTransactionOne Transaction per edge, with its cursor beside it. The Transaction fields follow.

Each Transaction node

FieldTypeDescription
transactionIdID!The transaction id, a UUID.
orderIdIDThe order you asked for.
amountFloat!The amount, in USD. Negative when money goes back: a refund, a chargeback or a clawback.
typeTransactionType!PAYMENT (your customer paid), PAYOUT (Payva paid you), or INVALID for an invalid stored type.
statusTransactionStatus!PENDING, CLEARED or FAILED.
methodTransactionMethod!ACH or CARD.
subTypeTransactionSubTypeThe fine-grained type, such as PAYMENT, DOWN_PAYMENT, CHARGEBACK or REFUND.
processedAtStringWhen it was processed, YYYY-MM-DD.
clearedAtStringWhen 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 } }
  }
}
Variables
{
  "orderId": "100235",
  "input": {
    "first": 5,
    "sortDesc": true
  }
}
Response
{
  "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

ValueMeaning
INVALIDAn invalid stored type.
PAYMENTMoney from your customer. Negative for a refund or a chargeback.
PAYOUTMoney paid to you or the originating platform. Negative for a clawback.

TransactionStatusEnum

ValueMeaning
PENDINGSubmitted, not yet settled.
CLEAREDSettled. The money has moved.
FAILEDRejected, returned or stopped. It will not settle.

TransactionMethodEnum

ValueMeaning
ACHA bank transfer.
CARDA debit or credit card payment.

TransactionSortFieldEnum

ValueMeaning
CREATED_ATWhen the transaction was created.
CLEARED_ATWhen it cleared.
AMOUNTThe 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.

ValueMeaning
PAYMENTA customer payment on the order.
DOWN_PAYMENTThe down payment, paid by the customer at checkout.
PAYOUTA payout on the order, made directly to you or via the originating platform.
REFUNDMoney returned to the customer. Arrives as a PAYMENT with a negative amount.
CHARGEBACKThe customer's bank reversed a payment. Arrives as a PAYMENT with a negative amount.
CLAWBACKMoney taken back after the order was paid out. Arrives as a PAYOUT with a negative amount.
OTHERInternal accounting detail, such as fees, tax, reserves and corrections. Do not build logic on it.