Skip to main content
GET
/
pedidos
/
{pedidoId}
Obtém detalhes de um pedido
curl --request GET \
  --url https://akeba.com.br/api/v1/pedidos/{pedidoId} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://akeba.com.br/api/v1/pedidos/{pedidoId}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://akeba.com.br/api/v1/pedidos/{pedidoId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://akeba.com.br/api/v1/pedidos/{pedidoId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://akeba.com.br/api/v1/pedidos/{pedidoId}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://akeba.com.br/api/v1/pedidos/{pedidoId}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://akeba.com.br/api/v1/pedidos/{pedidoId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "id": "<string>",
    "numero": "<string>",
    "status": "<string>",
    "subtotal": "<string>",
    "desconto": "<string>",
    "frete_total": "<string>",
    "total": "<string>",
    "metodo_envio": "<string>",
    "frete_prazo": "<string>",
    "notes": "<string>",
    "created_at": "<string>",
    "itens": [
      {
        "id": "<string>",
        "order_id": "<string>",
        "product_id": "<string>",
        "product_nome": "<string>",
        "preco_unitario": "<string>",
        "quantidade": "<string>",
        "subtotal": "<string>",
        "frete_valor": "<string>",
        "item_status": "<string>",
        "tracking_code": "<string>",
        "cancellation_reason": "<string>",
        "variation_options": "<string>",
        "personalization_data": "<string>",
        "delivery_type": "<string>",
        "label_url": "<string>",
        "superfrete_status": "<string>",
        "created_at": "<string>",
        "updated_at": "<string>",
        "aceito_em": "<string>",
        "em_producao_em": "<string>",
        "enviado_em": "<string>",
        "entregue_em": "<string>",
        "cancelado_em": "<string>",
        "financeiro": {
          "valor_liquido_vendedor": "<string>",
          "comissao_pct": "<string>",
          "valor_comissao": "<string>",
          "status": "<string>",
          "data_credito": "<string>"
        },
        "pedido": {
          "id": "<string>",
          "numero": "<string>",
          "status": "<string>",
          "metodo_envio": "<string>",
          "created_at": "<string>"
        }
      }
    ],
    "comprador": {
      "nome": "<string>",
      "email": "<string>",
      "telefone": "<string>",
      "cpf_cnpj": "<string>"
    },
    "pagamento": {
      "metodo": "<string>",
      "pago_em": "<string>"
    },
    "endereco_entrega": {
      "nome_destinatario": "<string>",
      "cep": "<string>",
      "logradouro": "<string>",
      "numero": "<string>",
      "complemento": "<string>",
      "bairro": "<string>",
      "cidade": "<string>",
      "estado": "<string>"
    }
  }
}
{
"message": "<string>"
}
{
"message": "<string>"
}

Authorizations

Authorization
string
header
required

Token de API gerado em /vendedor/integracoes.

Path Parameters

pedidoId
string
required

Response

PedidoResource

data
PedidoResource · object
required