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



## OpenAPI

````yaml /openapi/payments.yaml get /checkout/sessions/{sessionId}/status
openapi: 3.0.3
info:
  title: Simiz Payments API
  version: 2024-01
  description: >
    The Simiz Payments API lets you accept Mobile Money payments in Central and
    West Africa.


    ## Authentication


    All payment endpoints require a Bearer token using your API key:


    ```

    Authorization: Bearer smz_test_sk_xxx

    ```


    Checkout **public** endpoints (retrieve, pay, status, cancel) require no
    authentication — they are accessed by the end customer.


    ## Environments


    | Environment | Base URL | API Key Prefix |

    |-------------|----------|----------------|

    | **Sandbox** | `https://sandbox.api.simiz.io/v1` | `smz_test_` |

    | **Production** | `https://api.simiz.io/v1` | `smz_live_` |


    ## Idempotency


    For `POST` requests, include an `Idempotency-Key` header to safely retry
    requests without creating duplicate resources. Keys expire after 24 hours.
  contact:
    name: Simiz Support
    email: developer@simiz.io
    url: https://simiz.io/docs
  license:
    name: Proprietary
    url: https://simiz.io/legal/terms
servers:
  - url: https://api.simiz.io/v1
    description: Production — use smz_live_ keys
  - url: https://sandbox.api.simiz.io/v1
    description: Sandbox — use smz_test_ keys
security: []
tags:
  - name: Payments
    description: >
      Create and manage payment transactions. A transaction represents a single
      payment from a customer via Mobile Money. Authenticated with API key.
  - name: Checkout (Public)
    description: >
      Public checkout endpoints used by the payment page on the customer side.
      No authentication required.
  - name: Payment Links (Public)
    description: >
      Public payment link resolution. These endpoints are used by the hosted
      payment page when a customer opens a payment link. **No authentication
      required.**
paths:
  /checkout/sessions/{sessionId}/status:
    get:
      tags:
        - Checkout (Public)
      summary: Check payment status
      description: |
        Check the current payment status of a checkout session.
        Used for client-side polling. **No authentication required.**
      operationId: getCheckoutPaymentStatus
      parameters:
        - $ref: '#/components/parameters/SessionId'
      responses:
        '200':
          description: >-
            Current session status (idle, processing, pending_ussd, success,
            failed, expired, cancelled)
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/CheckoutSessionStatus'
                  paymentId:
                    type: string
                    nullable: true
                    example: pay_xyz789
        '404':
          $ref: '#/components/responses/NotFound'
      security: []
components:
  parameters:
    SessionId:
      name: sessionId
      in: path
      required: true
      description: 'Checkout session ID (format: cs_xxx)'
      schema:
        type: string
        example: cs_abc123
  schemas:
    CheckoutSessionStatus:
      type: string
      enum:
        - idle
        - processing
        - pending_ussd
        - success
        - failed
        - expired
        - cancelled
      description: |
        Checkout session lifecycle:
        - `idle` — Session created, waiting for payment initiation
        - `processing` — Payment being processed
        - `pending_ussd` — Waiting for USSD confirmation from payer
        - `success` — Payment completed
        - `failed` — Payment failed
        - `expired` — Session expired
        - `cancelled` — Session cancelled
    ApiError:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            statusCode: 404
            message: Payment not found
            error: Not Found

````