Obter pedido.
curl --request GET \
--url https://api.staging.cartaosimples.com.br/integration/v1/order/{pedidoId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.staging.cartaosimples.com.br/integration/v1/order/{pedidoId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.staging.cartaosimples.com.br/integration/v1/order/{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://api.staging.cartaosimples.com.br/integration/v1/order/{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://api.staging.cartaosimples.com.br/integration/v1/order/{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://api.staging.cartaosimples.com.br/integration/v1/order/{pedidoId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.cartaosimples.com.br/integration/v1/order/{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{
"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
}{
"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"
}{
"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"
}Pedido
Obter pedido
Retorna os detalhes de um pedido pelo identificador.
GET
/
v1
/
order
/
{pedidoId}
Obter pedido.
curl --request GET \
--url https://api.staging.cartaosimples.com.br/integration/v1/order/{pedidoId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.staging.cartaosimples.com.br/integration/v1/order/{pedidoId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.staging.cartaosimples.com.br/integration/v1/order/{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://api.staging.cartaosimples.com.br/integration/v1/order/{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://api.staging.cartaosimples.com.br/integration/v1/order/{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://api.staging.cartaosimples.com.br/integration/v1/order/{pedidoId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.cartaosimples.com.br/integration/v1/order/{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{
"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
}{
"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"
}{
"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"
}Authorizations
Cabeçalho de autenticação Bearer no formato Bearer <token> onde <token> é seu TOKEN de autenticação
Path Parameters
Identificador único do pedido.
Example:
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Response
OK
Status do pedido. Consulte a legenda completa em Webhooks → Legenda do EnumStatus.
Show child attributes
Show child attributes