curl
curl -X POST 'https://api.velan.app/v1/developer/orders/search' \
-H 'Authorization: Bearer $VELAN_KEY' \
-H 'Content-Type: application/json' \
-d '{"customer_email": "joao@exemplo.com", "status": "paid"}'import requests
url = "https://api.velan.app/v1/developer/orders/search"
payload = {
"customer_email": "joao@exemplo.com",
"status": "paid"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({customer_email: 'joao@exemplo.com', status: 'paid'})
};
fetch('https://api.velan.app/v1/developer/orders/search', 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/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customer_email' => 'joao@exemplo.com',
'status' => 'paid'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.velan.app/v1/developer/orders/search"
payload := strings.NewReader("{\n \"customer_email\": \"joao@exemplo.com\",\n \"status\": \"paid\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.velan.app/v1/developer/orders/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customer_email\": \"joao@exemplo.com\",\n \"status\": \"paid\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velan.app/v1/developer/orders/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_email\": \"joao@exemplo.com\",\n \"status\": \"paid\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"offset": 0,
"orders": [
{
"amount": "358.50",
"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
},
"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"
},
"status": "paid",
"type": "offer",
"utm": null
}
],
"total": 1
}
}{
"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": "unprocessable",
"message": "Descreva o motivo com pelo menos 5 caracteres."
}
}{
"error": {
"type": "rate_limited",
"message": "Limite de 30 alterações por minuto atingido."
}
}Vendas
Buscar pedidos (filtros no corpo, inclusive e-mail do cliente)
Mesma listagem de GET /orders, com os filtros no corpo — é a rota para filtrar por customer_email, porque dado pessoal não vai na URL.
Permissão: leitura (qualquer chave).
POST
/
orders
/
search
curl
curl -X POST 'https://api.velan.app/v1/developer/orders/search' \
-H 'Authorization: Bearer $VELAN_KEY' \
-H 'Content-Type: application/json' \
-d '{"customer_email": "joao@exemplo.com", "status": "paid"}'import requests
url = "https://api.velan.app/v1/developer/orders/search"
payload = {
"customer_email": "joao@exemplo.com",
"status": "paid"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({customer_email: 'joao@exemplo.com', status: 'paid'})
};
fetch('https://api.velan.app/v1/developer/orders/search', 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/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customer_email' => 'joao@exemplo.com',
'status' => 'paid'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.velan.app/v1/developer/orders/search"
payload := strings.NewReader("{\n \"customer_email\": \"joao@exemplo.com\",\n \"status\": \"paid\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.velan.app/v1/developer/orders/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customer_email\": \"joao@exemplo.com\",\n \"status\": \"paid\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velan.app/v1/developer/orders/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_email\": \"joao@exemplo.com\",\n \"status\": \"paid\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"offset": 0,
"orders": [
{
"amount": "358.50",
"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
},
"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"
},
"status": "paid",
"type": "offer",
"utm": null
}
],
"total": 1
}
}{
"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": "unprocessable",
"message": "Descreva o motivo com pelo menos 5 caracteres."
}
}{
"error": {
"type": "rate_limited",
"message": "Limite de 30 alterações por minuto atingido."
}
}Authorizations
Headers
Body
application/json
Um status ou lista de status. pending = criado, aguardando pagamento (cartão em análise, boleto emitido); awaiting_pix = PIX gerado aguardando pagamento (ou cartão+PIX com o cartão já aprovado); paid = pago; partially_paid = boleto/PIX parcelado com a 1ª parcela paga (conta como venda); failed = pagamento recusado (pode reabrir se o comprador tentar de novo); expired = PIX/boleto venceu sem pagamento; refunded = estornado (inclui chargeback, ver chargeback_at); cancelled = cancelado.
Available options:
pending, awaiting_pix, paid, partially_paid, failed, expired, refunded, cancelled 