mutation CaptureAuthorization($captureAuthorizationInput: CaptureAuthorizationInput!) {
captureAuthorization(captureAuthorizationInput: $captureAuthorizationInput) {
captureAuthorizationResponse {
activityDate
cardDetails {
last4
paymentBrand
}
duration
isDuplicateRequest
message
networkResponseDetails {
networkResponseCode
processorResponseCode
}
paymentId
processorResponseCode
sanitizedFields {
fieldName
fieldPath
originalValue
reason
sanitizedValue
}
timestampUtc
tokenDetails {
token
tokenizedPan
}
transactionId
}
errors {
... on InternalServiceError {
dateTimeUtc
errorDateTime
message
processorResponseCode
transactionId
}
... on RuleInViolationError {
advice
dateTimeUtc
errorDateTime
explanationOfRule
message
}
... on SyntaxOnNetworkResponseError {
attemptedNetwork
dateTimeUtc
errorDateTime
message
processorResponseCode
}
... on TimeoutOnNetworkResponseError {
attemptedNetwork
dateTimeUtc
errorDateTime
message
processorResponseCode
}
... on ValidationFailureError {
dateTimeUtc
errorDateTime
fieldName
fieldPath
message
}
... on PriorPaymentNotFoundError {
dateTimeUtc
errorDateTime
message
processorResponseCode
transactionId
}
}
}
}
{
"data": {
"captureAuthorization": {
"captureAuthorizationResponse": {
"activityDate": "2026-01-15",
"cardDetails": {
"last4": "1234",
"paymentBrand": "VISA"
},
"duration": 0,
"isDuplicateRequest": true,
"message": "example",
"networkResponseDetails": {
"networkResponseCode": "example",
"processorResponseCode": "A0000"
},
"paymentId": "c9a1e2d3-4b5f-6789-0abc-def123456789",
"processorResponseCode": "A0000",
"sanitizedFields": [
{
"fieldName": "example",
"fieldPath": "example",
"originalValue": "example",
"reason": "example",
"sanitizedValue": "example"
}
],
"timestampUtc": "2026-01-15T14:30:00Z",
"tokenDetails": {
"token": "example",
"tokenizedPan": "example"
},
"transactionId": "d8b2f3e4-5c6a-7890-1bcd-ef2345678901"
},
"errors": [
{
"__typename": "InternalServiceError",
"dateTimeUtc": "2026-01-15T14:30:00Z",
"errorDateTime": "2026-01-15T14:30:00Z",
"message": "example",
"processorResponseCode": "A0000",
"transactionId": "e7c3a4b5-6d7e-8901-2cde-f34567890123"
}
]
}
}
}
Transaction Processing
captureAuthorization
Capture a previously authorized transaction and return a payload that includes details of the resulting transaction.
mutation CaptureAuthorization($captureAuthorizationInput: CaptureAuthorizationInput!) {
captureAuthorization(captureAuthorizationInput: $captureAuthorizationInput) {
captureAuthorizationResponse {
activityDate
cardDetails {
last4
paymentBrand
}
duration
isDuplicateRequest
message
networkResponseDetails {
networkResponseCode
processorResponseCode
}
paymentId
processorResponseCode
sanitizedFields {
fieldName
fieldPath
originalValue
reason
sanitizedValue
}
timestampUtc
tokenDetails {
token
tokenizedPan
}
transactionId
}
errors {
... on InternalServiceError {
dateTimeUtc
errorDateTime
message
processorResponseCode
transactionId
}
... on RuleInViolationError {
advice
dateTimeUtc
errorDateTime
explanationOfRule
message
}
... on SyntaxOnNetworkResponseError {
attemptedNetwork
dateTimeUtc
errorDateTime
message
processorResponseCode
}
... on TimeoutOnNetworkResponseError {
attemptedNetwork
dateTimeUtc
errorDateTime
message
processorResponseCode
}
... on ValidationFailureError {
dateTimeUtc
errorDateTime
fieldName
fieldPath
message
}
... on PriorPaymentNotFoundError {
dateTimeUtc
errorDateTime
message
processorResponseCode
transactionId
}
}
}
}
{
"data": {
"captureAuthorization": {
"captureAuthorizationResponse": {
"activityDate": "2026-01-15",
"cardDetails": {
"last4": "1234",
"paymentBrand": "VISA"
},
"duration": 0,
"isDuplicateRequest": true,
"message": "example",
"networkResponseDetails": {
"networkResponseCode": "example",
"processorResponseCode": "A0000"
},
"paymentId": "c9a1e2d3-4b5f-6789-0abc-def123456789",
"processorResponseCode": "A0000",
"sanitizedFields": [
{
"fieldName": "example",
"fieldPath": "example",
"originalValue": "example",
"reason": "example",
"sanitizedValue": "example"
}
],
"timestampUtc": "2026-01-15T14:30:00Z",
"tokenDetails": {
"token": "example",
"tokenizedPan": "example"
},
"transactionId": "d8b2f3e4-5c6a-7890-1bcd-ef2345678901"
},
"errors": [
{
"__typename": "InternalServiceError",
"dateTimeUtc": "2026-01-15T14:30:00Z",
"errorDateTime": "2026-01-15T14:30:00Z",
"message": "example",
"processorResponseCode": "A0000",
"transactionId": "e7c3a4b5-6d7e-8901-2cde-f34567890123"
}
]
}
}
}
Documentation Index
Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
Use this file to discover all available pages before exploring further.
Mutation
Arguments
Show child attributes
Show child attributes
A unique, 36 character identifier created by Tesouro and assigned to the entity providing the goods or services to the cardholder, such as a Merchant, a Submerchant of a Payment Facilitator, a Seller within a Marketplace, or a Biller of a Consumer Bill Payment Service Provider (CBPS). Historically, processors have called this identifier the Merchant ID (or MID), Outlet ID, or Customer number.
Line item details for this order. If line items are provided on the capture any line items from the original authorization will be overridden. If line items are provided, transactionAmountDetails must be provided.See LineItemInput
Details pertaining to the customer’s order. If null, order details from the original authorization will be used. If provided, all details from the original authorization will be overridden.See OrderDetailsInput
The unique ‘paymentId’ of the previously authorized payment that is to be captured.
The total count of captures expected for the given authorization. Only applicable for multiple captures for single authorization. For single capture, do not include this field. Maximum 2 digit number.
An object containing various amount information for a given transaction. If this is omitted the remaining amount pending capture will be used.
Show child attributes
Show child attributes
The base transaction amount intended to be collected by this payment not including any cashback, gratuity, fees, or taxes.Deprecated: Use subtotalAmount instead.
The cash back amount. Must be a non-negative value.
The purchasing currency code of the request amount.See TransactionAmountCurrencyCode
Total discount amount applied to the order. Must be a non-negative value.
Total charges for any import or export duties included in the order. Must be a non-negative value.
The gratuity amount. Must be a non-negative value.
The total amount of local tax for this payment transaction request. Local tax is imposed by municipal, city, or regional governments and may include sales tax, service tax, or other location-based levies applicable to the transaction. Must be a non-negative value.
The total amount of national tax for this payment transaction request. National tax is a government-imposed tax at the federal or country level, such as Goods and Services Tax (GST), or federal sales tax. Must be a non-negative value.
Total shipping charges for the transaction. Must be a non-negative value.
The sum of all item costs in the transaction before applying any additional charges such as taxes, or fees. Must be a non-negative value.
The requested amount intended to be collected by this transaction. A positive decimal with precision depending on transaction currency. For example: $10.00 would be 10.00 or 10.
The total amount of all taxes for this payment transaction request. Must be present if either local or national tax are present. Must be a non-negative value.
A unique identifier created by the entity holding the direct relationship with the Acceptor, and used by that entity for reconciliation and transaction search. Tesouro uses this identifier to manage idempotency.
Return type
CaptureAuthorizationPayload!
Show child attributes
Show child attributes
The date Tesouro received the transaction based on acceptor cutoff time
Details related to the card used on the transactionSee CardInformation
Difference between request receipt and response in milliseconds.Deprecated: New durations coming soon.
Result of Tesouro’s idempotency check. If the transaction reference matches that of another transaction from that presenter it will be treated as a duplicate.
A detailed description of the response code. e.g., Insufficient funds.
The response code from the network.See NetworkResponseDetails
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.
A normalized 4-character response code defined by Tesouro that represents the outcome of the payment transaction request.See ProcessorResponseCode
List of fields that were detected as invalid and sanitized by Tesouro to prevent the payment transaction request from failing.See SanitizedFieldOutput
The UTC date and time the transaction was received by Tesouro.
Details associated with the token generated on a tokenization request.See TokenDetails
A unique identifier created by Tesouro and assigned to the transaction.
Show Possible types
Show Possible types
Show InternalServiceError
Show InternalServiceError
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.Deprecated: Use errorDateTime instead.
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.
A human readable description of the error.
Tesouro response code indicating the error.See ProcessorResponseCode
Unique ID for the transaction assigned by Tesouro.
Show RuleInViolationError
Show RuleInViolationError
This occurs when an internal Tesouro business rule is in violation.
Advice on how to overcome the rule in the future.
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.Deprecated: Use errorDateTime instead.
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.
An explanation of why the rule exists.
A human readable description of the error.
Tesouro response code indicating the error.See ProcessorResponseCode
Unique ID for the transaction assigned by Tesouro.
Show SyntaxOnNetworkResponseError
Show SyntaxOnNetworkResponseError
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.Deprecated: Use errorDateTime instead.
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.
A human readable description of the error.
Tesouro response code indicating the error.See ProcessorResponseCode
Unique ID for the transaction assigned by Tesouro.
Show TimeoutOnNetworkResponseError
Show TimeoutOnNetworkResponseError
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.Deprecated: Use errorDateTime instead.
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.
A human readable description of the error.
Tesouro response code indicating the error.See ProcessorResponseCode
Unique ID for the transaction assigned by Tesouro.
The amount of time Tesouro waited for a response in milliseconds.
Show ValidationFailureError
Show ValidationFailureError
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.Deprecated: Use errorDateTime instead.
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.
The name of the graphql field in error.
The path to the graphql field in error.
A human readable description of the error.
Tesouro response code indicating the error.See ProcessorResponseCode
Unique ID for the transaction assigned by Tesouro.
The value of the graphql field in error.
Show PriorPaymentNotFoundError
Show PriorPaymentNotFoundError
This occurs when a prior referenced payment cannot be found
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.Deprecated: Use errorDateTime instead.
The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.
A human readable description of the error.
Tesouro response code indicating the error.See ProcessorResponseCode
Unique ID for the transaction assigned by Tesouro.
The payment id that cannot be found.
mutation CaptureAuthorization($captureAuthorizationInput: CaptureAuthorizationInput!) {
captureAuthorization(captureAuthorizationInput: $captureAuthorizationInput) {
captureAuthorizationResponse {
activityDate
cardDetails {
last4
paymentBrand
}
duration
isDuplicateRequest
message
networkResponseDetails {
networkResponseCode
processorResponseCode
}
paymentId
processorResponseCode
sanitizedFields {
fieldName
fieldPath
originalValue
reason
sanitizedValue
}
timestampUtc
tokenDetails {
token
tokenizedPan
}
transactionId
}
errors {
... on InternalServiceError {
dateTimeUtc
errorDateTime
message
processorResponseCode
transactionId
}
... on RuleInViolationError {
advice
dateTimeUtc
errorDateTime
explanationOfRule
message
}
... on SyntaxOnNetworkResponseError {
attemptedNetwork
dateTimeUtc
errorDateTime
message
processorResponseCode
}
... on TimeoutOnNetworkResponseError {
attemptedNetwork
dateTimeUtc
errorDateTime
message
processorResponseCode
}
... on ValidationFailureError {
dateTimeUtc
errorDateTime
fieldName
fieldPath
message
}
... on PriorPaymentNotFoundError {
dateTimeUtc
errorDateTime
message
processorResponseCode
transactionId
}
}
}
}
{
"data": {
"captureAuthorization": {
"captureAuthorizationResponse": {
"activityDate": "2026-01-15",
"cardDetails": {
"last4": "1234",
"paymentBrand": "VISA"
},
"duration": 0,
"isDuplicateRequest": true,
"message": "example",
"networkResponseDetails": {
"networkResponseCode": "example",
"processorResponseCode": "A0000"
},
"paymentId": "c9a1e2d3-4b5f-6789-0abc-def123456789",
"processorResponseCode": "A0000",
"sanitizedFields": [
{
"fieldName": "example",
"fieldPath": "example",
"originalValue": "example",
"reason": "example",
"sanitizedValue": "example"
}
],
"timestampUtc": "2026-01-15T14:30:00Z",
"tokenDetails": {
"token": "example",
"tokenizedPan": "example"
},
"transactionId": "d8b2f3e4-5c6a-7890-1bcd-ef2345678901"
},
"errors": [
{
"__typename": "InternalServiceError",
"dateTimeUtc": "2026-01-15T14:30:00Z",
"errorDateTime": "2026-01-15T14:30:00Z",
"message": "example",
"processorResponseCode": "A0000",
"transactionId": "e7c3a4b5-6d7e-8901-2cde-f34567890123"
}
]
}
}
}
Was this page helpful?
⌘I