Skip to content

Transactions

At the center of Flute's payments model is the transaction. A transaction is a record created every time money moves through a merchant's account.

A transaction is created with a single call:
POST /v2/transactions

Every transaction carries the same core shape regardless of payment type:

  • paymentProcessorId specifies the processor handling the transaction.
  • baseAmount and currencyCode specify the transaction amount.
  • referenceId specifies a value the merchant chooses for their own bookkeeping.
  • transactionDetails specifies an object holding either the cardData or achData depending on how the customer is paying.

Each transaction goes through the same endpoint. It comes back with the same response envelope, just populated with different processorResponse details. This includes whether someone is charging a saved card, running a brand-new card number inline, or debiting a bank account through ACH.

Card transactions carry an extra decision point that ACH doesn't: captureMethod. This is set to either Auto or Manual.

  • Auto capture means the authorization and the capture happen in one step, and the transaction lands in an Approved state immediately, ready to settle.
  • Manual capture splits it into two steps: the initial call only authorizes the funds and returns a Pending transaction, and a separate call to POST /v2/transactions/{transactionId}/capture later finalizes it.

This distinction matters most for merchants who need to confirm inventory or finalize an order total. For example, a restaurant might close a tab with tips added before actually pulling the money. It's why the API treats "money authorized" and "money captured" as two different states rather than collapsing them into one.

Once a transaction is captured or approved, several other endpoints act on it rather than creating a new one.

Every transaction also comes back with a rich amountDetails and processorResponse breakdown rather than just a status code.

  • amountDetails separates baseAmount from tipAmount, tipRate, surchargeAmount, and discountAmount. A merchant can see exactly how a processedAmount was assembled instead of just the final total.
  • processorResponse reports which underlying processor ran the transaction, TSYS, for instance, on the card examples in the spec, or a plain ACH label for bank debits, along with a response code and a human-readable message. For card transactions there's also an addressVerificationServiceResponse, showing whether the billing address and the postal or ZIP code the customer supplied matched what the card issuer has on file. This is one of the signals merchants use to judge fraud risk on a given charge.

The following is an example of a basic transaction. A merchant charges $100 on a saved card with auto-capture, and the customer adds a $15 tip at checkout.

{
    "paymentProcessorId": "a2f2c2e7-0b23-4682-8f99-ab7707205461",
    "baseAmount": 100.00,
    "currencyCode": "USD",
    "referenceId": "REF-CARD-SALE-001",
    "isCustomerInitiatedTransaction": true,
    "pricingType": "Card",
    "transactionDetails": {
        "cardData": {
            "captureMethod": "Auto",
            "paymentMethodId": "e397e367-bc4a-4b69-bd78-32e3e12327c2"
        }
    }
}

Because the captureMethod is Auto, Flute authorizes and captures the charge in the same call. The response comes back already settled from the API's perspective:

Response

{
    "transactionId": "5f6f782f-37af-44e1-bb18-2bc35e411899",
    "transactionStatus": "Approved",
    "processedAmount": 115.5,
    "currencyCode": "USD",
    "amountDetails":
    {
        "baseAmount": 100.00,
        "tipAmount": 15,
        "surchargeAmount": 3,
        "discountAmount": 2.5
    },
    "processorResponse":
    {
        "processorName": "TSYS",
        "responseCode": "00",
        "responseMessage": "Approved",
        "responseDefinition": "Approved and completed"
    },
    "addressVerificationServiceResponse":
    {
        "action": "Allow",
        "responseCode": "Y",
        "description": "Address and ZIP match"
    }
}

The processedAmount ($115.50) reflects the base charge plus the tip and a surcharge, minus a discount. This is exactly as itemized in amountDetails.

The transaction is done. There is no separate capture call needed. This merchant chose the auto-capture path rather than the authorize-then-capture flow used for something like a restaurant tab.

Lists transactions

Request

GET {{baseURL}}/v2/transactions

This endpoint returns a paginated list of settlement batches for the authenticated merchant. It supports filtering by batch status, date range, specific batch identifiers, and payment processor type.

Items returned here present a limited amount of details. These are intended to be a brief summary of the transactions. For complete details of a specific transaction, see GET /v2/transactions/{transactionId}.

This endpoint requires a merchant API token. A partner API token will result in a permissions error including possibly a 403 response.

See Also:
To retrieve a transaction by ID, see GET /v2/transactions/{transactionId}.
To create a transaction, see POST /v2/transactions.
To capture a transaction, see POST /v2/transactions/{transactionId}/capture.

Security
Bearer
Query
pageIndexinteger, (int32), [ 0 .. 100000 ]

