Transaction Search with Debit NetworkAnchorIcon

Transactions can be retrieved using either the transaction ID or the network used for Least Cost Routing during the transaction.

SDKsAnchorIcon

  1. Java
Transaction transaction = result.getTarget();
transaction.getId();
transaction.getStatus();
// ...
transaction.getDebitNetwork();
  1. Ruby
collection = gateway.transaction.search do |search|
  search.debit_network.is "STAR"
end

collection.each do |transaction|
  puts transaction.amount
end
  1. Node.js
result.transaction.id;
result.transaction.status;
// ...
result.transaction.debit_network;
  1. Python
result.transaction.id
result.transaction.status
// ...
result.transaction.debit_network

Transaction Search with Debit NetworkAnchorIcon

Transactions can be retrieved using either the transaction ID or the network used for optimized debit routing during the transaction.
  1. Query
query Search($input: TransactionSearchInput!) {
  search {
    transactions(input: $input) {
      pageInfo {
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
      }
      edges {
        node {
          id
          createdAt
          paymentInitiatedAt
          status
          source
          debitNetwork
          amount {
            value
            currencyIsoCode
            currencyCode
          }
          merchantAccountId
          orderId
          customer {
            id
          }
          disbursementDetails {
            date
            amount {
              value
              currencyIsoCode
              currencyCode
            }
            exchangeRate
            fundsHeld
          }
          riskData {
            id
            decision
            deviceDataCaptured
            fraudServiceProvider
          }
          facilitatorDetails {
            oauthApplication {
              clientId
              name
            }
          }
          statusHistory {
            __typename
            status
            timestamp
            source
            terminal
            amount {
              value
              currencyIsoCode
              currencyCode
            }
            ... on AuthorizedEvent {
              processorResponse {
                legacyCode
                message
                cvvResponse
                avsPostalCodeResponse
                avsStreetAddressResponse
                authorizationId
              }
              networkResponse {
                code
                message
              }
              riskDecision
            }
            ... on GatewayRejectedEvent {
              gatewayRejectionReason
              processorResponse {
                cvvResponse
                avsPostalCodeResponse
                avsStreetAddressResponse
                authorizationId
              }
              networkResponse {
                code
                message
              }
              riskDecision
            }
            ... on ProcessorDeclinedEvent {
              declineType
              processorResponse {
                legacyCode
                message
                cvvResponse
                avsPostalCodeResponse
                avsStreetAddressResponse
                authorizationId
              }
              networkResponse {
                code
                message
              }
            }
            ... on FailedEvent {
              processorResponse {
                legacyCode
                message
                cvvResponse
                avsPostalCodeResponse
                avsStreetAddressResponse
                authorizationId
              }
              networkResponse {
                code
                message
              }
              riskDecision
            }
            ... on SettlementDeclinedEvent {
              processorResponse {
                legacyCode
                message
              }
            }
            ... on SettlementPendingEvent {
              processorResponse {
                legacyCode
                message
              }
            }
          }
          paymentMethodSnapshot {
            __typename
            ... on CreditCardDetails {
              brand
              brandCode
              last4
              expirationMonth
              expirationYear
              bin
              binData {
                prepaid
                healthcare
                debit
                durbinRegulated
                commercial
                payroll
                issuingBank
                countryOfIssuance
                productId
              }
              uniqueNumberIdentifier
              cardholderName
            }
          }
          customFields {
            name
            value
          }
          processorResponse {
            legacyCode
            message
            avsPostalCodeResponse
            avsStreetAddressResponse
            cvvResponse
          }
        }
      }
    }
  }
}
  1. Variables
"input": {
  "debitNetwork": {
    "is": "STAR"
  },
  "createdAt": {
    "greaterThanOrEqualTo": "2022-03-20T11:52:26+00:00",
    "lessThanOrEqualTo": "2022-03-30T11:52:26+00:00"
  }
}