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

# Get All Orders

> Get all orders for the current user.



## OpenAPI

````yaml GET /v1/orders
openapi: 3.0.3
info:
  title: Chessa Accounts API
  description: API collection for Chessa Accounts services
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.chessa.ai
security: []
tags:
  - name: User Endpoints
    description: Endpoints related to user management
  - name: Configuration Endpoints
    description: Endpoints for fetching application configurations
  - name: Recipient Endpoints
    description: Endpoints for managing recipients
  - name: Order Endpoints
    description: Endpoints for managing orders
  - name: Rate Endpoints
    description: Endpoints for exchange rates and fees
  - name: Referral Endpoints
    description: Endpoints for managing referrals
paths:
  /v1/orders:
    get:
      tags:
        - Order Endpoints
      summary: Get All Orders
      description: Get all orders for the current user.
      operationId: getAllOrders
      parameters:
        - name: x-client-id
          in: header
          schema:
            type: string
            example: ''
        - name: x-client-secret
          in: header
          schema:
            type: string
            example: ''
      responses:
        '200':
          description: Success Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  orders:
                    type: array
                    items:
                      type: object
                      properties:
                        completedAt:
                          type: string
                          nullable: true
                          example: '2025-03-15T14:15:22.456Z'
                        createdAt:
                          type: string
                          example: '2025-03-15T12:30:45.123Z'
                        cryptoAmount:
                          type: string
                          example: '0.05'
                        cryptoAsset:
                          type: string
                          example: BTC
                        exchangeRate:
                          type: string
                          example: '25000000'
                        fiatAmount:
                          type: string
                          example: '1250000'
                        fiatCurrency:
                          type: string
                          example: NGN
                        id:
                          type: string
                          example: ord_123456789abcdef
                        recipientId:
                          type: string
                          example: rec_abcdef123456789
                        status:
                          type: string
                          example: completed
                        updatedAt:
                          type: string
                          example: '2025-03-15T14:15:22.456Z'
                        userId:
                          type: string
                          example: usr_987654321fedcba
                    example:
                      - completedAt: '2025-03-15T14:15:22.456Z'
                        createdAt: '2025-03-15T12:30:45.123Z'
                        cryptoAmount: '0.05'
                        cryptoAsset: BTC
                        exchangeRate: '25000000'
                        fiatAmount: '1250000'
                        fiatCurrency: NGN
                        id: ord_123456789abcdef
                        recipientId: rec_abcdef123456789
                        status: completed
                        updatedAt: '2025-03-15T14:15:22.456Z'
                        userId: usr_987654321fedcba
                      - completedAt: null
                        createdAt: '2025-03-17T09:45:33.789Z'
                        cryptoAmount: '1.2'
                        cryptoAsset: ETH
                        exchangeRate: '1250000'
                        fiatAmount: '1500000'
                        fiatCurrency: NGN
                        id: ord_abcdef123456789
                        recipientId: rec_123456789abcdef
                        status: processing
                        updatedAt: '2025-03-17T10:22:15.321Z'
                        userId: usr_987654321fedcba
                  pagination:
                    type: object
                    properties:
                      page:
                        type: number
                        example: 1
                      pageSize:
                        type: number
                        example: 10
                      pages:
                        type: number
                        example: 2
                      total:
                        type: number
                        example: 15
              examples:
                Success Response:
                  value:
                    orders:
                      - completedAt: '2025-03-15T14:15:22.456Z'
                        createdAt: '2025-03-15T12:30:45.123Z'
                        cryptoAmount: '0.05'
                        cryptoAsset: BTC
                        exchangeRate: '25000000'
                        fiatAmount: '1250000'
                        fiatCurrency: NGN
                        id: ord_123456789abcdef
                        recipientId: rec_abcdef123456789
                        status: completed
                        updatedAt: '2025-03-15T14:15:22.456Z'
                        userId: usr_987654321fedcba
                      - completedAt: null
                        createdAt: '2025-03-17T09:45:33.789Z'
                        cryptoAmount: '1.2'
                        cryptoAsset: ETH
                        exchangeRate: '1250000'
                        fiatAmount: '1500000'
                        fiatCurrency: NGN
                        id: ord_abcdef123456789
                        recipientId: rec_123456789abcdef
                        status: processing
                        updatedAt: '2025-03-17T10:22:15.321Z'
                        userId: usr_987654321fedcba
                    pagination:
                      page: 1
                      pageSize: 10
                      pages: 2
                      total: 15
        '404':
          description: Error Response - User Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: not_found
                  message:
                    type: string
                    example: User not found
                  statusCode:
                    type: number
                    example: 404
              examples:
                Error Response - User Not Found:
                  value:
                    error: not_found
                    message: User not found
                    statusCode: 404

````