curl --request GET \
--url https://api.ticto.cloud/api/v2/orders/{hash} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ticto.cloud/api/v2/orders/{hash}"
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/{hash}', 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/{hash}",
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/{hash}"
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/{hash}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ticto.cloud/api/v2/orders/{hash}")
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": 90715,
"hash": "TOP0106WOC15DK",
"paid_amount": 19900,
"freight_value": 0,
"customer": {
"name": "Maria Souza",
"email": "maria@exemplo.com"
},
"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",
"items": [
{
"offer": {
"id": 11,
"code": "O709D4B48",
"name": "Plano Anual"
},
"coupon": {
"name": null,
"discount": null
},
"amount": 19900,
"status": "authorized",
"type": "main",
"members_classroom_id": null
}
],
"transactions": [
{
"id": 123456,
"hash": "TRX7K2P9QW",
"status": "authorized",
"return_code": "00",
"payment_method": "credit_card",
"paid_amount": 19900,
"is_card2": false,
"invoice_sent": false,
"is_free": false,
"created_at": "01/06/2026 14:32:10",
"updated_at": "01/06/2026 14:32:12"
}
],
"commissions": [
{
"type": "producer",
"user_id": 8801,
"name": "João Produtor",
"value": 19900,
"url_params": {
"query_params": {
"utm_source": "google",
"code": "O709D4B48"
}
}
}
],
"created_at": "01/06/2026 14:32:10",
"updated_at": "01/06/2026 14:32:12"
}{
"error": "unauthorized",
"message": "Invalid or expired token.",
"request_id": null
}{
"error": "not_found",
"message": "Resource not found.",
"request_id": null
}Buscar pedido
Retorna um pedido pelo seu hash. Escopo: orders:read. Retorna 404 se o pedido não for do produtor autenticado — o isolamento é garantido por construção.
curl --request GET \
--url https://api.ticto.cloud/api/v2/orders/{hash} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ticto.cloud/api/v2/orders/{hash}"
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/{hash}', 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/{hash}",
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/{hash}"
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/{hash}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ticto.cloud/api/v2/orders/{hash}")
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": 90715,
"hash": "TOP0106WOC15DK",
"paid_amount": 19900,
"freight_value": 0,
"customer": {
"name": "Maria Souza",
"email": "maria@exemplo.com"
},
"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",
"items": [
{
"offer": {
"id": 11,
"code": "O709D4B48",
"name": "Plano Anual"
},
"coupon": {
"name": null,
"discount": null
},
"amount": 19900,
"status": "authorized",
"type": "main",
"members_classroom_id": null
}
],
"transactions": [
{
"id": 123456,
"hash": "TRX7K2P9QW",
"status": "authorized",
"return_code": "00",
"payment_method": "credit_card",
"paid_amount": 19900,
"is_card2": false,
"invoice_sent": false,
"is_free": false,
"created_at": "01/06/2026 14:32:10",
"updated_at": "01/06/2026 14:32:12"
}
],
"commissions": [
{
"type": "producer",
"user_id": 8801,
"name": "João Produtor",
"value": 19900,
"url_params": {
"query_params": {
"utm_source": "google",
"code": "O709D4B48"
}
}
}
],
"created_at": "01/06/2026 14:32:10",
"updated_at": "01/06/2026 14:32:12"
}{
"error": "unauthorized",
"message": "Invalid or expired token.",
"request_id": null
}{
"error": "not_found",
"message": "Resource not found.",
"request_id": null
}Authorizations
Token opaco no formato ticto_live_... (produção) ou ticto_test_... (sandbox). Enviado como Authorization: Bearer <token>.
Path Parameters
Hash do pedido (ex.: TOP0106WOC15DK).
Response
Detalhe do pedido.
Detalhe de um pedido (GET /orders/{hash}). Espelha o relatório de pedido da v1 e inclui a atribuição de campanha (paridade com o webhook v2).
Identificador canônico do pedido na API.
Valor pago em centavos.
Frete em centavos.
Show child attributes
Show child attributes
Parâmetros da URL do checkout no momento da compra.
Atribuição de campanha normalizada (1:1 com o webhook v2).
Show child attributes
Show child attributes
Link do checkout da oferta.
Itens do pedido.
Transações do pedido (tentativas de cobrança).
Divisão de comissão do pedido.
Formato d/m/Y H:i:s.
"01/06/2026 14:32:10"
"01/06/2026 14:32:12"