> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ionicfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a confirmation token

> Get a ConfirmationToken by its ct_... ID. Returns its card details, status, expiry, and associated PaymentIntent if it has been used.

Use this to check the card before deciding the final price. It does not charge the card, use the token, or refresh its funding data. Authenticate with the same platform and connected merchant used to create it.



## OpenAPI

````yaml openapi/confirmation_tokens.yaml GET /confirmation_tokens/{id}
openapi: 3.0.3
info:
  title: Ionic Confirmation Tokens API
  version: '2026-10-24'
servers:
  - url: '{baseUrl}/v1'
    variables:
      baseUrl:
        default: https://api.ionicfi.com
security:
  - secretKey: []
paths:
  /confirmation_tokens/{id}:
    get:
      tags:
        - Confirmation Tokens
      summary: Retrieve a confirmation token
      description: >-
        Get a ConfirmationToken by its ct_... ID. Returns its card details,
        status, expiry, and associated PaymentIntent if it has been used.


        Use this to check the card before deciding the final price. It does not
        charge the card, use the token, or refresh its funding data.
        Authenticate with the same platform and connected merchant used to
        create it.
      operationId: confirmation_tokens_retrieve
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^ct_[A-Za-z0-9]{24}$
          description: The ct_... ID returned by ionic.createConfirmationToken().
        - name: Ionic-Account
          in: header
          required: true
          description: The connected merchant selected when the token was created.
          schema:
            type: string
            pattern: ^mer_[A-Za-z0-9]{14}$
      responses:
        '200':
          description: >-
            The ConfirmationToken object, without an enclosing data or
            confirmationToken property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfirmationToken'
              examples:
                verifiedCredit:
                  summary: Illustrative credit card checked against the tokenized card
                  value:
                    id: ct_AAAAAAAAAAAAAAAAAAAAAAAA
                    object: confirmation_token
                    status: ready
                    livemode: false
                    currency: usd
                    expires_at: 1800000600
                    payment_intent: null
                    payment_method_preview:
                      type: card
                      card:
                        brand: visa
                        last4: '1111'
                        funding: credit
                        funding_evidence: token_verified
                unverifiedCredit:
                  summary: Card fields reported credit; no independent check
                  value:
                    id: ct_AAAAAAAAAAAAAAAAAAAAAAAA
                    object: confirmation_token
                    status: ready
                    livemode: false
                    currency: usd
                    expires_at: 1800000600
                    payment_intent: null
                    payment_method_preview:
                      type: card
                      card:
                        brand: visa
                        last4: '1111'
                        funding: credit
                        funding_evidence: tokenization_callback
                unknownFunding:
                  summary: Fallback when no usable card data is available
                  value:
                    id: ct_AAAAAAAAAAAAAAAAAAAAAAAA
                    object: confirmation_token
                    status: ready
                    livemode: false
                    currency: usd
                    expires_at: 1800000600
                    payment_intent: null
                    payment_method_preview:
                      type: card
                      card:
                        brand: unknown
                        funding: unknown
                        funding_evidence: unavailable
                consumed:
                  summary: >-
                    Token used for one payment attempt; check that payment for
                    its outcome
                  value:
                    id: ct_AAAAAAAAAAAAAAAAAAAAAAAA
                    object: confirmation_token
                    status: consumed
                    livemode: false
                    currency: usd
                    expires_at: 1800000600
                    payment_intent: pi_CCCCCCCCCCCCCC
                    payment_method_preview:
                      type: card
                      card:
                        brand: visa
                        last4: '1111'
                        funding: credit
                        funding_evidence: token_verified
        '401':
          description: Authentication required.
        '403':
          description: >-
            The current platform key or connected-account permissions do not
            allow access.
        '404':
          description: >-
            The token was not found for this platform, connected account, and
            test/live mode.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: CONFIRMATION_TOKEN_NOT_FOUND
                  message: confirmation token not found
        '429':
          description: Rate limit exceeded.
        '503':
          description: Token retrieval is temporarily unavailable.
components:
  schemas:
    ConfirmationToken:
      type: object
      required:
        - id
        - object
        - status
        - livemode
        - currency
        - expires_at
        - payment_intent
        - payment_method_preview
      properties:
        id:
          type: string
          pattern: ^ct_[A-Za-z0-9]{24}$
          description: >-
            The ct_... ID to pass as confirmation_token when confirming a
            PaymentIntent.
        object:
          type: string
          enum:
            - confirmation_token
          description: Always confirmation_token.
        status:
          type: string
          enum:
            - ready
            - consumed
            - invalidated
            - expired
          description: >-
            ready means unused; consumed means assigned to one payment attempt;
            invalidated means canceled by resuming card editing; expired means
            not used before its deadline. Consumed does not mean paid.
        livemode:
          type: boolean
          description: >-
            False for test mode, true for live mode. Must match the
            PaymentIntent.
        currency:
          type: string
          enum:
            - usd
            - eur
            - gbp
          description: >-
            Currency selected when creating the card-field session. Must match
            the PaymentIntent.
        expires_at:
          type: integer
          format: int64
          description: >-
            Last time an unused token can start a payment, in Unix seconds. At
            most 10 minutes after creation and no later than the field session
            expiry. Payments already started remain recoverable.
        payment_intent:
          type: string
          nullable: true
          description: >-
            The pi_... ID of the PaymentIntent this token was used to confirm,
            or null if it has not been used. The ID remains set if the payment
            is pending, declines, or fails. Check the PaymentIntent's status for
            the payment outcome.
        payment_method_preview:
          $ref: '#/components/schemas/ConfirmationTokenPaymentMethodPreview'
        setup_future_usage:
          type: string
          enum:
            - off_session
          description: >-
            off_session when the buyer agreed to save the card; omitted
            otherwise. To save it, confirm with a PaymentIntent that has a
            customer and setup_future_usage off_session. Otherwise confirmation
            returns 409 CONFIRMATION_TOKEN_SETUP_FUTURE_USAGE_MISMATCH before
            charging.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
    ConfirmationTokenPaymentMethodPreview:
      type: object
      required:
        - type
        - card
      properties:
        type:
          type: string
          enum:
            - card
        card:
          $ref: '#/components/schemas/ConfirmationTokenCardPreview'
    ConfirmationTokenCardPreview:
      type: object
      required:
        - brand
        - funding
        - funding_evidence
      properties:
        last4:
          type: string
          pattern: ^[0-9]{4}$
          description: Final four digits of the card. Omitted when unavailable.
        brand:
          type: string
          description: Card brand, such as visa or mastercard. Unknown when unavailable.
        funding:
          type: string
          enum:
            - credit
            - debit
            - prepaid
            - unknown
          description: >-
            Whether the card is credit, debit, or prepaid. Unknown means the
            type could not be determined; it is not a decline. Read
            funding_evidence before relying on this value.
        funding_evidence:
          type: string
          enum:
            - token_verified
            - tokenization_callback
            - unavailable
          description: >-
            How the card data was obtained. token_verified: checked against the
            tokenized card. tokenization_callback: reported by the card fields
            without an independent check. unavailable: no usable card data. A
            verified lookup can still return unknown funding.
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.