> ## 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.

# Get v1accountorders



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml get /v1/account/orders
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:
    get:
      tags:
        - account
      operationId: listAccountOrders
      parameters:
        - $ref: '#/components/parameters/Cursor'
        - in: query
          name: cursorId
          schema:
            type: string
            format: uuid
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 100
        - in: query
          name: locale
          schema:
            type: string
            enum:
              - ru
              - en
      responses:
        '200':
          description: Orders
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountOrderPage'
        '400':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    Cursor:
      in: query
      name: cursor
      schema:
        type: string
        description: Opaque keyset cursor from the previous page.
  schemas:
    AccountOrderPage:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AccountOrder'
        nextCursor:
          type: string
        nextCursorId:
          type: string
          format: uuid
    AccountOrder:
      type: object
      required:
        - id
        - state
        - operation
        - phase
        - currency
        - subtotalMinor
        - discountMinor
        - walletMinor
        - externalMinor
        - paidMinor
        - refundedMinor
        - plan
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        state:
          type: string
          enum:
            - draft
            - pending
            - paid
            - fulfilled
            - cancelled
            - expired
            - partially_refunded
            - refunded
        operation:
          type: string
        phase:
          type: string
          description: >-
            The combined payment and provisioning state the panel renders: what
            the customer is waiting for, rather than which table changed.
        currency:
          type: string
        subtotalMinor:
          type: integer
          format: int64
        discountMinor:
          type: integer
          format: int64
        walletMinor:
          type: integer
          format: int64
        externalMinor:
          type: integer
          format: int64
        paidMinor:
          type: integer
          format: int64
        refundedMinor:
          type: integer
          format: int64
        plan:
          type: string
        subscriptionId:
          type: string
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        payment:
          type: object
          required:
            - id
            - provider
            - status
            - handoff
          properties:
            id:
              type: string
              format: uuid
            provider:
              type: string
            status:
              type: string
            handoff:
              type: string
              enum:
                - hosted
                - telegram_invoice
                - manual
                - none
            checkoutUrl:
              type: string
            receiptUrl:
              type: string
        fulfillment:
          type: object
          description: >-
            Provisioning progress, read from the fulfillment operation rather
            than carried by the client.
          required:
            - status
            - attempts
          properties:
            status:
              type: string
            attempts:
              type: integer
            errorCode:
              type: string
            updatedAt:
              type: string
              format: date-time
        refunds:
          type: array
          items:
            type: object
            required:
              - status
              - amountMinor
              - currency
              - createdAt
            properties:
              status:
                type: string
              amountMinor:
                type: integer
                format: int64
              currency:
                type: string
              createdAt:
                type: string
                format: date-time
        paymentChoices:
          type: array
          description: >-
            The methods that can settle this order in its currency, each priced
            at what the order still owes. Present on the detail response while
            the order is pending and owes something, so the page can offer a
            method without depending on the URL the checkout redirected to.
            Telegram Stars appears only for a customer with a Telegram identity.
          items:
            $ref: '#/components/schemas/AccountPaymentChoice'
        preferredProvider:
          type: string
          description: >-
            The method the checkout recorded, while that checkout is still
            attached to the order.
    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
    AccountPaymentChoice:
      type: object
      required:
        - provider
        - currency
        - recurring
      properties:
        provider:
          type: string
        currency:
          type: string
        amountMinor:
          type: integer
          format: int64
        recurring:
          type: boolean
  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.