Skip to main content
query PaymentTransaction($id: UUID!) {
  paymentTransaction(id: $id) {
    acceptor {
      allocations {

      }
      authorizationSummaries {

      }
      billingDescriptor {
        city
        name
        serviceFeeName
        state
      }
      businessName
      fees {

      }
      feeSummaries {

      }
      fundingAchReturns {

      }
      fundingDisputeEvents {

      }
      fundingSummaries {

      }
      fundingTransactions {

      }
      id
      name
      paymentTransactions {
        items
      }
      paymentTransactionSummaries {

      }
      reference
    }
    activityDate
    amountDetails {
      cashBack
      convenienceFee
      discount
      duty
      gratuity
      serviceFee
      shipping
      subTotal
      surcharge
    }
    billingDescriptor
    businessApplicationId
    fees {
      items {
        billableEventAmount
        calculatedAmount
        currency
        name
        rateMultiplier
        rateUnitAmount
        type
      }
      summary {
        interchangeAmount
        networkAmount
        partnerAmount
        processorAmount
        totalAmount
      }
    }
    id
    lineItems {
      commodityCode
      description
      discountAmount
      lineItemAmount
      productCode
      productSku
      taxDetails {
        localAmount
        nationalAmount
        totalAmount
      }
      unitOfMeasure
      unitPrice
      unitQuantity
    }
    location {
      id
      outlet {
        id
      }
    }
    merchantCategory
    organization {
      acceptorApplicationCounts {
        acceptorApplicationStatus
        total
      }
      acceptors {

      }
      achNotificationsOfChange {

      }
      achReturns {

      }
      allocations {

      }
      allowedMerchantCategories {
        code
      }
      authorizationSummaries {

      }
      businessAddress {
        address1
        address2
        address3
        city
        countryCode
        postalCode
        state
      }
      businessName
      capabilities
      fees {

      }
      feeSummaries {

      }
      fundingAchReturns {

      }
      fundingDisbursementReturns {

      }
      fundingDisputeEvents {

      }
      fundingSummaries {

      }
      fundingTransactions {

      }
      id
      legalName
      name
      paymentTransactions {
        items
      }
      paymentTransactionSummaries {

      }
      phoneNumber
      reportAvailability {
        availabilityEndDate
        availabilityStartDate
        dateType
      }
      settings {

      }
    }
    paymentId
    paymentMethod {
      acquirerToken
      brand
      type
    }
    processingNetwork
    processorResponseCode
    processorResponseMessage
    reference
    responseType
    resultLabel
    taxes {
      localAmount
      nationalAmount
      totalAmount
    }
    taxIdentificationNumber
    transactionDateTime
    transactionType

}
}

