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

# Confirm a checkout session

> Charges the card submitted to a `payment` flow checkout session with `ui_mode` set to `fields`. Call this endpoint after the card is submitted through the card fields. When the charge succeeds, returns the session with its `status` set to `finished`. When the result of the charge is not available yet, returns `202 Accepted`; call this endpoint again to get the result.



## OpenAPI

````yaml reference/main-api.json POST /v2/checkout_sessions/{id}/confirm
openapi: 3.1.0
info:
  title: fintoc-api
  version: v2026-02-01
servers:
  - url: https://api.fintoc.com
security: []
paths:
  /v2/checkout_sessions/{id}/confirm:
    post:
      tags:
        - Checkout sessions
      summary: Confirm a checkout session
      description: >-
        Charges the card submitted to a `payment` flow checkout session with
        `ui_mode` set to `fields`. Call this endpoint after the card is
        submitted through the card fields. When the charge succeeds, returns the
        session with its `status` set to `finished`. When the result of the
        charge is not available yet, returns `202 Accepted`; call this endpoint
        again to get the result.
      operationId: v2.checkout-sessions-confirm
      parameters:
        - name: id
          in: path
          description: Unique identifier for the checkout session to confirm.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            The charge succeeded. Returns the checkout session with its `status`
            set to `finished`. Confirming a session whose charge already
            succeeded returns the same response.
          content:
            application/json:
              examples:
                checkout_session_finished:
                  value:
                    id: cs_li5531onlFDi235
                    object: checkout_session
                    amount: 350000
                    business_profile: null
                    cancel_url: null
                    created_at: '2026-01-13T18:48:25Z'
                    currency: CLP
                    customer_email: customer@example.com
                    customer_phone: null
                    expires_at: '2026-01-14T18:48:25Z'
                    flow: payment
                    line_items: null
                    metadata: {}
                    mode: test
                    payment_method: null
                    payment_method_options:
                      card: {}
                    payment_method_types:
                      - card
                    payment_resource:
                      payment_intent:
                        id: pi_BO381oEATXonG6bj
                        object: payment_intent
                        amount: 350000
                        business_profile: null
                        created_at: '2026-01-13T18:50:12Z'
                        currency: CLP
                        customer: null
                        customer_email: customer@example.com
                        customer_phone: null
                        error_reason: null
                        expires_at: '2026-01-13T19:10:12Z'
                        invoices: []
                        metadata: {}
                        mode: test
                        next_action: null
                        payment_method: null
                        payment_type: card
                        payment_type_options:
                          card:
                            authenticated_with_3ds: false
                            bank: Banco de Chile
                            institution_id: cl_banco_de_chile
                            bin: '424242'
                            brand: visa
                            country: Chile
                            holder_name: Felipe Castro
                            holder_tax_id:
                              type: cl_rut
                              value: '111111111'
                            kind: credit
                            last_four_digits: '4242'
                            wallet: null
                        recipient_account: null
                        reference_id: null
                        sender_account: null
                        split: null
                        split_applied: null
                        status: succeeded
                        transaction_date: '2026-01-13T18:51:03Z'
                        widget_token: null
                    redirect_url: null
                    save_payment_method: null
                    session_token: null
                    set_as_default: null
                    setup_intent: null
                    split: null
                    split_applied: null
                    status: finished
                    subscription: null
                    success_url: null
              schema:
                $ref: '#/components/schemas/checkout_session_v2'
        '202':
          description: >-
            The charge started, but its result is not available yet. Returns the
            checkout session. Call this endpoint again to get the result.
          content:
            application/json:
              examples:
                checkout_session_charge_pending:
                  value:
                    id: cs_li5531onlFDi235
                    object: checkout_session
                    amount: 350000
                    business_profile: null
                    cancel_url: null
                    created_at: '2026-01-13T18:48:25Z'
                    currency: CLP
                    customer_email: customer@example.com
                    customer_phone: null
                    expires_at: '2026-01-14T18:48:25Z'
                    flow: payment
                    line_items: null
                    metadata: {}
                    mode: test
                    payment_method: null
                    payment_method_options:
                      card: {}
                    payment_method_types:
                      - card
                    payment_resource:
                      payment_intent:
                        id: pi_BO381oEATXonG6bj
                        object: payment_intent
                        amount: 350000
                        business_profile: null
                        created_at: '2026-01-13T18:50:12Z'
                        currency: CLP
                        customer: null
                        customer_email: customer@example.com
                        customer_phone: null
                        error_reason: null
                        expires_at: '2026-01-13T19:10:12Z'
                        invoices: []
                        metadata: {}
                        mode: test
                        next_action: null
                        payment_method: null
                        payment_type: card
                        payment_type_options:
                          card:
                            authenticated_with_3ds: false
                            bank: Banco de Chile
                            institution_id: cl_banco_de_chile
                            bin: '424242'
                            brand: visa
                            country: Chile
                            holder_name: Felipe Castro
                            holder_tax_id:
                              type: cl_rut
                              value: '111111111'
                            kind: credit
                            last_four_digits: '4242'
                            wallet: null
                        recipient_account: null
                        reference_id: null
                        sender_account: null
                        split: null
                        split_applied: null
                        status: in_progress
                        transaction_date: null
                        widget_token: null
                    redirect_url: null
                    save_payment_method: null
                    session_token: null
                    set_as_default: null
                    setup_intent: null
                    split: null
                    split_applied: null
                    status: in_progress
                    subscription: null
                    success_url: null
              schema:
                $ref: '#/components/schemas/checkout_session_v2'
        '400':
          description: >-
            The checkout session is not a `payment` flow session with `ui_mode`
            set to `fields`.
          content:
            application/json:
              examples:
                checkout_session_not_confirmable:
                  value:
                    error:
                      type: invalid_request_error
                      message: >-
                        Only payment checkout sessions with ui_mode fields can
                        be confirmed.
                      code: invalid_params
                      param: null
                      doc_url: https://docs.fintoc.com/reference/errors
              schema:
                $ref: '#/components/schemas/error_object_v2'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              examples:
                invalid_api_key:
                  value:
                    error:
                      type: authentication_error
                      code: invalid_api_key
                      message: 'Invalid API Key: invalid-*oken'
              schema:
                $ref: '#/components/schemas/error_object'
        '402':
          description: >-
            The card was declined. Confirming the session again returns the same
            error.
          content:
            application/json:
              examples:
                card_declined:
                  value:
                    error:
                      type: invalid_request_error
                      message: The card was declined.
                      code: card_declined
                      param: null
                      doc_url: https://docs.fintoc.com/reference/errors
              schema:
                $ref: '#/components/schemas/error_object_v2'
        '404':
          description: >-
            No checkout session matches the `id` in the mode of the API key
            used.
          content:
            application/json:
              examples:
                checkout_session_not_found:
                  value:
                    error:
                      type: invalid_request_error
                      message: 'No such checkout_session: cs_li5531onlFDi235'
                      code: missing_resource
                      param: id
                      doc_url: https://docs.fintoc.com/reference/errors
              schema:
                $ref: '#/components/schemas/error_object_v2'
        '409':
          description: >-
            The checkout session cannot be charged in its current state. The
            error `code` gives the reason. `charge_in_progress` means a previous
            confirmation is still charging the card; call this endpoint again to
            get the charge result. `no_card_submitted` means your customer has
            not submitted a card to the session. `card_confirmation_expired`
            means the submitted card expired before confirmation, so your
            customer must submit the card again.
            `checkout_session_not_in_progress` means the session expired.
          content:
            application/json:
              examples:
                charge_in_progress:
                  value:
                    error:
                      type: conflicted_request_error
                      message: >-
                        The charge of this checkout session is in progress.
                        Confirm the checkout session again to get the charge
                        result.
                      code: charge_in_progress
                      param: null
                      doc_url: https://docs.fintoc.com/reference/errors
                no_card_submitted:
                  value:
                    error:
                      type: conflicted_request_error
                      message: No card has been submitted for this checkout session.
                      code: no_card_submitted
                      param: null
                      doc_url: https://docs.fintoc.com/reference/errors
                card_confirmation_expired:
                  value:
                    error:
                      type: conflicted_request_error
                      message: >-
                        The submitted card expired before the confirmation. Your
                        customer must submit the card again.
                      code: card_confirmation_expired
                      param: null
                      doc_url: https://docs.fintoc.com/reference/errors
                checkout_session_not_in_progress:
                  value:
                    error:
                      type: conflicted_request_error
                      message: The checkout session has expired.
                      code: checkout_session_not_in_progress
                      param: null
                      doc_url: https://docs.fintoc.com/reference/errors
              schema:
                $ref: '#/components/schemas/error_object_v2'
      security:
        - api_key: []