Specifies the page number of the returned search results.

A page is considered each set of the pageSize values.

The page count is zero-based. The maximum for pageIndex, or the page number, is the pageSize divided by the total count rounded down. For example, the pageSize is 50 and the total is 130. That means there are three pages, but the pageIndex value is in the inclusive range from zero to two.

Value restrictions include:

  • A value less than zero is not permitted.
  • Values equal to or greater than totalPages end successfully but will not return any items.

For page size information, see pageSize.

Example: 0

Default:0
pageSizeinteger, (int32), [ 1 .. 100 ]

Specifies the number of items for each page of the returned search results.

A page is considered each set of the pageSize values.

The page count is zero-based. The maximum for pageIndex, or the page number, is the pageSize divided by the total count rounded down. For example, the pageSize is 50 and the total is 130. That means there are three pages, but the pageIndex value is in the inclusive range from zero to two.

For page numbering information, see pageIndex.

Example: 50

Default:20
sortBystring, <= 19 characters

Specifies a field name to sort the results by.

If null or omitted, results come back newest first.

The sort order is specified by the sortOrder value.

Valid values are:
cardTokenType
customerCompanyName
customerName
maskedCardNumber
merchantCompanyName
paymentMethodType
processedAmount
transactionDateTime
transactionId
transactionStatus

Example: transactionDateTime

Example:sortBy=transactionDateTime
sortOrderstring, <= 4 characters

Specifies the sort order.

The sort order is specified by the sortOrder value.
The field that gets sorted by is specified by the sortBy value.

Valid values are:

ValueDescription
ascSorts results in ascending order, from the lowest value to the highest, or from the oldest timestamp to the most recent.
descSorts results in descending order, from the highest value to the lowest, or from the most recent timestamp to the oldest.
Default:"desc"
Example:sortOrder=desc
fromDatestring, (ISO 8601 date-time)

Specifies a filter to return items at or after this date-time (in an ISO 8601 date-time format).

If only fromDate is specified, the search returns all available items from the fromDate value to the present. The fields fromDate and toDate may be used together to create an inclusive range. We recommend creating an inclusive range to avoid a potentially excessive number of returns.

Example: 2025-01-27T12:05:54.322Z

Example:fromDate=2025-01-27T12:05:54.322Z
toDatestring, (ISO 8601 date-time)

Specifies a filter to return items at or before this date-time (in an ISO 8601 date-time format).

If only toDate is specified, the search returns all available items up to the toDate value. The fields fromDate and toDate may be used together to create an inclusive range. We recommend creating an inclusive range to avoid a potentially excessive number of returns.

Example: 2026-02-27T12:05:54.322Z

Example:toDate=2026-02-27T12:05:54.322Z
sourceTypestring

Specifies a filter by the transaction source.

Valid values are:

ValueDescription
ApiKeyAn external application created the transaction using an API key.
InvoiceA billed invoice created the transaction.
MobileAppA mobile application created the transaction.
PortalA staff member created the transaction through the web portal.
QuickPaymentA one-time payment link created the transaction.
SubscriptionA recurring subscription created the transaction.
TapToPayA mobile device using tap to pay created the transaction.
TerminalA physical payment terminal created the transaction.
WebComponentAn embedded web component created the transaction.

Example: ApiKey

Enum:"ApiKey""Invoice""MobileApp""Portal""QuickPayment""Subscription""TapToPay""Terminal""WebComponent"
Example:sourceType=ApiKey
sourceIdstring, (UUID)

Specifies a filter by the source identifier.

Example: 81915d04-1f2a-4b3c-4d5e-6f7a8b9c0d36

Example:sourceId=81915d04-1f2a-4b3c-4d5e-6f7a8b9c0d36
batchIdstring, (UUID)

Specifies a filter by the settlement batch identifier.

Use null to return transactions not yet settled into a batch.
Omit this value to not filter by batch identifier.

Example: 0b7aa955-6b52-4dcb-b0d8-7c3d82f27b62

Example:batchId=0b7aa955-6b52-4dcb-b0d8-7c3d82f27b62
transactionStatusstring

Specifies a filter by the aggregated transaction status.

Valid values are:

