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

# Zamówienia klienta



## OpenAPI

````yaml /openapi.pl.json get /api/v2/orders/{shopId}/customers/{nickname}/orders
openapi: 3.0.0
info:
  title: ItemShop v2 API
  description: >-
    REST API platformy ItemShop v2 (NestJS + Fastify). Wszystkie ścieżki mają
    prefiks /api/v2.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.itemshop.dev
    description: Produkcja
  - url: http://localhost:3000
    description: Lokalnie
security: []
tags: []
paths:
  /api/v2/orders/{shopId}/customers/{nickname}/orders:
    get:
      tags:
        - Orders
      summary: Zamówienia klienta
      operationId: OrderController_getCustomerOrders
      parameters:
        - name: shopId
          required: true
          in: path
          schema:
            type: string
          description: ID sklepu (ObjectId)
        - name: nickname
          required: true
          in: path
          schema:
            type: string
          description: Nick gracza
        - name: limit
          required: false
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Order'
                  message:
                    type: string
        '400':
          description: Błędne dane wejściowe
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Brak/niepoprawne uwierzytelnienie
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Brak uprawnień / dostępu
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Nie znaleziono
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Przekroczony limit żądań
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
        - bearerAuth: []
components:
  schemas:
    Order:
      type: object
      properties:
        _id:
          type: string
          example: 664f1a2b3c4d5e6f7a8b9c0d
        orderNumber:
          type: string
          example: 3a7b9c2d
        status:
          type: string
          example: paid
          enum:
            - pending
            - paid
            - processing
            - completed
            - cancelled
            - failed
            - dispute
        product:
          type: object
          properties:
            id:
              type: string
              example: 664f1a2b3c4d5e6f7a8b9c0d
            name:
              type: string
            price:
              type: number
        customer:
          type: object
          properties:
            nickname:
              type: string
              example: Steve
            email:
              type: string
        payment:
          type: object
          properties:
            amount:
              type: number
              example: 19.99
            currency:
              type: string
              example: PLN
            fee:
              type: object
              properties:
                percentage:
                  type: number
                amount:
                  type: number
                netAmount:
                  type: number
        vat:
          type: object
          properties:
            enabled:
              type: boolean
            rate:
              type: number
              example: 23
            amount:
              type: number
            netAmount:
              type: number
        quantity:
          type: integer
          example: 1
        createdAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        statusCode:
          type: integer
          example: 400
        error:
          type: string
          example: Komunikat błędu
        timestamp:
          type: string
          format: date-time
        path:
          type: string
          example: /api/v2/...
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    bearerAuth:
      scheme: bearer
      bearerFormat: JWT
      type: http

````