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

# Obtiene una orden por ID



## OpenAPI

````yaml get /orders/{id}
openapi: 3.0.3
info:
  title: Esolbay API
  version: 1.0.0
  description: API Esolbay.
servers:
  - url: http://localhost:3000/api/v1
    description: Ruta base local
  - url: https://api.esolbay.com/api/v1
    description: Producción
  - url: https://staging.esolbay.com/api/v1
    description: Staging
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /orders/{id}:
    get:
      tags:
        - Orders
      summary: Obtiene una orden por ID
      operationId: getOrder
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Orden encontrada
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  code:
                    type: string
                  status:
                    type: string
                  title:
                    type: string
                  amount:
                    type: number
                  currency:
                    type: string
                  paymentDays:
                    type: number
                  paymentMethod:
                    type: string
                  deliveryMethod:
                    type: string
                  deliveryDate:
                    nullable: true
                  createdAt:
                    nullable: true
                  updatedAt:
                    nullable: true
                required:
                  - id
                example:
                  id: ord_01
                  code: O-2025-0001
                  status: created
                  amount: 123.45
                  currency: USD
                  title: Compra de insumos
        '401':
          description: Unauthorized
        '404':
          description: No encontrada
        '500':
          description: Error interno del servidor
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````