curl --request POST \
--url https://nexus.ticto.com.br/api/v1/webhook-events/refund_updated \
--header 'Content-Type: application/json' \
--data '
{
"event": "refund_updated",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"refund_id": 5678,
"amount": 19700,
"status": "approved",
"observation": null,
"created_at": "2026-02-25T10:00:00-03:00",
"action": "updated",
"previous_status": "requested",
"new_status": "approved",
"changed_attributes": {
"status": "approved",
"updated_at": "2026-02-26 14:30:00"
},
"transaction": {
"hash": "TXN_abc123",
"amount": 19700,
"payment_method": "credit_card"
},
"order": {
"hash": "TOCA3F111503K9Z42QM",
"customer_email": "cliente@email.com"
}
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"refund_action": "updated"
},
"created_at": "2026-02-26T14:30:00.000000Z",
"updated_at": "2026-02-26T14:30:00.000000Z"
}
'import requests
url = "https://nexus.ticto.com.br/api/v1/webhook-events/refund_updated"
payload = {
"event": "refund_updated",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"refund_id": 5678,
"amount": 19700,
"status": "approved",
"observation": None,
"created_at": "2026-02-25T10:00:00-03:00",
"action": "updated",
"previous_status": "requested",
"new_status": "approved",
"changed_attributes": {
"status": "approved",
"updated_at": "2026-02-26 14:30:00"
},
"transaction": {
"hash": "TXN_abc123",
"amount": 19700,
"payment_method": "credit_card"
},
"order": {
"hash": "TOCA3F111503K9Z42QM",
"customer_email": "cliente@email.com"
}
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"refund_action": "updated"
},
"created_at": "2026-02-26T14:30:00.000000Z",
"updated_at": "2026-02-26T14:30:00.000000Z"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
event: 'refund_updated',
endpoint: 'https://api.meusite.com/webhook/nexus',
payload: {
refund_id: 5678,
amount: 19700,
status: 'approved',
observation: null,
created_at: '2026-02-25T10:00:00-03:00',
action: 'updated',
previous_status: 'requested',
new_status: 'approved',
changed_attributes: {status: 'approved', updated_at: '2026-02-26 14:30:00'},
transaction: {hash: 'TXN_abc123', amount: 19700, payment_method: 'credit_card'},
order: {hash: 'TOCA3F111503K9Z42QM', customer_email: 'cliente@email.com'}
},
metadata: {origin: 'nexus', request_id: '67be1a2f3c4d5', refund_action: 'updated'},
created_at: '2026-02-26T14:30:00.000000Z',
updated_at: '2026-02-26T14:30:00.000000Z'
})
};
fetch('https://nexus.ticto.com.br/api/v1/webhook-events/refund_updated', 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://nexus.ticto.com.br/api/v1/webhook-events/refund_updated",
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([
'event' => 'refund_updated',
'endpoint' => 'https://api.meusite.com/webhook/nexus',
'payload' => [
'refund_id' => 5678,
'amount' => 19700,
'status' => 'approved',
'observation' => null,
'created_at' => '2026-02-25T10:00:00-03:00',
'action' => 'updated',
'previous_status' => 'requested',
'new_status' => 'approved',
'changed_attributes' => [
'status' => 'approved',
'updated_at' => '2026-02-26 14:30:00'
],
'transaction' => [
'hash' => 'TXN_abc123',
'amount' => 19700,
'payment_method' => 'credit_card'
],
'order' => [
'hash' => 'TOCA3F111503K9Z42QM',
'customer_email' => 'cliente@email.com'
]
],
'metadata' => [
'origin' => 'nexus',
'request_id' => '67be1a2f3c4d5',
'refund_action' => 'updated'
],
'created_at' => '2026-02-26T14:30:00.000000Z',
'updated_at' => '2026-02-26T14:30:00.000000Z'
]),
CURLOPT_HTTPHEADER => [
"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://nexus.ticto.com.br/api/v1/webhook-events/refund_updated"
payload := strings.NewReader("{\n \"event\": \"refund_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"refund_id\": 5678,\n \"amount\": 19700,\n \"status\": \"approved\",\n \"observation\": null,\n \"created_at\": \"2026-02-25T10:00:00-03:00\",\n \"action\": \"updated\",\n \"previous_status\": \"requested\",\n \"new_status\": \"approved\",\n \"changed_attributes\": {\n \"status\": \"approved\",\n \"updated_at\": \"2026-02-26 14:30:00\"\n },\n \"transaction\": {\n \"hash\": \"TXN_abc123\",\n \"amount\": 19700,\n \"payment_method\": \"credit_card\"\n },\n \"order\": {\n \"hash\": \"TOCA3F111503K9Z42QM\",\n \"customer_email\": \"cliente@email.com\"\n }\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"refund_action\": \"updated\"\n },\n \"created_at\": \"2026-02-26T14:30:00.000000Z\",\n \"updated_at\": \"2026-02-26T14:30:00.000000Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://nexus.ticto.com.br/api/v1/webhook-events/refund_updated")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"refund_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"refund_id\": 5678,\n \"amount\": 19700,\n \"status\": \"approved\",\n \"observation\": null,\n \"created_at\": \"2026-02-25T10:00:00-03:00\",\n \"action\": \"updated\",\n \"previous_status\": \"requested\",\n \"new_status\": \"approved\",\n \"changed_attributes\": {\n \"status\": \"approved\",\n \"updated_at\": \"2026-02-26 14:30:00\"\n },\n \"transaction\": {\n \"hash\": \"TXN_abc123\",\n \"amount\": 19700,\n \"payment_method\": \"credit_card\"\n },\n \"order\": {\n \"hash\": \"TOCA3F111503K9Z42QM\",\n \"customer_email\": \"cliente@email.com\"\n }\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"refund_action\": \"updated\"\n },\n \"created_at\": \"2026-02-26T14:30:00.000000Z\",\n \"updated_at\": \"2026-02-26T14:30:00.000000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.ticto.com.br/api/v1/webhook-events/refund_updated")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"event\": \"refund_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"refund_id\": 5678,\n \"amount\": 19700,\n \"status\": \"approved\",\n \"observation\": null,\n \"created_at\": \"2026-02-25T10:00:00-03:00\",\n \"action\": \"updated\",\n \"previous_status\": \"requested\",\n \"new_status\": \"approved\",\n \"changed_attributes\": {\n \"status\": \"approved\",\n \"updated_at\": \"2026-02-26 14:30:00\"\n },\n \"transaction\": {\n \"hash\": \"TXN_abc123\",\n \"amount\": 19700,\n \"payment_method\": \"credit_card\"\n },\n \"order\": {\n \"hash\": \"TOCA3F111503K9Z42QM\",\n \"customer_email\": \"cliente@email.com\"\n }\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"refund_action\": \"updated\"\n },\n \"created_at\": \"2026-02-26T14:30:00.000000Z\",\n \"updated_at\": \"2026-02-26T14:30:00.000000Z\"\n}"
response = http.request(request)
puts response.read_bodyrefund_updated
Disparado quando o status de um reembolso é alterado.
Quando ocorre:
- Aprovação ou rejeição do reembolso
- Processamento do estorno
Importante: Para determinar o status atualizado do reembolso, utilize o campo payload.new_status como referência confiável. O campo payload.status pode estar temporariamente desatualizado.
curl --request POST \
--url https://nexus.ticto.com.br/api/v1/webhook-events/refund_updated \
--header 'Content-Type: application/json' \
--data '
{
"event": "refund_updated",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"refund_id": 5678,
"amount": 19700,
"status": "approved",
"observation": null,
"created_at": "2026-02-25T10:00:00-03:00",
"action": "updated",
"previous_status": "requested",
"new_status": "approved",
"changed_attributes": {
"status": "approved",
"updated_at": "2026-02-26 14:30:00"
},
"transaction": {
"hash": "TXN_abc123",
"amount": 19700,
"payment_method": "credit_card"
},
"order": {
"hash": "TOCA3F111503K9Z42QM",
"customer_email": "cliente@email.com"
}
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"refund_action": "updated"
},
"created_at": "2026-02-26T14:30:00.000000Z",
"updated_at": "2026-02-26T14:30:00.000000Z"
}
'import requests
url = "https://nexus.ticto.com.br/api/v1/webhook-events/refund_updated"
payload = {
"event": "refund_updated",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"refund_id": 5678,
"amount": 19700,
"status": "approved",
"observation": None,
"created_at": "2026-02-25T10:00:00-03:00",
"action": "updated",
"previous_status": "requested",
"new_status": "approved",
"changed_attributes": {
"status": "approved",
"updated_at": "2026-02-26 14:30:00"
},
"transaction": {
"hash": "TXN_abc123",
"amount": 19700,
"payment_method": "credit_card"
},
"order": {
"hash": "TOCA3F111503K9Z42QM",
"customer_email": "cliente@email.com"
}
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"refund_action": "updated"
},
"created_at": "2026-02-26T14:30:00.000000Z",
"updated_at": "2026-02-26T14:30:00.000000Z"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
event: 'refund_updated',
endpoint: 'https://api.meusite.com/webhook/nexus',
payload: {
refund_id: 5678,
amount: 19700,
status: 'approved',
observation: null,
created_at: '2026-02-25T10:00:00-03:00',
action: 'updated',
previous_status: 'requested',
new_status: 'approved',
changed_attributes: {status: 'approved', updated_at: '2026-02-26 14:30:00'},
transaction: {hash: 'TXN_abc123', amount: 19700, payment_method: 'credit_card'},
order: {hash: 'TOCA3F111503K9Z42QM', customer_email: 'cliente@email.com'}
},
metadata: {origin: 'nexus', request_id: '67be1a2f3c4d5', refund_action: 'updated'},
created_at: '2026-02-26T14:30:00.000000Z',
updated_at: '2026-02-26T14:30:00.000000Z'
})
};
fetch('https://nexus.ticto.com.br/api/v1/webhook-events/refund_updated', 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://nexus.ticto.com.br/api/v1/webhook-events/refund_updated",
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([
'event' => 'refund_updated',
'endpoint' => 'https://api.meusite.com/webhook/nexus',
'payload' => [
'refund_id' => 5678,
'amount' => 19700,
'status' => 'approved',
'observation' => null,
'created_at' => '2026-02-25T10:00:00-03:00',
'action' => 'updated',
'previous_status' => 'requested',
'new_status' => 'approved',
'changed_attributes' => [
'status' => 'approved',
'updated_at' => '2026-02-26 14:30:00'
],
'transaction' => [
'hash' => 'TXN_abc123',
'amount' => 19700,
'payment_method' => 'credit_card'
],
'order' => [
'hash' => 'TOCA3F111503K9Z42QM',
'customer_email' => 'cliente@email.com'
]
],
'metadata' => [
'origin' => 'nexus',
'request_id' => '67be1a2f3c4d5',
'refund_action' => 'updated'
],
'created_at' => '2026-02-26T14:30:00.000000Z',
'updated_at' => '2026-02-26T14:30:00.000000Z'
]),
CURLOPT_HTTPHEADER => [
"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://nexus.ticto.com.br/api/v1/webhook-events/refund_updated"
payload := strings.NewReader("{\n \"event\": \"refund_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"refund_id\": 5678,\n \"amount\": 19700,\n \"status\": \"approved\",\n \"observation\": null,\n \"created_at\": \"2026-02-25T10:00:00-03:00\",\n \"action\": \"updated\",\n \"previous_status\": \"requested\",\n \"new_status\": \"approved\",\n \"changed_attributes\": {\n \"status\": \"approved\",\n \"updated_at\": \"2026-02-26 14:30:00\"\n },\n \"transaction\": {\n \"hash\": \"TXN_abc123\",\n \"amount\": 19700,\n \"payment_method\": \"credit_card\"\n },\n \"order\": {\n \"hash\": \"TOCA3F111503K9Z42QM\",\n \"customer_email\": \"cliente@email.com\"\n }\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"refund_action\": \"updated\"\n },\n \"created_at\": \"2026-02-26T14:30:00.000000Z\",\n \"updated_at\": \"2026-02-26T14:30:00.000000Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://nexus.ticto.com.br/api/v1/webhook-events/refund_updated")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"refund_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"refund_id\": 5678,\n \"amount\": 19700,\n \"status\": \"approved\",\n \"observation\": null,\n \"created_at\": \"2026-02-25T10:00:00-03:00\",\n \"action\": \"updated\",\n \"previous_status\": \"requested\",\n \"new_status\": \"approved\",\n \"changed_attributes\": {\n \"status\": \"approved\",\n \"updated_at\": \"2026-02-26 14:30:00\"\n },\n \"transaction\": {\n \"hash\": \"TXN_abc123\",\n \"amount\": 19700,\n \"payment_method\": \"credit_card\"\n },\n \"order\": {\n \"hash\": \"TOCA3F111503K9Z42QM\",\n \"customer_email\": \"cliente@email.com\"\n }\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"refund_action\": \"updated\"\n },\n \"created_at\": \"2026-02-26T14:30:00.000000Z\",\n \"updated_at\": \"2026-02-26T14:30:00.000000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.ticto.com.br/api/v1/webhook-events/refund_updated")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"event\": \"refund_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"refund_id\": 5678,\n \"amount\": 19700,\n \"status\": \"approved\",\n \"observation\": null,\n \"created_at\": \"2026-02-25T10:00:00-03:00\",\n \"action\": \"updated\",\n \"previous_status\": \"requested\",\n \"new_status\": \"approved\",\n \"changed_attributes\": {\n \"status\": \"approved\",\n \"updated_at\": \"2026-02-26 14:30:00\"\n },\n \"transaction\": {\n \"hash\": \"TXN_abc123\",\n \"amount\": 19700,\n \"payment_method\": \"credit_card\"\n },\n \"order\": {\n \"hash\": \"TOCA3F111503K9Z42QM\",\n \"customer_email\": \"cliente@email.com\"\n }\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"refund_action\": \"updated\"\n },\n \"created_at\": \"2026-02-26T14:30:00.000000Z\",\n \"updated_at\": \"2026-02-26T14:30:00.000000Z\"\n}"
response = http.request(request)
puts response.read_bodyBody
Envelope padrão de todos os webhooks enviados pelo Nexus.
O campo payload varia conforme o evento.
Nome do evento disparado
"user_updated"
URL do webhook configurada pelo cliente
"https://api.meusite.com/webhook/nexus"
Payload do evento refund_updated.
Disparado quando o status de um reembolso é alterado.
Importante: O campo new_status é a referência confiável para o status atualizado do reembolso.
O campo status reflete o status do reembolso no momento do disparo e pode estar temporariamente
desatualizado em relação a new_status. Para lógica de negócio, utilize sempre new_status.
Show child attributes
Show child attributes
Metadados de rastreamento do webhook
Show child attributes
Show child attributes
Data de criação do webhook (ISO 8601)
"2026-02-25T10:00:00.000000Z"
Data de atualização do webhook (ISO 8601)
"2026-02-25T10:00:00.000000Z"
Response
Webhook recebido com sucesso