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

# Obter pedido

> Retorna os detalhes de um pedido pelo identificador.



## OpenAPI

````yaml GET /v1/order/{pedidoId}
openapi: 3.0.1
info:
  title: WebIntegration
  description: Este documento descreve os endpoints disponíveis da API.
  version: '1.0'
servers:
  - url: https://api.staging.cartaosimples.com.br/integration
    description: Servidor para o ambiente de staging
security:
  - bearerAuth: []
paths:
  /v1/order/{pedidoId}:
    get:
      tags:
        - Pedido
      summary: Obter pedido.
      description: Retorna os detalhes de um pedido pelo identificador.
      operationId: getOrder
      parameters:
        - name: pedidoId
          in: path
          description: Identificador único do pedido.
          required: true
          schema:
            type: string
            format: uuid
            example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
          example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Integration.Shared.Responses.Order.OrderIntegrationResponse
              example:
                id: 3c90c3cc-0d44-4b50-8888-8dd25736052a
                numero: 1001
                status:
                  valor: 2
                  descricao: Aprovado
                total: 1500
                nomeCliente: João da Silva
                documentoCliente: '12345678901'
                prazo: 12
                razaoSocialEstabelecimento: Loja Exemplo LTDA
                documentoEstabelecimento: '12345678000195'
                descricao: Compra de eletrônicos
                valorAprovado: 1500
                desembolsado: true
                criadoEm: '2025-01-15T10:30:00-03:00'
                desembolsadoEm: '2025-01-16T09:00:00-03:00'
                valorSolicitado: 1500
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '500':
          description: Internal Server Error
components:
  schemas:
    Integration.Shared.Responses.Order.OrderIntegrationResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        numero:
          type: integer
          format: int64
        status:
          $ref: '#/components/schemas/Integration.Shared.Responses.Order.OrderStatus'
        total:
          type: number
          format: double
          nullable: true
        nomeCliente:
          type: string
          nullable: true
        documentoCliente:
          type: string
        prazo:
          type: integer
          format: int32
          nullable: true
        razaoSocialEstabelecimento:
          type: string
        documentoEstabelecimento:
          type: string
        descricao:
          type: string
          nullable: true
        valorAprovado:
          type: number
          format: double
          nullable: true
        desembolsado:
          type: boolean
          nullable: true
        criadoEm:
          type: string
          format: date-time
        desembolsadoEm:
          type: string
          format: date-time
          nullable: true
        valorSolicitado:
          type: number
          format: double
          nullable: true
      additionalProperties: false
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        tipo:
          type: string
          nullable: true
        titulo:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detalhe:
          type: string
          nullable: true
        instancia:
          type: string
          nullable: true
      example:
        tipo: https://tools.ietf.org/html/rfc7231#section-6.5.1
        titulo: Requisição inválida.
        status: 400
        detalhe: O campo 'cpf' é obrigatório.
        instancia: /v1/order
    Integration.Shared.Responses.Order.OrderStatus:
      type: object
      description: >
        Status do pedido. Consulte a legenda completa em [Webhooks → Legenda do
        EnumStatus](/webhooks).
      properties:
        valor:
          type: integer
          format: int32
        descricao:
          type: string
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Cabeçalho de autenticação Bearer no formato `Bearer <token>` onde
        `<token>` é seu TOKEN de autenticação

````