curl
curl 'https://api.velan.app/v1/developer/orders/b955957a-686f-42f3-ba20-18ad18f3c562' \
-H 'Authorization: Bearer $VELAN_KEY'import requests
url = "https://api.velan.app/v1/developer/orders/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.velan.app/v1/developer/orders/{code}', 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.velan.app/v1/developer/orders/{code}",
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.velan.app/v1/developer/orders/{code}"
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.velan.app/v1/developer/orders/{code}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velan.app/v1/developer/orders/{code}")
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": {
"amount": "358.50",
"amount_fees": "0.00",
"bumps": [],
"chargeback_at": null,
"charges": [
{
"amount": "358.50",
"gateway": "mercadopago",
"gateway_id": "189200000001",
"method": "pix",
"paid_at": null,
"status": "approved"
}
],
"code": "b955957a-686f-42f3-ba20-18ad18f3c562",
"coupon_code": null,
"created_at": "2026-11-22T03:14:41.524005+00:00",
"customer": {
"document": "12345678901",
"email": "joao@exemplo.com",
"name": "João Silva",
"phone": null
},
"discount_amount": "0.00",
"expired_at": null,
"failed_at": null,
"failure_code": null,
"failure_reason": null,
"gateway": "mercadopago",
"installments": 1,
"net_amount": "340.00",
"offer": {
"code": "yfh0bn3s",
"name": "Turma 2026"
},
"paid_at": "2026-11-22T03:14:41.523777+00:00",
"payment_method": "pix",
"product": {
"code": "d8a4f1a1-f419-458e-b66d-9ce5d007c1a0",
"name": "Curso de Violão"
},
"refunded_at": null,
"status": "paid",
"type": "offer",
"utm": null
}
}{
"error": {
"type": "validation_error",
"message": "Campos não aceitos nesta rota.",
"fields": {
"confirmm": "Campo desconhecido."
}
}
}{
"error": {
"type": "authentication_error",
"message": "Envie Authorization: Bearer <chave de API>."
}
}{
"error": {
"type": "permission_error",
"message": "Esta chave não tem permissão de escrita em 'webhooks'. Crie uma chave com essa permissão."
}
}{
"error": {
"type": "not_found",
"message": "Assinatura não encontrada."
}
}{
"error": {
"type": "rate_limited",
"message": "Limite de 30 alterações por minuto atingido."
}
}Vendas
Pedido com cobranças
Pedido completo: status, valores (bruto, taxas, desconto, líquido), cobranças no gateway (status, id no gateway, data de pagamento), order bumps, motivo da recusa e datas de estorno, chargeback e expiração. Sempre o estado atual (sem cache). Consulte antes de POST /orders/{code}/refund.
Permissão: leitura (qualquer chave).
GET
/
orders
/
{code}
curl
curl 'https://api.velan.app/v1/developer/orders/b955957a-686f-42f3-ba20-18ad18f3c562' \
-H 'Authorization: Bearer $VELAN_KEY'import requests
url = "https://api.velan.app/v1/developer/orders/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.velan.app/v1/developer/orders/{code}', 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.velan.app/v1/developer/orders/{code}",
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.velan.app/v1/developer/orders/{code}"
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.velan.app/v1/developer/orders/{code}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velan.app/v1/developer/orders/{code}")
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": {
"amount": "358.50",
"amount_fees": "0.00",
"bumps": [],
"chargeback_at": null,
"charges": [
{
"amount": "358.50",
"gateway": "mercadopago",
"gateway_id": "189200000001",
"method": "pix",
"paid_at": null,
"status": "approved"
}
],
"code": "b955957a-686f-42f3-ba20-18ad18f3c562",
"coupon_code": null,
"created_at": "2026-11-22T03:14:41.524005+00:00",
"customer": {
"document": "12345678901",
"email": "joao@exemplo.com",
"name": "João Silva",
"phone": null
},
"discount_amount": "0.00",
"expired_at": null,
"failed_at": null,
"failure_code": null,
"failure_reason": null,
"gateway": "mercadopago",
"installments": 1,
"net_amount": "340.00",
"offer": {
"code": "yfh0bn3s",
"name": "Turma 2026"
},
"paid_at": "2026-11-22T03:14:41.523777+00:00",
"payment_method": "pix",
"product": {
"code": "d8a4f1a1-f419-458e-b66d-9ce5d007c1a0",
"name": "Curso de Violão"
},
"refunded_at": null,
"status": "paid",
"type": "offer",
"utm": null
}
}{
"error": {
"type": "validation_error",
"message": "Campos não aceitos nesta rota.",
"fields": {
"confirmm": "Campo desconhecido."
}
}
}{
"error": {
"type": "authentication_error",
"message": "Envie Authorization: Bearer <chave de API>."
}
}{
"error": {
"type": "permission_error",
"message": "Esta chave não tem permissão de escrita em 'webhooks'. Crie uma chave com essa permissão."
}
}{
"error": {
"type": "not_found",
"message": "Assinatura não encontrada."
}
}{
"error": {
"type": "rate_limited",
"message": "Limite de 30 alterações por minuto atingido."
}
}