---
title: "Obter pedido"
method: GET
path: "/pedidos/{idPedido}"
tags: ["Pedidos"]
---

# Obter pedido

`GET /pedidos/{idPedido}`

## Path parameters

- `idPedido` integer, required

## Response `200`

OK

- ObterPedidoModelResponse — 
  - `id` integer, nullable
  - `numeroPedido` integer, nullable
  - `idNotaFiscal` integer, nullable
  - `dataFaturamento` string, nullable
  - `valorTotalProdutos` number, float, nullable
  - `valorTotalPedido` number, float, nullable
  - `listaPreco` ListaPrecoResponseModel — 
    - `id` integer
    - `nome` string
    - `acrescimoDesconto` number, float
  - `cliente` PedidoClienteModel — 
    - `nome` string, nullable
    - `codigo` string, nullable
    - `fantasia` string, nullable
    - `tipoPessoa` 'J' | 'F' | 'E' | 'X', nullable — - J - Juridica - F - Fisica - E - Estrangeiro - X - Estrangeiro No Brasil
    - `cpfCnpj` string, nullable
    - `inscricaoEstadual` string, nullable
    - `rg` string, nullable
    - `telefone` string, nullable
    - `celular` string, nullable
    - `email` string, nullable
    - `endereco` EnderecoModel — 
      - `endereco` string, nullable
      - `numero` string, nullable
      - `complemento` string, nullable
      - `bairro` string, nullable
      - `municipio` string, nullable
      - `cep` string, nullable
      - `uf` string, nullable
      - `pais` string, nullable
    - `id` integer
  - `enderecoEntrega` EnderecoEntregaModelResponse — 
    - `endereco` string, nullable
    - `numero` string, nullable
    - `complemento` string, nullable
    - `bairro` string, nullable
    - `municipio` string, nullable
    - `cep` string, nullable
    - `uf` string, nullable
    - `pais` string, nullable
    - `nomeDestinatario` string, nullable
    - `cpfCnpj` string, nullable
    - `tipoPessoa` string, nullable
    - `telefone` string, nullable
    - `inscricaoEstadual` string, nullable
  - `ecommerce` EcommerceResponseModel — 
    - `id` integer, nullable
    - `nome` string, nullable
    - `numeroPedidoEcommerce` string, nullable
    - `numeroPedidoCanalVenda` string, nullable
    - `canalVenda` string, nullable
  - `transportador` TransportadorResponseModel — 
    - `id` integer, nullable
    - `nome` string, nullable
    - `fretePorConta` 'R' | 'D' | 'T' | '3' | '4' | 'S', nullable — - R - Remetente - D - Destinatario - T - Terceiros - 3 - Proprio Remetente - 4 - Proprio Destinatario - S - Sem Transporte
    - `formaEnvio` FormaEnvioResponseModel — 
      - `id` integer
      - `nome` string, nullable
    - `formaFrete` FormaFreteResponseModel — 
      - `id` integer, nullable
      - `nome` string, nullable
    - `codigoRastreamento` string, nullable
    - `urlRastreamento` string, nullable
  - `deposito` DepositoResponseModel — 
    - `id` integer
    - `nome` string
  - `vendedor` VendedorResponseModel — 
    - `id` integer
    - `nome` string, nullable
  - `naturezaOperacao` NaturezaOperacaoResponseModel — 
    - `id` integer, nullable
    - `nome` string, nullable
  - `intermediador` IntermediadorResponseModel — 
    - `id` integer
    - `nome` string
    - `cnpj` string
    - `cnpjPagamentoInstituicao` string, nullable
  - `pagamento` PagamentoResponseModel — 
    - `formaRecebimento` FormaRecebimentoResponseModel — 
      - `id` integer
      - `nome` string, nullable
    - `meioPagamento` MeioPagamentoResponseModel — 
      - `id` integer
      - `nome` string, nullable
    - `condicaoPagamento` string, nullable
    - `parcelas` ParcelaModelResponse[], nullable
      - `dias` integer, nullable
      - `data` string, nullable
      - `valor` number, float, nullable
      - `observacoes` string, nullable
      - `formaRecebimento` FormaRecebimentoResponseModel — 
        - `id` integer
        - `nome` string, nullable
      - `meioPagamento` MeioPagamentoResponseModel — 
        - `id` integer
        - `nome` string, nullable
  - `itens` ItemPedidoResponseModel[], nullable
    - `produto` ProdutoResponseModel — 
      - `id` integer, nullable
      - `sku` string, nullable
      - `descricao` string, nullable
      - `tipo` 'P' | 'S', nullable — - P - Produto - S - Servico
    - `quantidade` number, float
    - `valorUnitario` number, float
    - `infoAdicional` string
  - `pagamentosIntegrados` PagamentoIntegradoModelResponse[], nullable
    - `valor` number, float — Valor do pagamento
    - `tipoPagamento` integer — Tipo de pagamento
    - `cnpjIntermediador` string — CNPJ do intermediador
    - `codigoAutorizacao` string — Código de autorização
    - `codigoBandeira` integer — Código da bandeira
  - `situacao` 8 | 0 | 3 | 4 | 1 | 7 | 5 | 6 | 2 | 9, nullable — - 8 - Dados Incompletos - 0 - Aberta - 3 - Aprovada - 4 - Preparando Envio - 1 - Faturada - 7 - Pronto Envio - 5 - Enviada - 6 - Entregue - 2 - Cancelada - 9 - Nao Entregue
  - `data` string, nullable
  - `dataEntrega` string, nullable
  - `numeroOrdemCompra` string, nullable
  - `valorDesconto` number, float, nullable
  - `valorFrete` number, float, nullable
  - `valorOutrasDespesas` number, float, nullable
  - `dataPrevista` string, nullable
  - `dataEnvio` string, nullable
  - `observacoes` string, nullable
  - `observacoesInternas` string, nullable
  - `origemPedido` integer, nullable — Origem do pedido (0 = Pedido de Venda, 1 = PDV)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/olist/apis/olist-erp-api-v3.md) · [All operations](https://skmtc.net/olist/apis/olist-erp-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/olist/olist-erp-api-v3/versions/c351400bb11f/schema)
