Skip to main content
Capture a previously authorized transaction and return a payload that includes details of the resulting transaction.

Arguments

captureAuthorizationInput
required
mutation captureAuthorization($captureAuthorizationInput: CaptureAuthorizationInput!) {
  captureAuthorization(captureAuthorizationInput: $captureAuthorizationInput) {
    captureAuthorizationResponse {
      cardDetails {
        paymentBrand
        last4
      }
      networkResponseDetails {
        processorResponseCode
        networkResponseCode
      }
      timestampUtc
      transactionId
      paymentId
      duration
      activityDate
      isDuplicateRequest
      tokenDetails {
        tokenizedPan
        token
      }
    }
    errors {
      ... on InternalServiceError {
        message
        dateTimeUtc
        errorDateTime
        transactionId
        processorResponseCode
      }
      ... on RuleInViolationError {
        message
        advice
        explanationOfRule
        ruleName
        processorResponseCode
        dateTimeUtc
        errorDateTime
        transactionId
      }
      ... on SyntaxOnNetworkResponseError {
        message
        attemptedNetwork
        processorResponseCode
        dateTimeUtc
        errorDateTime
        transactionId
      }
      ... on TimeoutOnNetworkResponseError {
        message
        waitTime
        attemptedNetwork
        processorResponseCode
        dateTimeUtc
        errorDateTime
        transactionId
      }
      ... on ValidationFailureError {
        message
        transactionId
        dateTimeUtc
        errorDateTime
        processorResponseCode
        fieldPath
        fieldName
        valueInError
      }
      ... on PriorPaymentNotFoundError {
        message
        unknownPaymentId
        processorResponseCode
        dateTimeUtc
        errorDateTime
        transactionId
      }
    }
  }
}

Response

Returns a CaptureAuthorizationPayload
{
  "data": {
    "captureAuthorization": {
      "captureAuthorizationResponse": CaptureAuthorizationResponse,
      "errors": [
        InternalServiceError
      ]
    }
  }
}
Run in Playground