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

# Submit payment through the hosted checkout page



## OpenAPI

````yaml POST /v1/checkout/sessions/by-token/{token}/submit
openapi: 3.0.0
info:
  title: EQXPay API
  description: >-
    EQX v2.5 staging API for admin, liquidity-provider, and integrator
    operations.
  version: 2.5.0
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/checkout/sessions/by-token/{token}/submit:
    post:
      tags:
        - Checkout
      summary: Submit payment through the hosted checkout page
      operationId: CheckoutSessionsController_submitSession
      parameters:
        - name: X-Checkout-Token
          in: header
          description: Session token from checkout URL
          required: true
          schema:
            type: string
        - name: token
          required: true
          in: path
          description: Opaque checkout session token
          schema: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitCheckoutSessionRequestDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitCheckoutSessionResponseDto'
        '401':
          description: Missing or invalid checkout token
        '410':
          description: Session has expired
        '422':
          description: Session already used (double-bind)
components:
  schemas:
    SubmitCheckoutSessionRequestDto:
      type: object
      properties:
        rail:
          type: string
          example: mobile_money
          description: Payment rail code
        customer:
          type: object
          example:
            phone_number: '+265991234567'
          description: >-
            Rail-specific customer fields; must satisfy the rail capability
            customer_fields
      required:
        - rail
        - customer
    SubmitCheckoutSessionResponseDto:
      type: object
      properties:
        session_id:
          type: string
          example: e3d4b5c6-...
        status:
          type: string
          example: collection_bound
        collection_id:
          type: string
          example: a1b2c3d4-...
        collection_status:
          type: string
          example: pending
          description: Current collection status (created | pending | processing | ...)
      required:
        - session_id
        - status
        - collection_id
        - collection_status

````