{
  "data": {
    "paymentTransaction": {
      "acceptor": {
        "allocations": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "authorizationSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "billingDescriptor": {
          "city": "example",
          "name": "Ben Torres",
          "serviceFeeName": "example",
          "state": "example"
        },
        "businessName": "Clacksworth Keyboards",
        "fees": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "feeSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingAchReturns": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingDisputeEvents": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingTransactions": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
        "name": "Ben Torres",
        "paymentTransactions": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "paymentTransactionSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "reference": "example"
      },
      "activityDate": "2026-01-15",
      "amountDetails": {
        "cashBack": 0,
        "convenienceFee": 0,
        "discount": 0,
        "duty": 0,
        "gratuity": 0,
        "serviceFee": 0,
        "shipping": 0,
        "subTotal": 0,
        "surcharge": 0
      },
      "billingDescriptor": "CLACKSWORTH KEYBOARDS",
      "businessApplicationId": "CB",
      "fees": {
        "items": [
          {
            "billableEventAmount": 0,
            "calculatedAmount": 0,
            "currency": "example",
            "name": "Ben Torres",
            "rateMultiplier": 0,
            "rateUnitAmount": 0,
            "type": "SETTLEMENT"
          }
        ],
        "summary": {
          "interchangeAmount": 0,
          "networkAmount": 0,
          "partnerAmount": 0,
          "processorAmount": 0,
          "totalAmount": 0
        }
      },
      "id": "c9a1e2d3-4b5f-6789-0abc-def123456789",
      "lineItems": [
        {
          "commodityCode": "example",
          "description": "example",
          "discountAmount": 0,
          "lineItemAmount": 0,
          "productCode": "example",
          "productSku": "example",
          "taxDetails": {
            "localAmount": 0,
            "nationalAmount": 0,
            "totalAmount": 0
          },
          "unitOfMeasure": "example",
          "unitPrice": 0,
          "unitQuantity": 0
        }
      ],
      "location": {
        "id": "d8b2f3e4-5c6a-7890-1bcd-ef2345678901",
        "outlet": {
          "id": "e7c3a4b5-6d7e-8901-2cde-f34567890123",
          "pointOfInteraction": "example"
        }
      },
      "merchantCategory": "example",
      "organization": {
        "acceptorApplicationCounts": [
          {
            "acceptorApplicationStatus": "APPROVED",
            "total": 0
          }
        ],
        "acceptors": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "achNotificationsOfChange": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "achReturns": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "allocations": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "allowedMerchantCategories": [
          {
            "code": "example"
          }
        ],
        "authorizationSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "businessAddress": {
          "address1": "example",
          "address2": "example",
          "address3": "example",
          "city": "example",
          "countryCode": "AFG",
          "postalCode": "example",
          "state": "example"
        },
        "businessName": "Clacksworth Keyboards",
        "capabilities": [
          "ACQUIRING"
        ],
        "fees": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "feeSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingAchReturns": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingDisbursementReturns": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingDisputeEvents": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingTransactions": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "id": "b6d4e5f6-7a8b-9012-3def-456789012345",
        "legalName": "example",
        "name": "Ben Torres",
        "paymentTransactions": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "paymentTransactionSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "phoneNumber": "example",
        "reportAvailability": [
          {
            "availabilityEndDate": "2026-01-15",
            "availabilityStartDate": "2026-01-15",
            "dateType": "ACTIVITY_DATE"
          }
        ],
        "settings": {
          "access": "example"
        }
      },
      "paymentId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "paymentMethod": {
        "acquirerToken": "example",
        "brand": "VISA",
        "type": "CARD"
      },
      "processingNetwork": "VISA",
      "processorResponseCode": "A0000",
      "processorResponseMessage": "example",
      "reference": "example",
      "responseType": "APPROVAL",
      "resultLabel": "example",
      "taxes": {
        "localAmount": 0,
        "nationalAmount": 0,
        "totalAmount": 0
      },
      "taxIdentificationNumber": "example",
      "transactionDateTime": "2026-01-15T14:30:00Z",
      "transactionType": "AUTHORIZATION"
    }
  }
}
Query

Arguments

id
UUID!
required

Return type