components:
  schemas:
    checkout_session_v2:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the checkout session.
          example: cs_li5531onlFDi235
        object:
          const: checkout_session
          description: Type of the object. Always `checkout_session`.
        amount:
          type:
            - integer
            - 'null'
          description: >-
            Amount the session charges your customer, in the smallest unit of
            `currency`. For CLP the smallest unit is one peso (CLP has no
            decimals), so `350000` means $350,000 CLP. For MXN the smallest unit
            is one centavo, so `350000` means $3,500.00 MXN. `null` for `setup`
            and `subscription` flow sessions, which do not carry a single
            amount.
          example: 350000
        billing_cycle_anchor:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            ISO 8601 datetime, in UTC, of the first charge of the subscription
            started by the session. The API returns this field only for
            `subscription` flow sessions; the value is `null` when the session
            was created without an anchor.
          example: '2026-02-01T00:00:00Z'
        business_profile:
          type:
            - object
            - 'null'
          description: >-
            Business on whose behalf you collect the payment, for payment
            aggregators. `null` when the session was created without a business
            profile.
          properties:
            category:
              type: string
              description: Six-character merchant category code (MCC) of the business.
              example: '541100'
            name:
              type: string
              description: Name of the business.
              example: Test Business
            tax_id:
              type: string
              description: Tax identifier of the business.
              example: '111111111'
        cancel_url:
          type:
            - string
            - 'null'
          description: >-
            URL Fintoc redirects your customer to when the payment is not
            completed. `null` when the session was created without redirect
            URLs.
          example: https://merchant.com/cancel
        created_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the checkout session was created.
          example: '2026-01-13T18:48:25Z'
        currency:
          type: string
          enum:
            - CLP
            - MXN
          description: >-
            Three-letter ISO 4217 currency code, in uppercase. One of `CLP` or
            `MXN`.
          example: CLP
        customer:
          type: object
          description: >-
            Customer the session belongs to. This key is omitted (not `null`)
            when the session has no customer.
          properties:
            id:
              type: string
              description: Unique identifier of the customer.
              example: cus_xK9mPq2RkV3WnDQG
            object:
              const: customer
              description: Type of the object. Always `customer`.
            address:
              type:
                - object
                - 'null'
              description: >-
                Address of the customer. `null` when not provided. Keys without
                a value are omitted.
              properties:
                city:
                  type: string
                  description: City of the address.
                  example: Santiago
                country:
                  type: string
                  description: Country of the address, as a two-letter ISO 3166-1 code.
                  example: cl
                line1:
                  type: string
                  description: First line of the address.
                  example: Av. Providencia 123
                line2:
                  type: string
                  description: Second line of the address.
                  example: Depto 45
                postal_code:
                  type: string
                  description: Postal code of the address.
                  example: '7500000'
                state:
                  type: string
                  description: State or region of the address.
                  example: RM
            created_at:
              type: string
              format: date-time
              description: ISO 8601 timestamp of when the customer was created.
              example: '2026-01-10T12:30:00Z'
            default_payment_method:
              type:
                - string
                - 'null'
              description: >-
                Identifier of the customer's default payment method. `null` when
                the customer has no default payment method.
              example: pm_xL9mPq2RkV3WnDQG
            email:
              type:
                - string
                - 'null'
              description: Email of the customer. `null` when not provided.
              example: customer@example.com
            metadata:
              type: object
              description: Set of key-value pairs attached to the customer.
            mode:
              type: string
              enum:
                - test
                - live
              description: >-
                Mode of the object. `live` objects use real institution data,
                `test` objects use fake data for integration testing.
              example: live
            name:
              type:
                - string
                - 'null'
              description: Name of the customer. `null` when not provided.
              example: Felipe Castro
            phone:
              type:
                - string
                - 'null'
              description: Phone number of the customer. `null` when not provided.
              example: '+56912345678'
            tax_id:
              type:
                - object
                - 'null'
              description: Tax identifier of the customer. `null` when not provided.
              properties:
                type:
                  type: string
                  description: Type of the tax identifier, for example `cl_rut`.
                  example: cl_rut
                value:
                  type: string
                  description: Value of the tax identifier.
                  example: '111111111'
        customer_email:
          type:
            - string
            - 'null'
          description: >-
            Email of your customer, used to send the payment receipt. `null`
            when not provided.
          example: customer@example.com
        customer_phone:
          type:
            - string
            - 'null'
          description: >-
            Phone number of your customer in E.164 format, used for `cash`
            payment notifications. `null` when not provided.
          example: '+525500000000'
        expires_at:
          type: string
          format: date-time
          description: >-
            ISO 8601 timestamp of when the checkout session expires. After this
            time your customer can no longer pay the session.
          example: '2026-01-14T18:48:25Z'
        flow:
          type: string
          enum:
            - payment
            - subscription
            - setup
          description: >-
            Flow the session runs. One of `payment` (collects a one-time
            payment), `subscription` (starts a recurring subscription), or
            `setup` (saves a payment method for future payments).
          example: payment
        line_items:
          type:
            - array
            - 'null'
          description: >-
            Items the session charges for. `null` when the session was created
            without line items.
          items:
            type: object
            properties:
              price:
                type: object
                description: Price of the item.
                properties:
                  currency:
                    type: string
                    enum:
                      - CLF
                      - CLP
                      - MXN
                    description: >-
                      Three-letter ISO 4217 currency code, in uppercase. One of
                      `CLP`, `MXN` or `CLF`.
                    example: CLP
                  product:
                    type: object
                    description: Product the price belongs to.
                    properties:
                      description:
                        type:
                          - string
                          - 'null'
                        maxLength: 200
                        description: >-
                          Description of the product. Up to 200 characters.
                          `null` when not provided.
                        example: Monthly gym membership.
                      image_url:
                        type:
                          - string
                          - 'null'
                        description: URL of the product image. `null` when not provided.
                        example: https://merchant.com/images/membership.png
                      metadata:
                        type: object
                        description: Set of key-value pairs attached to the product.
                      name:
                        type: string
                        description: Name of the product.
                        example: Gym membership
                    required:
                      - description
                      - image_url
                      - metadata
                      - name
                  recurring:
                    type:
                      - object
                      - 'null'
                    description: Billing cadence of the price. `null` for one-time prices.
                    properties:
                      interval:
                        type: string
                        enum:
                          - week
                          - month
                          - year
                        description: Billing frequency. One of `week`, `month`, or `year`.
                        example: month
                      interval_count:
                        type: integer
                        description: >-
                          Number of intervals between billings. For example,
                          `interval: month` with `interval_count: 3` bills every
                          3 months.
                        example: 1
                    required:
                      - interval
                      - interval_count
                  unit_amount:
                    type: integer
                    description: Amount per unit, in the smallest unit of `currency`.
                    example: 350000
                required:
                  - currency
                  - product
                  - recurring
                  - unit_amount
              quantity:
                type: integer
                description: Number of units of the item.
                example: 1
            required:
              - price
              - quantity
        metadata:
          type: object
          description: Set of key-value pairs you attached to the session.
        mode:
          type: string
          enum:
            - test
            - live
          description: >-
            Mode of the object. `live` objects use real institution data, `test`
            objects use fake data for integration testing.
          example: live
        payment_method:
          type:
            - string
            - 'null'
          description: >-
            `id` of the saved payment method that pays the session. `null` when
            the session is not paid with a previously saved payment method.
          example: pm_xL9mPq2RkV3WnDQG
        payment_method_options:
          type: object
          description: >-
            Configuration of the session's payment methods, keyed by payment
            method type. Each key matches one of `payment_method_types` and
            holds the options you set when creating the session, such as the
            `recipient_account` for `bank_transfer` or the `kinds` for `card`.
            When `cash` is one of `payment_method_types`,
            `cash.notification_preferences` holds the `channels`,
            `send_voucher`, and `send_reminders` that apply to your customer,
            with the defaults applied to the values you omitted. See [`POST
            /v2/checkout_sessions`](https://docs.fintoc.com/reference/checkout-sessions-create)
            for the full shape.
        payment_method_types:
          type: array
          description: >-
            Payment method types your customer can use to pay the session. One
            or more of `card`, `bank_transfer`, `installments`, `cash`, `pac`
            (automatic recurring bank debit), and `mx_direct_debit` (Mexican
            direct debit).
          items:
            type: string
            enum:
              - bank_transfer
              - installments
              - card
              - cash
              - pac
              - mx_direct_debit
            example: bank_transfer
        payment_resource:
          type:
            - object
            - 'null'
          description: >-
            Payment generated by the session. `null` until your customer starts
            a payment attempt.
          properties:
            payment_intent:
              type: object
              description: Payment intent of the session's active payment attempt.
              properties:
                id:
                  type: string
                  description: Unique identifier of the payment intent.
                  example: pi_BO381oEATXonG6bj
                object:
                  const: payment_intent
                  description: Type of the object. Always `payment_intent`.
                amount:
                  type: integer
                  description: >-
                    Amount of the payment intent, in the smallest unit of
                    `currency`. For CLP the smallest unit is one peso (CLP has
                    no decimals), so `100000` means $100,000 CLP. For MXN the
                    smallest unit is one centavo, so `7050` means $70.50 MXN.
                  example: 100000
                business_profile:
                  type:
                    - object
                    - 'null'
                  description: >-
                    Business on whose behalf you collect the payment, for
                    payment aggregators. `null` when the payment was created
                    without a business profile.
                  properties:
                    category:
                      type: string
                      description: >-
                        Six-character merchant category code (MCC) of the
                        business.
                    name:
                      type: string
                      description: Name of the business.
                    tax_id:
                      type: string
                      description: Tax identifier of the business.
                created_at:
                  type: string
                  format: date-time
                  description: ISO 8601 timestamp of when the payment intent was created.
                  example: '2026-01-13T18:48:25Z'
                currency:
                  type: string
                  enum:
                    - CLP
                    - MXN
                  description: >-
                    Three-letter ISO 4217 currency code, in uppercase. One of
                    `CLP` or `MXN`.
                  example: CLP
                customer:
                  type:
                    - object
                    - 'null'
                  description: >-
                    Customer the payment intent belongs to. `null` when the
                    session was created without a customer.
                  properties:
                    id:
                      type: string
                      description: Unique identifier of the customer.
                    object:
                      const: customer
                      description: Type of the object. Always `customer`.
                    address:
                      type:
                        - object
                        - 'null'
                      description: Address of the customer. `null` when not provided.
                      properties:
                        city:
                          type: string
                          description: City of the address.
                        country:
                          type: string
                          description: >-
                            Country of the address, as a two-letter ISO 3166-1
                            code.
                        line1:
                          type: string
                          description: First line of the address.
                        line2:
                          type: string
                          description: Second line of the address.
                        postal_code:
                          type: string
                          description: Postal code of the address.
                        state:
                          type: string
                          description: State or region of the address.
                    created_at:
                      type: string
                      format: date-time
                      description: ISO 8601 timestamp of when the customer was created.
                    default_payment_method:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Identifier of the customer's default payment method.
                        `null` when the customer has no default payment method.
                    email:
                      type:
                        - string
                        - 'null'
                      description: Email of the customer. `null` when not provided.
                    metadata:
                      type: object
                      description: Set of key-value pairs attached to the customer.
                    mode:
                      type: string
                      enum:
                        - test
                        - live
                      description: >-
                        Mode of the object. `live` objects use real institution
                        data, `test` objects use fake data for integration
                        testing.
                      example: live
                    name:
                      type:
                        - string
                        - 'null'
                      description: Name of the customer. `null` when not provided.
                    phone:
                      type:
                        - string
                        - 'null'
                      description: Phone number of the customer. `null` when not provided.
                    tax_id:
                      type:
                        - object
                        - 'null'
                      description: >-
                        Tax identifier of the customer. `null` when not
                        provided.
                      properties:
                        type:
                          type: string
                          description: Type of the tax identifier, for example `cl_rut`.
                        value:
                          type: string
                          description: Value of the tax identifier.
                customer_email:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Email of your customer, used to send payment notifications.
                    `null` when not provided.
                  example: customer@example.com
                customer_phone:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Phone number of your customer in E.164 format, used for
                    `cash` payment notifications. `null` when not provided.
                  example: '+525500000000'
                error_reason:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Reason the payment failed, was rejected, or expired. `null`
                    while the payment is in progress and when it succeeds.
                    `fraud_risk` means Fintoc blocked the card payment during
                    checkout.
                  example: insufficient_funds
                expires_at:
                  type:
                    - string
                    - 'null'
                  format: date-time
                  description: >-
                    ISO 8601 timestamp of when the payment expires and can no
                    longer be paid. Only set for cash payments; `null`
                    otherwise.
                invoices:
                  type: array
                  items:
                    type: string
                  description: >-
                    Identifiers of the invoices paid by the payment intent.
                    Empty when the payment intent doesn't pay any invoice.
                  example:
                    - inv_3K3U2iyxtXT1f1f6BFPIoDPD93C
                metadata:
                  type: object
                  description: Set of key-value pairs attached to the payment intent.
                  example:
                    order_id: '9182'
                mode:
                  type: string
                  enum:
                    - test
                    - live
                  description: >-
                    Mode of the object. `live` objects use real institution
                    data, `test` objects use fake data for integration testing.
                  example: live
                next_action:
                  type:
                    - object
                    - 'null'
                  description: >-
                    Action your customer must complete to continue the payment,
                    as reported by the widget. `null` when no action is pending.
                payment_method:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Identifier of the saved payment method used to pay, or of
                    the payment method saved during the checkout session. `null`
                    otherwise.
                  example: pm_1x7vKQ8oEATXonG6
                payment_type:
                  type: string
                  description: Payment type used to pay. One of `bank_transfer` or `cash`.
                  example: bank_transfer
                payment_type_options:
                  type: object
                  description: >-
                    Options specific to the payment type, keyed by payment type.
                    For cash payments, contains a `cash` object with the details
                    of the payment. Empty for bank transfers.
                  properties:
                    cash:
                      type: object
                      description: >-
                        Details of the cash payment. Present only for cash
                        payments.
                      properties:
                        barcode_url:
                          type:
                            - string
                            - 'null'
                          description: >-
                            URL of the barcode your customer scans to pay in
                            cash.
                          example: https://cash.fintoc.com/barcode/9182.png
                        notification_preferences:
                          type: object
                          description: >-
                            Notifications Fintoc sends to your customer for this
                            cash payment, with the defaults applied to the
                            values you omitted.
                          properties:
                            channels:
                              type: array
                              items:
                                type: string
                                enum:
                                  - email
                                  - phone
                              description: >-
                                Channels Fintoc uses to reach your customer.
                                Each one of `email` (sent to `customer_email`)
                                or `phone` (sent to `customer_phone`). Empty
                                when the payment has no contact.
                              example:
                                - phone
                            send_reminders:
                              type: boolean
                              description: >-
                                Preference for payment reminders. Fintoc stores
                                this value; reminder delivery is not active.
                              example: true
                            send_voucher:
                              type: boolean
                              description: >-
                                If `true`, Fintoc sends the payment voucher to
                                your customer through `channels` when the cash
                                payment is created.
                              example: true
                          required:
                            - channels
                            - send_voucher
                            - send_reminders
                        reference_number:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Reference number your customer uses to pay the cash
                            payment.
                          example: '9182037465'
                        voucher_url:
                          type:
                            - string
                            - 'null'
                          description: >-
                            URL of the voucher your customer presents to pay in
                            cash.
                          example: https://cash.fintoc.com/voucher/9182.pdf
                      required:
                        - reference_number
                        - barcode_url
                        - voucher_url
                        - notification_preferences
                  example: {}
                recipient_account:
                  type:
                    - object
                    - 'null'
                  description: >-
                    Bank account that receives the payment. `null` for cash
                    payments.
                  properties:
                    holder_id:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Tax identifier of the account holder. Chilean tax ID
                        (RUT) in Chile, Mexican tax ID (RFC) in Mexico.
                    institution_id:
                      type:
                        - string
                        - 'null'
                      description: Identifier of the institution of the account.
                    number:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Number of the account. In Mexico, the standardized
                        Mexican bank account number (CLABE).
                    type:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Type of the account, such as `checking_account` or
                        `sight_account`.
                  required:
                    - holder_id
                    - number
                    - type
                    - institution_id
                reference_id:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Identifier of the transfer assigned by the institution.
                    `null` until the transfer is executed.
                  example: '90123712'
                sender_account:
                  type:
                    - object
                    - 'null'
                  description: >-
                    Bank account your customer pays from. `null` until Fintoc
                    identifies the sender.
                  properties:
                    holder_id:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Tax identifier of the account holder. Chilean tax ID
                        (RUT) in Chile, Mexican tax ID (RFC) in Mexico.
                    institution_id:
                      type:
                        - string
                        - 'null'
                      description: Identifier of the institution of the account.
                    number:
                      type:
                        - string
                        - 'null'
                      description: Number of the account.
                    type:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Type of the account, such as `checking_account` or
                        `sight_account`.
                  required:
                    - holder_id
                    - number
                    - type
                    - institution_id
                split_applied:
                  type:
                    - array
                    - 'null'
                  description: >-
                    Amounts each entity receives from the payment. `null` when
                    the payment's checkout session has no split.
                  items:
                    type: object
                    properties:
                      calculated_amount:
                        type: integer
                        description: >-
                          Amount the entity receives, in the smallest unit of
                          `currency`. For `percentage` splits, the amount is
                          calculated from the split's basis points, and any
                          rounding remainder goes to the first entity with
                          `charge_processing_fee` set to `true`, or to the first
                          entity when no entity pays the fee.
                      charge_processing_fee:
                        type: boolean
                        description: >-
                          If `true`, the entity pays part of the Fintoc
                          processing fee, based on the entry's share of the
                          total `calculated_amount` among entries that set
                          `charge_processing_fee` to `true`. The fee is deducted
                          at disbursement and is not deducted from
                          `calculated_amount`.
                      entity_id:
                        type: string
                        description: >-
                          Unique identifier of the entity that receives this
                          portion of the payment.
                    required:
                      - calculated_amount
                      - charge_processing_fee
                      - entity_id
                status:
                  type: string
                  enum:
                    - created
                    - failed
                    - succeeded
                    - rejected
                    - in_progress
                    - pending
                    - expired
                  description: >-
                    Lifecycle status of the payment intent. One of `created`,
                    `in_progress`, `succeeded`, `rejected`, `failed`, `expired`,
                    or `pending`. `pending` is only used when your organization
                    has the pending status enabled.
                  example: succeeded
                transaction_date:
                  type:
                    - string
                    - 'null'
                  format: date-time
                  description: >-
                    ISO 8601 timestamp of when the institution executed the
                    transfer. `null` until the transfer is executed.
                  example: '2026-01-13T18:50:25Z'
                widget_token:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Token used to initialize the Fintoc widget for this payment
                    intent. Only returned when the payment intent is created;
                    `null` in every other response.
                  example: pi_BO381oEATXonG6bj_sec_aBcDeFgHiJkLmNoP
              required:
                - id
                - object
                - amount
                - created_at
                - currency
                - customer
                - customer_email
                - customer_phone
                - error_reason
                - expires_at
                - invoices
                - metadata
                - mode
                - next_action
                - payment_method
                - payment_type
                - payment_type_options
                - recipient_account
                - reference_id
                - sender_account
                - split_applied
                - status
                - transaction_date
                - widget_token
          required:
            - payment_intent
        redirect_url:
          type:
            - string
            - 'null'
          description: >-
            URL of the Fintoc-hosted checkout page where your customer completes
            the payment. Redirect your customer to this URL after creating the
            session. `null` for sessions paid through the Fintoc widget instead
            of a redirect.
          example: https://pay.fintoc.com/cs_li5531onlFDi235
        save_payment_method:
          type:
            - string
            - 'null'
          enum:
            - disabled
            - enabled
            - null
          description: >-
            Whether the session offers your customer the option to save their
            payment method for future payments. One of `enabled` or `disabled`.
            Only returned for `payment` flow sessions; `null` when not
            configured.
          example: enabled
        session_token:
          type:
            - string
            - 'null'
          description: >-
            Token used to initialize the Fintoc widget or Fintoc's card fields
            for the session. `null` for `subscription` flow sessions, for
            `setup` flow sessions whose `ui_mode` isn't `fields`, and for
            payments completed outside the widget, like card payments without
            `ui_mode`.
          example: eyJhbGciOiJIUzI1NiJ9.eyJpZCI6ImNzX2xpNTUzMSJ9.iV2qAVrqYLuqxF4
        set_as_default:
          type:
            - string
            - 'null'
          enum:
            - disabled
            - enabled
            - null
          description: >-
            Whether to offer your customer the option to make the payment method
            they save their default payment method. One of `enabled` or
            `disabled`. Only returned for `payment` and `setup` flow sessions;
            `null` when not configured.
          example: enabled
        setup_intent:
          type:
            - string
            - 'null'
          description: >-
            Unique identifier for the setup intent created by `setup` and
            `subscription` flow sessions. `null` for other flows and until
            Fintoc attempts a setup. Retrieve the setup intent's status and
            error with the setup intent endpoint.
          example: seti_xL9mPq2RkV3WnDQG
        split:
          type:
            - array
            - 'null'
          description: >-
            Rules for dividing the payment between entities, exactly as you
            provided them when creating the session. `null` when the session was
            created without a split.
          items:
            type: object
            properties:
              amount:
                type: integer
                description: >-
                  Portion of the payment the entity receives. For `flat` splits,
                  an amount in the smallest unit of `currency`. For `percentage`
                  splits, basis points, where `10000` means 100%, so `2550`
                  means 25.50%.
                example: 350000
              charge_processing_fee:
                type: boolean
                description: >-
                  If `true`, the entity pays part of the Fintoc processing fee,
                  based on the entry's share of the total `amount` among entries
                  that set `charge_processing_fee` to `true`. The fee is
                  deducted at disbursement and does not change the split
                  amounts.
                example: true
              entity_id:
                type: string
                description: >-
                  Unique identifier of the entity that receives this portion of
                  the payment.
                example: ent_xK9mPq2RkV3WnDQG
              metadata:
                type: object
                description: Set of key-value pairs you attached to the split entry.
              type:
                type: string
                enum:
                  - flat
                  - percentage
                description: >-
                  How `amount` is expressed. `flat` for a fixed amount in the
                  smallest unit of `currency`, or `percentage` for basis points.
                example: flat
            required:
              - amount
              - charge_processing_fee
              - entity_id
              - metadata
              - type
        split_applied:
          type:
            - array
            - 'null'
          description: >-
            Amounts each entity receives from the payment. `null` when the
            session was created without a split.
          items:
            type: object
            properties:
              calculated_amount:
                type: integer
                description: >-
                  Amount the entity receives, in the smallest unit of
                  `currency`. For `percentage` splits, the amount is calculated
                  from the split's basis points, and any rounding remainder goes
                  to the first entity with `charge_processing_fee` set to
                  `true`, or to the first entity when no entity pays the fee.
                example: 350000
              charge_processing_fee:
                type: boolean
                description: >-
                  If `true`, the entity pays part of the Fintoc processing fee,
                  based on the entry's share of the total `calculated_amount`
                  among entries that set `charge_processing_fee` to `true`. The
                  fee is deducted at disbursement and is not deducted from
                  `calculated_amount`.
                example: true
              entity_id:
                type: string
                description: >-
                  Unique identifier of the entity that receives this portion of
                  the payment.
                example: ent_xK9mPq2RkV3WnDQG
            required:
              - calculated_amount
              - charge_processing_fee
              - entity_id
        status:
          type: string
          enum:
            - created
            - in_progress
            - expired
            - finished
          description: >-
            Lifecycle status of the session. `created` until your customer
            starts paying, `in_progress` while Fintoc processes the payment, and
            `finished` or `expired` once the session succeeds or expires.
          example: created
        subscription:
          type:
            - string
            - 'null'
          description: >-
            `id` of the subscription started by a `subscription` flow session.
            `null` until the subscription is created and for other flows.
          example: sub_xL9mPq2RkV3WnDQG
        success_url:
          type:
            - string
            - 'null'
          description: >-
            URL Fintoc redirects your customer to after a successful payment.
            `null` when the session was created without redirect URLs.
          example: https://merchant.com/success
        trial_end:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            ISO 8601 datetime, in UTC, when the trial for the subscription
            started by the session ends and charges begin. The API returns this
            field only for `subscription` flow sessions; the value is `null`
            when the session was created without a trial.
          example: '2026-01-24T18:48:25Z'
      required:
        - id
        - object
        - amount
        - business_profile
        - cancel_url
        - created_at
        - currency
        - customer_email
        - customer_phone
        - expires_at
        - flow
        - line_items
        - metadata
        - mode
        - payment_method
        - payment_method_options
        - payment_method_types
        - payment_resource
        - redirect_url
        - session_token
        - setup_intent
        - split
        - split_applied
        - status
        - subscription
        - success_url
    error_object_v2:
      type: object
      properties:
        error:
          type: object
          description: Details of the error that caused the request to fail.
          properties:
            code:
              type: string
              description: >-
                Machine-readable code identifying the specific error, for
                example `invalid_api_key`. Not returned by every error.
              example: invalid_api_key
            doc_url:
              type: string
              description: >-
                URL of a documentation page with more details about the error.
                Not returned by every error.
              example: https://docs.fintoc.com/reference/errors
            message:
              type: string
              description: Human-readable message describing the error.
              example: 'Invalid API Key: invalid-*oken'
            param:
              type:
                - string
                - 'null'
              description: >-
                Name of the request parameter that caused the error. `null` when
                the error cannot be tied to a single parameter, and not returned
                by every error.
              example: amount
            type:
              type: string
              description: >-
                Category of the error, for example `invalid_request_error`,
                `authentication_error`, or `api_error`.
              example: invalid_request_error
          required:
            - type
            - message
    error_object:
      type: object
      properties:
        error:
          type: object
          description: Details of the error that caused the request to fail.
          properties:
            code:
              type: string
              description: >-
                Machine-readable code identifying the specific error, for
                example `invalid_api_key`. Not returned by every error.
              example: invalid_api_key
            doc_url:
              type: string
              description: >-
                URL of a documentation page with more details about the error.
                Not returned by every error.
              example: https://docs.fintoc.com/reference/errors
            message:
              type: string
              description: Human-readable message describing the error.
              example: 'Invalid API Key: invalid-*oken'
            param:
              type:
                - string
                - 'null'
              description: >-
                Name of the request parameter that caused the error. `null` when
                the error cannot be tied to a single parameter, and not returned
                by every error.
              example: amount
            type:
              type: string
              description: >-
                Category of the error, for example `invalid_request_error`,
                `authentication_error`, or `api_error`.
              example: invalid_request_error
          required:
            - type
            - message
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header

````