Listar pedidos
curl --request GET \
--url https://api.ticto.cloud/api/v2/orders/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ticto.cloud/api/v2/orders/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ticto.cloud/api/v2/orders/history', 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.ticto.cloud/api/v2/orders/history",
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.ticto.cloud/api/v2/orders/history"
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.ticto.cloud/api/v2/orders/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ticto.cloud/api/v2/orders/history")
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": 54321,
"type": "main",
"commissioned_id": 8801,
"commissioned_name": "João Produtor",
"commission": 19900,
"producer_id": 8801,
"producer_name": "João Produtor",
"producer_email": "joao@exemplo.com",
"producer_document": "123.456.789-00",
"value": 19900,
"order_id": 90715,
"affiliates": [],
"query_params": {
"utm_source": "google",
"utm_medium": "cpc",
"utm_campaign": "black_friday",
"code": "O709D4B48",
"event": "InitiateCheckout"
},
"tracking": {
"event": "InitiateCheckout",
"utm_source": "google",
"utm_medium": "cpc",
"utm_campaign": "black_friday",
"utm_content": "Não Informado",
"utm_term": "Não Informado",
"src": "facebook",
"sck": "facebook",
"manychat_user_id": "Não Informado"
},
"checkout_url": "https://checkout.ticto.app/O709D4B48",
"transaction": {
"id": 123456,
"hash": "TRX7K2P9QW",
"status": "authorized",
"payment_method": "credit_card",
"paid_amount": 19900,
"created_at": "01/06/2026 14:32:10"
},
"offer": {
"id": 11,
"code": "O709D4B48",
"name": "Plano Anual",
"description": "Acesso por 12 meses",
"price": 19900,
"is_subscription": false,
"interval": null,
"trial_days": null,
"first_charge_price": null
},
"product": {
"id": 305,
"name": "Curso de Copywriting",
"is_subscription": false,
"type": "course",
"refund_deadline": 7,
"has_invoice_integration": false
},
"customer": {
"name": "Maria Souza",
"email": "maria@exemplo.com",
"cpf": "987.654.321-00"
},
"order": {
"id": 90715,
"hash": "TOP0106WOC15DK",
"has_bump": false,
"from_mozart": false,
"is_upsell": false,
"type": "main"
},
"order_item": {
"id": 77120,
"amount": 19900,
"status": "authorized",
"quantity": 1
},
"has_two_cards": false,
"bounced_email": false,
"subscription_id": null,
"is_smart_installment": false,
"approved_date": "01/06/2026 14:32:12",
"created_at": "01/06/2026 14:32:10",
"updated_at": "01/06/2026 14:32:12"
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"current_page": 123,
"from": 123,
"to": 123,
"per_page": 123,
"last_page": 123,
"total": 123,
"path": "<string>"
}
}{
"error": "unauthorized",
"message": "Invalid or expired token.",
"request_id": null
}{
"error": "insufficient_scope",
"message": "Token is missing the required ability: orders:read.",
"request_id": null
}Pedidos
Listar pedidos
Histórico de pedidos do produtor, paginado. Escopo: orders:read.
GET
/
api
/
v2
/
orders
/
history
Listar pedidos
curl --request GET \
--url https://api.ticto.cloud/api/v2/orders/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ticto.cloud/api/v2/orders/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ticto.cloud/api/v2/orders/history', 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.ticto.cloud/api/v2/orders/history",
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.ticto.cloud/api/v2/orders/history"
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.ticto.cloud/api/v2/orders/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ticto.cloud/api/v2/orders/history")
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": 54321,
"type": "main",
"commissioned_id": 8801,
"commissioned_name": "João Produtor",
"commission": 19900,
"producer_id": 8801,
"producer_name": "João Produtor",
"producer_email": "joao@exemplo.com",
"producer_document": "123.456.789-00",
"value": 19900,
"order_id": 90715,
"affiliates": [],
"query_params": {
"utm_source": "google",
"utm_medium": "cpc",
"utm_campaign": "black_friday",
"code": "O709D4B48",
"event": "InitiateCheckout"
},
"tracking": {
"event": "InitiateCheckout",
"utm_source": "google",
"utm_medium": "cpc",
"utm_campaign": "black_friday",
"utm_content": "Não Informado",
"utm_term": "Não Informado",
"src": "facebook",
"sck": "facebook",
"manychat_user_id": "Não Informado"
},
"checkout_url": "https://checkout.ticto.app/O709D4B48",
"transaction": {
"id": 123456,
"hash": "TRX7K2P9QW",
"status": "authorized",
"payment_method": "credit_card",
"paid_amount": 19900,
"created_at": "01/06/2026 14:32:10"
},
"offer": {
"id": 11,
"code": "O709D4B48",
"name": "Plano Anual",
"description": "Acesso por 12 meses",
"price": 19900,
"is_subscription": false,
"interval": null,
"trial_days": null,
"first_charge_price": null
},
"product": {
"id": 305,
"name": "Curso de Copywriting",
"is_subscription": false,
"type": "course",
"refund_deadline": 7,
"has_invoice_integration": false
},
"customer": {
"name": "Maria Souza",
"email": "maria@exemplo.com",
"cpf": "987.654.321-00"
},
"order": {
"id": 90715,
"hash": "TOP0106WOC15DK",
"has_bump": false,
"from_mozart": false,
"is_upsell": false,
"type": "main"
},
"order_item": {
"id": 77120,
"amount": 19900,
"status": "authorized",
"quantity": 1
},
"has_two_cards": false,
"bounced_email": false,
"subscription_id": null,
"is_smart_installment": false,
"approved_date": "01/06/2026 14:32:12",
"created_at": "01/06/2026 14:32:10",
"updated_at": "01/06/2026 14:32:12"
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"current_page": 123,
"from": 123,
"to": 123,
"per_page": 123,
"last_page": 123,
"total": 123,
"path": "<string>"
}
}{
"error": "unauthorized",
"message": "Invalid or expired token.",
"request_id": null
}{
"error": "insufficient_scope",
"message": "Token is missing the required ability: orders:read.",
"request_id": null
}Authorizations
Token opaco no formato ticto_live_... (produção) ou ticto_test_... (sandbox). Enviado como Authorization: Bearer <token>.
Query Parameters
Itens por página.
Required range:
x <= 1000Response
Histórico de pedidos.
Histórico de pedidos, paginado (paridade 1:1 com o relatório de comissões da v1). Envelope do paginador: data + links + meta.