PaymentTransaction
acceptor
Acceptor!
required
activityDate
Date
The date Tesouro recognized the payment request based upon the acceptor cutoff.
amountDetails
AmountDetails
Components of the requested amount that may or may not have been provided by the presenter on the payment transaction request.
billingDescriptor
String
The billing descriptor name that appears on the customer’s statement.
businessApplicationId
BusinessApplicationId
The business application identifier (BAI) is a value provided by Visa to identify the type of transfer that is being performed.
fees
FeeDetails
Aggregate information for assessed fees
id
UUID!
required
A unique identifier assigned by Tesouro for every transaction request received.
lineItems
[LineItem!]
Line items associated with the payment transaction.
location
Location
The location where this transaction took place.
merchantCategory
String
Unique ISO four digit values used to classify merchants and their transactions into specific categories based on the type of business, trade or services supplied.
organization
Organization!
required
paymentId
UUID!
required
A unique 36 character identifier created by Tesouro and assigned to a group of transactions in the same payment request cohort. e.g., An authorization request, incremental authorization request, and the final capture would have the same paymentID.
paymentMethod
PaymentMethod!
required
Refers to the various options available for customers to make payments when purchasing a product or service.
processingNetwork
Network!
required
The payment network that the transaction was sent across, which may be unaffiliated with the card brand.
processorResponseCode
ProcessorResponseCode!
required
A response code provided by Tesouro identifying the specific approval or decline reason.
processorResponseMessage
String!
required
A human readable description of the authorization response code. e.g., Insufficient funds.
reference
String
A unique transaction identifier created by the entity holding the direct relationship with the Acceptor. Tesouro uses this identifier to manage idempotency.
responseType
ResponseType
The result of the authorization request, e.g., Approved or Declined.
resultLabel
String!
required
Short description of the payment transaction result. Examples include Approved, Insufficient funds. Intended for display purposes only.
taxes
Taxes
The various tax amounts collected on the payment transaction.
taxIdentificationNumber
String
The last 4 digits of the tax identification number (TIN), which is a unique identifier created by the national government and associated with the acceptor at the time the transaction was submitted.
transactionDateTime
DateTime!
required
The date and time that Tesouro received the transaction, in UTC. Formatted as 2024-03-27T02:40:00Z
transactionType
PaymentTransactionType!
required
The type of payment transaction, e.g., Authorization, Capture, Sale, Refund, Reversal, etc.
query PaymentTransaction($id: UUID!) {
  paymentTransaction(id: $id) {
    acceptor {
      allocations {

      }
      authorizationSummaries {

      }
      billingDescriptor {
        city
        name
        serviceFeeName
        state
      }
      businessName
      fees {

      }
      feeSummaries {

      }
      fundingAchReturns {

      }
      fundingDisputeEvents {

      }
      fundingSummaries {

      }
      fundingTransactions {

      }
      id
      name
      paymentTransactions {
        items
      }
      paymentTransactionSummaries {

      }
      reference
    }
    activityDate
    amountDetails {
      cashBack
      convenienceFee
      discount
      duty
      gratuity
      serviceFee
      shipping
      subTotal
      surcharge
    }
    billingDescriptor
    businessApplicationId
    fees {
      items {
        billableEventAmount
        calculatedAmount
        currency
        name
        rateMultiplier
        rateUnitAmount
        type
      }
      summary {
        interchangeAmount
        networkAmount
        partnerAmount
        processorAmount
        totalAmount
      }
    }
    id
    lineItems {
      commodityCode
      description
      discountAmount
      lineItemAmount
      productCode
      productSku
      taxDetails {
        localAmount
        nationalAmount
        totalAmount
      }
      unitOfMeasure
      unitPrice
      unitQuantity
    }
    location {
      id
      outlet {
        id
      }
    }
    merchantCategory
    organization {
      acceptorApplicationCounts {
        acceptorApplicationStatus
        total
      }
      acceptors {

      }
      achNotificationsOfChange {

      }
      achReturns {

      }
      allocations {

      }
      allowedMerchantCategories {
        code
      }
      authorizationSummaries {

      }
      businessAddress {
        address1
        address2
        address3
        city
        countryCode
        postalCode
        state
      }
      businessName
      capabilities
      fees {

      }
      feeSummaries {

      }
      fundingAchReturns {

      }
      fundingDisbursementReturns {

      }
      fundingDisputeEvents {

      }
      fundingSummaries {

      }
      fundingTransactions {

      }
      id
      legalName
      name
      paymentTransactions {
        items
      }
      paymentTransactionSummaries {

      }
      phoneNumber
      reportAvailability {
        availabilityEndDate
        availabilityStartDate
        dateType
      }
      settings {

      }
    }
    paymentId
    paymentMethod {
      acquirerToken
      brand
      type
    }
    processingNetwork
    processorResponseCode
    processorResponseMessage
    reference
    responseType
    resultLabel
    taxes {
      localAmount
      nationalAmount
      totalAmount
    }
    taxIdentificationNumber
    transactionDateTime
    transactionType

}
}

