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



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml get /v1/account/shop/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/shop/orders:
    get:
      tags:
        - account
      operationId: listAccountShopOrders
      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/AccountShopOrderPage'
        '400':
          $ref: '#/components/responses/Problem'
        '503':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    Cursor:
      in: query
      name: cursor
      schema:
        type: string
        description: Opaque keyset cursor from the previous page.
  schemas:
    AccountShopOrderPage:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AccountShopOrder'
        nextCursor:
          type: string
        nextCursorId:
          type: string
          format: uuid
    AccountShopOrder:
      type: object
      required:
        - id
        - productName
        - kind
        - quantity
        - recipient
        - forSelf
        - currency
        - amounts
        - payment
        - delivery
      properties:
        id:
          type: string
          format: uuid
        productName:
          type: string
        kind:
          type: string
          enum:
            - telegram_premium
            - telegram_stars
        quantity:
          type: integer
        recipient:
          type: string
        forSelf:
          type: boolean
        currency:
          type: string
        amounts:
          type: object
          required:
            - priceMinor
            - discountMinor
            - walletMinor
            - externalMinor
            - paidMinor
          properties:
            priceMinor:
              type: integer
              format: int64
            discountMinor:
              type: integer
              format: int64
            walletMinor:
              type: integer
              format: int64
            externalMinor:
              type: integer
              format: int64
            paidMinor:
              type: integer
              format: int64
        payment:
          type: object
          required:
            - state
            - required
            - possible
          properties:
            state:
              type: string
            required:
              type: boolean
            possible:
              type: boolean
              description: >-
                An enabled provider settles this currency. False is stated
                rather than dead-ended.
        delivery:
          $ref: '#/components/schemas/AccountShopDelivery'
        createdAt:
          type: string
          format: date-time
    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
    AccountShopDelivery:
      type: object
      required:
        - state
        - attempts
        - supportHandoff
        - supportReference
      properties:
        state:
          type: string
          enum:
            - awaiting_payment
            - queued
            - submitted
            - polling
            - delayed
            - delivered
            - needs_review
            - refunded
            - failed
            - cancelled
          description: >-
            `needs_review` is an ambiguous delivery parked for an operator.
            There is no retry route for it: the gateway honours no idempotency
            key, so retrying could deliver and charge twice.
        attempts:
          type: integer
        supportHandoff:
          type: boolean
          description: True only for needs_review and failed.
        supportReference:
          type: string
        failureReason:
          type: string
          enum:
            - retryable
            - permanent
            - recipient_invalid
            - provider_balance
            - provider_unavailable
            - ambiguous
        deliveredAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        refund:
          type: object
          required:
            - amountMinor
            - currency
          properties:
            amountMinor:
              type: integer
              format: int64
            currency:
              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.