StatusDescriptionType
AuthorizedPayment approved but funds not yet captured.Card
CancelledTransaction stopped before it completed.ACH
CapturedApproved funds collected from the card.Card
ChargedBackCardholder disputed the charge with their bank.ACH
ClearedFunds finished processing and settled.ACH
DeclinedPayment rejected by the bank or processor.Card/ACH
FailedTransaction could not complete due to an error.Card/ACH
HeldTransaction paused and awaiting release.ACH
HeldByProcessorProcessor paused the transaction for review.ACH
InformationalRecord used for reference only, not a live charge.Card
InProgressTransaction is still processing.ACH
PartiallyAuthorizedOnly part of the requested amount was approved.Card
PendingTransaction is waiting for a result.Card/ACH
RefundedFunds returned to the cardholder.Card
ScheduledTransaction set to run at a future time.ACH
SettledFunds moved from issuer to the merchant account.Card
VerifiedCard or account confirmed as valid.Card
VoidedAuthorization canceled before capture.Card

Example: Authorized

Enum:"Authorized""Cancelled""Captured""ChargedBack""Cleared""Declined""Failed""Held""HeldByProcessor""Informational""InProgress""PartiallyAuthorized""Pending""Refunded""Scheduled""Settled""Verified""Voided"
Example:transactionStatus=Authorized
paymentMethodTypestring

Specifies a filter by the payment method type.

Valid values are:

TypeDescription
ACHPayment made through an ACH (automated clearing house) bank transfer.
CardPayment made with a credit or debit card.
CashPayment made with physical currency.

Example: Card

Enum:"ACH""Card""Cash"
Example:paymentMethodType=Card
customerIdstring, (UUID)

Specifies a filter by the customer identifier.

Example: 8fa8e727-73c6-436e-b56f-6f55aabf3b1c

Example:customerId=8fa8e727-73c6-436e-b56f-6f55aabf3b1c
minAmountnumber, (double), decimal places <= 2

Specifies a filter by the minimum transaction amount to include in the results.

Only transactions with this amount or more are returned.

If only minAmount is specified, the search returns all transactions with at least this amount. The fields minAmount and maxAmount may be used together to create an inclusive range. We recommend creating an inclusive range to avoid a potentially excessive number of returns.

Example: 200.00

Example:minAmount=200
maxAmountnumber, (double), decimal places <= 2

Specifies a filter by the maximum transaction amount to include in the results.

Only transactions with this amount or less are returned.

If only maxAmount is specified, the search returns all transactions with no more than this amount. The fields minAmount and maxAmount may be used together to create an inclusive range. We recommend creating an inclusive range to avoid a potentially excessive number of returns.

Example: 500.00

Example:maxAmount=500
referenceIdstring or null, <= 36 characters

Specifies a filter by the reference identifier provided by the merchant.

A referenceId is a duplicate-check key. It allows the same card and amount combination to be charged multiple times when the reference identifiers are different.

Example: REF-EXT-12345

Example:referenceId=REF-EXT-12345
// Language is not supported.

Responses

OK

Bodyapplication/json
itemsArray of objects or null
pageInfoobject

Indicates an object describing the pagination status.

If additional pages to review are needed, repeat the exact same search but include a new pageIndex value. Typically, this will increment the current pageIndex by one. However, any valid value may be used. Value restrictions include:

  • A value less than zero is not permitted.
  • Values equal to or greater than totalPages end successfully but will not return any items.
Response
{ "items": [ { "transactionId": "3a2257af-e059-4718-b1c6-ee60bd83816e", "transactionDateTime": "2025-06-15T14:30:56.264Z", "transactionStatus": "Captured", "paymentMethodType": "Card", "referenceId": "REF-001", "processedAmount": 115.5, "currencyCode": "USD", "amountBreakdown": { "baseAmount": 99.99, "tipAmount": 10, "tipRate": 0, "surchargeAmount": 5.5, "discountAmount": 0, "discountRate": 0 }, "cardDetails": { "maskedCardNumber": "411111******1111", "cardBrand": "Visa", "cardType": "Credit" }, "achDetails": null }, { "transactionId": "53c558a4-b01a-4a43-a8c1-1c9820250958", "transactionDateTime": "2025-06-15T10:00:56.264Z", "transactionStatus": "Captured", "paymentMethodType": "ACH", "referenceId": "REF-002", "processedAmount": 200, "currencyCode": "USD", "amountBreakdown": { "baseAmount": 200, "tipAmount": 0, "tipRate": 5.5, "surchargeAmount": 0, "discountAmount": 0, "discountRate": 0 }, "cardDetails": null, "achDetails": { "maskedAccountNumber": "****6789", "accountRoutingNumber": "****0001", "accountHolderType": "Personal", "accountType": "Checking", "secCode": "Web" } } ], "pageInfo": { "pageIndex": 0, "pageSize": 20, "totalItems": 150, "totalPages": 8, "hasMore": true } }