{
  "data": {
    "paymentTransaction": {
      "acceptor": {
        "allocations": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "authorizationSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "billingDescriptor": {
          "city": "example",
          "name": "Ben Torres",
          "serviceFeeName": "example",
          "state": "example"
        },
        "businessName": "Clacksworth Keyboards",
        "fees": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "feeSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingAchReturns": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingDisputeEvents": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingTransactions": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
        "name": "Ben Torres",
        "paymentTransactions": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "paymentTransactionSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "reference": "example"
      },
      "activityDate": "2026-01-15",
      "amountDetails": {
        "cashBack": 0,
        "convenienceFee": 0,
        "discount": 0,
        "duty": 0,
        "gratuity": 0,
        "serviceFee": 0,
        "shipping": 0,
        "subTotal": 0,
        "surcharge": 0
      },
      "billingDescriptor": "CLACKSWORTH KEYBOARDS",
      "businessApplicationId": "CB",
      "fees": {
        "items": [
          {
            "billableEventAmount": 0,
            "calculatedAmount": 0,
            "currency": "example",
            "name": "Ben Torres",
            "rateMultiplier": 0,
            "rateUnitAmount": 0,
            "type": "SETTLEMENT"
          }
        ],
        "summary": {
          "interchangeAmount": 0,
          "networkAmount": 0,
          "partnerAmount": 0,
          "processorAmount": 0,
          "totalAmount": 0
        }
      },
      "id": "c9a1e2d3-4b5f-6789-0abc-def123456789",
      "lineItems": [
        {
          "commodityCode": "example",
          "description": "example",
          "discountAmount": 0,
          "lineItemAmount": 0,
          "productCode": "example",
          "productSku": "example",
          "taxDetails": {
            "localAmount": 0,
            "nationalAmount": 0,
            "totalAmount": 0
          },
          "unitOfMeasure": "example",
          "unitPrice": 0,
          "unitQuantity": 0
        }
      ],
      "location": {
        "id": "d8b2f3e4-5c6a-7890-1bcd-ef2345678901",
        "outlet": {
          "id": "e7c3a4b5-6d7e-8901-2cde-f34567890123",
          "pointOfInteraction": "example"
        }
      },
      "merchantCategory": "example",
      "organization": {
        "acceptorApplicationCounts": [
          {
            "acceptorApplicationStatus": "APPROVED",
            "total": 0
          }
        ],
        "acceptors": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "achNotificationsOfChange": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "achReturns": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "allocations": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "allowedMerchantCategories": [
          {
            "code": "example"
          }
        ],
        "authorizationSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "businessAddress": {
          "address1": "example",
          "address2": "example",
          "address3": "example",
          "city": "example",
          "countryCode": "AFG",
          "postalCode": "example",
          "state": "example"
        },
        "businessName": "Clacksworth Keyboards",
        "capabilities": [
          "ACQUIRING"
        ],
        "fees": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "feeSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingAchReturns": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingDisbursementReturns": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingDisputeEvents": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "fundingTransactions": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "id": "b6d4e5f6-7a8b-9012-3def-456789012345",
        "legalName": "example",
        "name": "Ben Torres",
        "paymentTransactions": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "paymentTransactionSummaries": {
          "items": [
            "example"
          ],
          "pageInfo": "example"
        },
        "phoneNumber": "example",
        "reportAvailability": [
          {
            "availabilityEndDate": "2026-01-15",
            "availabilityStartDate": "2026-01-15",
            "dateType": "ACTIVITY_DATE"
          }
        ],
        "settings": {
          "access": "example"
        }
      },
      "paymentId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "paymentMethod": {
        "acquirerToken": "example",
        "brand": "VISA",
        "type": "CARD"
      },
      "processingNetwork": "VISA",
      "processorResponseCode": "A0000",
      "processorResponseMessage": "example",
      "reference": "example",
      "responseType": "APPROVAL",
      "resultLabel": "example",
      "taxes": {
        "localAmount": 0,
        "nationalAmount": 0,
        "totalAmount": 0
      },
      "taxIdentificationNumber": "example",
      "transactionDateTime": "2026-01-15T14:30:00Z",
      "transactionType": "AUTHORIZATION"
    }
  }
}