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

# obter pedido

> retorna os detalhes de um pedido específico



## OpenAPI

````yaml /integracoes/store/store.json get /orders/{orderId}
openapi: 3.0.3
info:
  title: API sell-out
  description: API para gerenciamento de lojas e pedidos na plataforma teceo
  version: 1.0.0
servers:
  - url: https://api.teceo.co/store/v1
    description: produção
security:
  - bearerAuth: []
paths:
  /orders/{orderId}:
    get:
      tags:
        - pedidos
      summary: obter pedido
      description: retorna os detalhes de um pedido específico
      operationId: getOrder
      parameters:
        - name: orderId
          in: path
          required: true
          description: id único do pedido
          schema:
            type: string
      responses:
        '200':
          description: pedido encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderDetail'
              example:
                id: ord_xyz789
                number: PED-2025-0001
                status: confirmed
                total: 589.5
                brand:
                  id: brand_abc
                  name: distribuidora exemplo
                items:
                  - product_id: prod_abc123
                    name: refrigerante cola 2l
                    quantity: 10
                    unit_price: 8.9
                    subtotal: 89
                notes: entregar no período da manhã
                created_at: '2025-01-14T10:00:00Z'
                updated_at: '2025-01-14T10:05:00Z'
        '404':
          description: pedido não encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    OrderDetail:
      allOf:
        - $ref: '#/components/schemas/Order'
        - type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/OrderItem'
            notes:
              type: string
            updated_at:
              type: string
              format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        code:
          type: string
    Order:
      type: object
      properties:
        id:
          type: string
          description: id único do pedido
        number:
          type: string
          description: número do pedido
        status:
          type: string
          enum:
            - pending
            - confirmed
            - shipped
            - delivered
            - cancelled
          description: status do pedido
        total:
          type: number
          format: float
          description: valor total do pedido
        items_count:
          type: integer
          description: quantidade de itens
        brand:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
        created_at:
          type: string
          format: date-time
    OrderItem:
      type: object
      properties:
        product_id:
          type: string
        name:
          type: string
        quantity:
          type: integer
        unit_price:
          type: number
          format: float
        subtotal:
          type: number
          format: float
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````