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

# Post v1accountorders payment

> Creates or resumes the provider payment. The key is scoped to the order and the chosen adapter, so switching provider is a new payment while pressing the same button twice is not. The provider defaults to the one the order's payment already names, then to the one the checkout that became this order recorded. An order that is no longer pending, or whose expiry has passed, answers `409 order_not_payable`; a configured method that does not settle the order's currency answers `422 provider_currency_unsupported`.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/account/orders/{orderID}/payment
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/account/orders/{orderID}/payment:
    post:
      tags:
        - account
      description: >-
        Creates or resumes the provider payment. The key is scoped to the order
        and the chosen adapter, so switching provider is a new payment while
        pressing the same button twice is not. The provider defaults to the one
        the order's payment already names, then to the one the checkout that
        became this order recorded. An order that is no longer pending, or whose
        expiry has passed, answers `409 order_not_payable`; a configured method
        that does not settle the order's currency answers `422
        provider_currency_unsupported`.
      operationId: startAccountOrderPayment
      parameters:
        - $ref: '#/components/parameters/OrderID'
        - $ref: '#/components/parameters/CSRFToken'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                provider:
                  type: string
      responses:
        '200':
          description: Payment handoff
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountPaymentHandle'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    OrderID:
      in: path
      name: orderID
      required: true
      schema:
        type: string
        format: uuid
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
    IdempotencyKey:
      in: header
      name: Idempotency-Key
      required: true
      schema:
        type: string
        minLength: 8
        maxLength: 128
  schemas:
    AccountPaymentHandle:
      type: object
      required:
        - id
        - provider
        - status
        - amountMinor
        - currency
        - handoff
      properties:
        id:
          type: string
          format: uuid
        provider:
          type: string
        status:
          type: string
        amountMinor:
          type: integer
          format: int64
        currency:
          type: string
        handoff:
          type: string
          enum:
            - hosted
            - telegram_invoice
            - manual
            - none
          description: >-
            How the customer completes the payment. `none` means nothing further
            is owed, which is what a wallet-covered order looks like.
        checkoutUrl:
          type: string
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

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