subscription_overdue
curl --request POST \
--url https://nexus.ticto.com.br/api/v1/webhook-events/subscription_overdue \
--header 'Content-Type: application/json' \
--data '
{
"event": "subscription_overdue",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"subscription_code": "TS7QK4M2XJ9BVN5RLD3W",
"status": "overdue",
"overdue_at": "2026-02-25T03:00:00.000000Z",
"next_charge": "2026-02-24 00:00:00",
"payment_method": "credit_card",
"product_hash": "PRD_abc123",
"offer_code": "OFF_xyz789",
"buyer": {
"name": "Maria Santos",
"email": "maria@email.com"
},
"commissions": {
"transaction_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"paid_amount": 19700,
"items": [
{
"type": "producer",
"amount": 11820,
"user": {
"code": "PRDCODE123456789",
"name": "João Produtor",
"email": "joao@email.com"
}
},
{
"type": "affiliate",
"amount": 5910,
"user": {
"code": "JXAWHIB2HN1756369698",
"name": "Ana Afiliada",
"email": "ana@email.com"
}
}
]
},
"created_at": "2025-12-01 14:30:00",
"updated_at": "2026-02-25 03:00:00"
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"correlation_id": null
},
"created_at": "2026-02-25T03:00:00.000000Z",
"updated_at": "2026-02-25T03:00:00.000000Z"
}
'import requests
url = "https://nexus.ticto.com.br/api/v1/webhook-events/subscription_overdue"
payload = {
"event": "subscription_overdue",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"subscription_code": "TS7QK4M2XJ9BVN5RLD3W",
"status": "overdue",
"overdue_at": "2026-02-25T03:00:00.000000Z",
"next_charge": "2026-02-24 00:00:00",
"payment_method": "credit_card",
"product_hash": "PRD_abc123",
"offer_code": "OFF_xyz789",
"buyer": {
"name": "Maria Santos",
"email": "maria@email.com"
},
"commissions": {
"transaction_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"paid_amount": 19700,
"items": [
{
"type": "producer",
"amount": 11820,
"user": {
"code": "PRDCODE123456789",
"name": "João Produtor",
"email": "joao@email.com"
}
},
{
"type": "affiliate",
"amount": 5910,
"user": {
"code": "JXAWHIB2HN1756369698",
"name": "Ana Afiliada",
"email": "ana@email.com"
}
}
]
},
"created_at": "2025-12-01 14:30:00",
"updated_at": "2026-02-25 03:00:00"
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"correlation_id": None
},
"created_at": "2026-02-25T03:00:00.000000Z",
"updated_at": "2026-02-25T03:00: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: 'subscription_overdue',
endpoint: 'https://api.meusite.com/webhook/nexus',
payload: {
subscription_code: 'TS7QK4M2XJ9BVN5RLD3W',
status: 'overdue',
overdue_at: '2026-02-25T03:00:00.000000Z',
next_charge: '2026-02-24 00:00:00',
payment_method: 'credit_card',
product_hash: 'PRD_abc123',
offer_code: 'OFF_xyz789',
buyer: {name: 'Maria Santos', email: 'maria@email.com'},
commissions: {
transaction_hash: 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
paid_amount: 19700,
items: [
{
type: 'producer',
amount: 11820,
user: {code: 'PRDCODE123456789', name: 'João Produtor', email: 'joao@email.com'}
},
{
type: 'affiliate',
amount: 5910,
user: {code: 'JXAWHIB2HN1756369698', name: 'Ana Afiliada', email: 'ana@email.com'}
}
]
},
created_at: '2025-12-01 14:30:00',
updated_at: '2026-02-25 03:00:00'
},
metadata: {origin: 'nexus', request_id: '67be1a2f3c4d5', correlation_id: null},
created_at: '2026-02-25T03:00:00.000000Z',
updated_at: '2026-02-25T03:00:00.000000Z'
})
};
fetch('https://nexus.ticto.com.br/api/v1/webhook-events/subscription_overdue', 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/subscription_overdue",
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' => 'subscription_overdue',
'endpoint' => 'https://api.meusite.com/webhook/nexus',
'payload' => [
'subscription_code' => 'TS7QK4M2XJ9BVN5RLD3W',
'status' => 'overdue',
'overdue_at' => '2026-02-25T03:00:00.000000Z',
'next_charge' => '2026-02-24 00:00:00',
'payment_method' => 'credit_card',
'product_hash' => 'PRD_abc123',
'offer_code' => 'OFF_xyz789',
'buyer' => [
'name' => 'Maria Santos',
'email' => 'maria@email.com'
],
'commissions' => [
'transaction_hash' => 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
'paid_amount' => 19700,
'items' => [
[
'type' => 'producer',
'amount' => 11820,
'user' => [
'code' => 'PRDCODE123456789',
'name' => 'João Produtor',
'email' => 'joao@email.com'
]
],
[
'type' => 'affiliate',
'amount' => 5910,
'user' => [
'code' => 'JXAWHIB2HN1756369698',
'name' => 'Ana Afiliada',
'email' => 'ana@email.com'
]
]
]
],
'created_at' => '2025-12-01 14:30:00',
'updated_at' => '2026-02-25 03:00:00'
],
'metadata' => [
'origin' => 'nexus',
'request_id' => '67be1a2f3c4d5',
'correlation_id' => null
],
'created_at' => '2026-02-25T03:00:00.000000Z',
'updated_at' => '2026-02-25T03:00: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/subscription_overdue"
payload := strings.NewReader("{\n \"event\": \"subscription_overdue\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"subscription_code\": \"TS7QK4M2XJ9BVN5RLD3W\",\n \"status\": \"overdue\",\n \"overdue_at\": \"2026-02-25T03:00:00.000000Z\",\n \"next_charge\": \"2026-02-24 00:00:00\",\n \"payment_method\": \"credit_card\",\n \"product_hash\": \"PRD_abc123\",\n \"offer_code\": \"OFF_xyz789\",\n \"buyer\": {\n \"name\": \"Maria Santos\",\n \"email\": \"maria@email.com\"\n },\n \"commissions\": {\n \"transaction_hash\": \"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6\",\n \"paid_amount\": 19700,\n \"items\": [\n {\n \"type\": \"producer\",\n \"amount\": 11820,\n \"user\": {\n \"code\": \"PRDCODE123456789\",\n \"name\": \"João Produtor\",\n \"email\": \"joao@email.com\"\n }\n },\n {\n \"type\": \"affiliate\",\n \"amount\": 5910,\n \"user\": {\n \"code\": \"JXAWHIB2HN1756369698\",\n \"name\": \"Ana Afiliada\",\n \"email\": \"ana@email.com\"\n }\n }\n ]\n },\n \"created_at\": \"2025-12-01 14:30:00\",\n \"updated_at\": \"2026-02-25 03:00:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T03:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T03:00: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/subscription_overdue")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"subscription_overdue\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"subscription_code\": \"TS7QK4M2XJ9BVN5RLD3W\",\n \"status\": \"overdue\",\n \"overdue_at\": \"2026-02-25T03:00:00.000000Z\",\n \"next_charge\": \"2026-02-24 00:00:00\",\n \"payment_method\": \"credit_card\",\n \"product_hash\": \"PRD_abc123\",\n \"offer_code\": \"OFF_xyz789\",\n \"buyer\": {\n \"name\": \"Maria Santos\",\n \"email\": \"maria@email.com\"\n },\n \"commissions\": {\n \"transaction_hash\": \"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6\",\n \"paid_amount\": 19700,\n \"items\": [\n {\n \"type\": \"producer\",\n \"amount\": 11820,\n \"user\": {\n \"code\": \"PRDCODE123456789\",\n \"name\": \"João Produtor\",\n \"email\": \"joao@email.com\"\n }\n },\n {\n \"type\": \"affiliate\",\n \"amount\": 5910,\n \"user\": {\n \"code\": \"JXAWHIB2HN1756369698\",\n \"name\": \"Ana Afiliada\",\n \"email\": \"ana@email.com\"\n }\n }\n ]\n },\n \"created_at\": \"2025-12-01 14:30:00\",\n \"updated_at\": \"2026-02-25 03:00:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T03:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T03:00:00.000000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.ticto.com.br/api/v1/webhook-events/subscription_overdue")
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\": \"subscription_overdue\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"subscription_code\": \"TS7QK4M2XJ9BVN5RLD3W\",\n \"status\": \"overdue\",\n \"overdue_at\": \"2026-02-25T03:00:00.000000Z\",\n \"next_charge\": \"2026-02-24 00:00:00\",\n \"payment_method\": \"credit_card\",\n \"product_hash\": \"PRD_abc123\",\n \"offer_code\": \"OFF_xyz789\",\n \"buyer\": {\n \"name\": \"Maria Santos\",\n \"email\": \"maria@email.com\"\n },\n \"commissions\": {\n \"transaction_hash\": \"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6\",\n \"paid_amount\": 19700,\n \"items\": [\n {\n \"type\": \"producer\",\n \"amount\": 11820,\n \"user\": {\n \"code\": \"PRDCODE123456789\",\n \"name\": \"João Produtor\",\n \"email\": \"joao@email.com\"\n }\n },\n {\n \"type\": \"affiliate\",\n \"amount\": 5910,\n \"user\": {\n \"code\": \"JXAWHIB2HN1756369698\",\n \"name\": \"Ana Afiliada\",\n \"email\": \"ana@email.com\"\n }\n }\n ]\n },\n \"created_at\": \"2025-12-01 14:30:00\",\n \"updated_at\": \"2026-02-25 03:00:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T03:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T03:00:00.000000Z\"\n}"
response = http.request(request)
puts response.read_bodyWebhooks: Assinaturas
subscription_overdue
Disparado quando uma assinatura entra em atraso.
Quando ocorre:
- Cobrança recorrente recusada (cartão/carteira digital) — no máximo uma vez por ciclo de cobrança
- Boleto vencido há pelo menos 1 dia sem pagamento
POST
/
webhook-events
/
subscription_overdue
subscription_overdue
curl --request POST \
--url https://nexus.ticto.com.br/api/v1/webhook-events/subscription_overdue \
--header 'Content-Type: application/json' \
--data '
{
"event": "subscription_overdue",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"subscription_code": "TS7QK4M2XJ9BVN5RLD3W",
"status": "overdue",
"overdue_at": "2026-02-25T03:00:00.000000Z",
"next_charge": "2026-02-24 00:00:00",
"payment_method": "credit_card",
"product_hash": "PRD_abc123",
"offer_code": "OFF_xyz789",
"buyer": {
"name": "Maria Santos",
"email": "maria@email.com"
},
"commissions": {
"transaction_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"paid_amount": 19700,
"items": [
{
"type": "producer",
"amount": 11820,
"user": {
"code": "PRDCODE123456789",
"name": "João Produtor",
"email": "joao@email.com"
}
},
{
"type": "affiliate",
"amount": 5910,
"user": {
"code": "JXAWHIB2HN1756369698",
"name": "Ana Afiliada",
"email": "ana@email.com"
}
}
]
},
"created_at": "2025-12-01 14:30:00",
"updated_at": "2026-02-25 03:00:00"
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"correlation_id": null
},
"created_at": "2026-02-25T03:00:00.000000Z",
"updated_at": "2026-02-25T03:00:00.000000Z"
}
'import requests
url = "https://nexus.ticto.com.br/api/v1/webhook-events/subscription_overdue"
payload = {
"event": "subscription_overdue",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"subscription_code": "TS7QK4M2XJ9BVN5RLD3W",
"status": "overdue",
"overdue_at": "2026-02-25T03:00:00.000000Z",
"next_charge": "2026-02-24 00:00:00",
"payment_method": "credit_card",
"product_hash": "PRD_abc123",
"offer_code": "OFF_xyz789",
"buyer": {
"name": "Maria Santos",
"email": "maria@email.com"
},
"commissions": {
"transaction_hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"paid_amount": 19700,
"items": [
{
"type": "producer",
"amount": 11820,
"user": {
"code": "PRDCODE123456789",
"name": "João Produtor",
"email": "joao@email.com"
}
},
{
"type": "affiliate",
"amount": 5910,
"user": {
"code": "JXAWHIB2HN1756369698",
"name": "Ana Afiliada",
"email": "ana@email.com"
}
}
]
},
"created_at": "2025-12-01 14:30:00",
"updated_at": "2026-02-25 03:00:00"
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"correlation_id": None
},
"created_at": "2026-02-25T03:00:00.000000Z",
"updated_at": "2026-02-25T03:00: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: 'subscription_overdue',
endpoint: 'https://api.meusite.com/webhook/nexus',
payload: {
subscription_code: 'TS7QK4M2XJ9BVN5RLD3W',
status: 'overdue',
overdue_at: '2026-02-25T03:00:00.000000Z',
next_charge: '2026-02-24 00:00:00',
payment_method: 'credit_card',
product_hash: 'PRD_abc123',
offer_code: 'OFF_xyz789',
buyer: {name: 'Maria Santos', email: 'maria@email.com'},
commissions: {
transaction_hash: 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
paid_amount: 19700,
items: [
{
type: 'producer',
amount: 11820,
user: {code: 'PRDCODE123456789', name: 'João Produtor', email: 'joao@email.com'}
},
{
type: 'affiliate',
amount: 5910,
user: {code: 'JXAWHIB2HN1756369698', name: 'Ana Afiliada', email: 'ana@email.com'}
}
]
},
created_at: '2025-12-01 14:30:00',
updated_at: '2026-02-25 03:00:00'
},
metadata: {origin: 'nexus', request_id: '67be1a2f3c4d5', correlation_id: null},
created_at: '2026-02-25T03:00:00.000000Z',
updated_at: '2026-02-25T03:00:00.000000Z'
})
};
fetch('https://nexus.ticto.com.br/api/v1/webhook-events/subscription_overdue', 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/subscription_overdue",
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' => 'subscription_overdue',
'endpoint' => 'https://api.meusite.com/webhook/nexus',
'payload' => [
'subscription_code' => 'TS7QK4M2XJ9BVN5RLD3W',
'status' => 'overdue',
'overdue_at' => '2026-02-25T03:00:00.000000Z',
'next_charge' => '2026-02-24 00:00:00',
'payment_method' => 'credit_card',
'product_hash' => 'PRD_abc123',
'offer_code' => 'OFF_xyz789',
'buyer' => [
'name' => 'Maria Santos',
'email' => 'maria@email.com'
],
'commissions' => [
'transaction_hash' => 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
'paid_amount' => 19700,
'items' => [
[
'type' => 'producer',
'amount' => 11820,
'user' => [
'code' => 'PRDCODE123456789',
'name' => 'João Produtor',
'email' => 'joao@email.com'
]
],
[
'type' => 'affiliate',
'amount' => 5910,
'user' => [
'code' => 'JXAWHIB2HN1756369698',
'name' => 'Ana Afiliada',
'email' => 'ana@email.com'
]
]
]
],
'created_at' => '2025-12-01 14:30:00',
'updated_at' => '2026-02-25 03:00:00'
],
'metadata' => [
'origin' => 'nexus',
'request_id' => '67be1a2f3c4d5',
'correlation_id' => null
],
'created_at' => '2026-02-25T03:00:00.000000Z',
'updated_at' => '2026-02-25T03:00: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/subscription_overdue"
payload := strings.NewReader("{\n \"event\": \"subscription_overdue\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"subscription_code\": \"TS7QK4M2XJ9BVN5RLD3W\",\n \"status\": \"overdue\",\n \"overdue_at\": \"2026-02-25T03:00:00.000000Z\",\n \"next_charge\": \"2026-02-24 00:00:00\",\n \"payment_method\": \"credit_card\",\n \"product_hash\": \"PRD_abc123\",\n \"offer_code\": \"OFF_xyz789\",\n \"buyer\": {\n \"name\": \"Maria Santos\",\n \"email\": \"maria@email.com\"\n },\n \"commissions\": {\n \"transaction_hash\": \"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6\",\n \"paid_amount\": 19700,\n \"items\": [\n {\n \"type\": \"producer\",\n \"amount\": 11820,\n \"user\": {\n \"code\": \"PRDCODE123456789\",\n \"name\": \"João Produtor\",\n \"email\": \"joao@email.com\"\n }\n },\n {\n \"type\": \"affiliate\",\n \"amount\": 5910,\n \"user\": {\n \"code\": \"JXAWHIB2HN1756369698\",\n \"name\": \"Ana Afiliada\",\n \"email\": \"ana@email.com\"\n }\n }\n ]\n },\n \"created_at\": \"2025-12-01 14:30:00\",\n \"updated_at\": \"2026-02-25 03:00:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T03:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T03:00: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/subscription_overdue")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"subscription_overdue\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"subscription_code\": \"TS7QK4M2XJ9BVN5RLD3W\",\n \"status\": \"overdue\",\n \"overdue_at\": \"2026-02-25T03:00:00.000000Z\",\n \"next_charge\": \"2026-02-24 00:00:00\",\n \"payment_method\": \"credit_card\",\n \"product_hash\": \"PRD_abc123\",\n \"offer_code\": \"OFF_xyz789\",\n \"buyer\": {\n \"name\": \"Maria Santos\",\n \"email\": \"maria@email.com\"\n },\n \"commissions\": {\n \"transaction_hash\": \"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6\",\n \"paid_amount\": 19700,\n \"items\": [\n {\n \"type\": \"producer\",\n \"amount\": 11820,\n \"user\": {\n \"code\": \"PRDCODE123456789\",\n \"name\": \"João Produtor\",\n \"email\": \"joao@email.com\"\n }\n },\n {\n \"type\": \"affiliate\",\n \"amount\": 5910,\n \"user\": {\n \"code\": \"JXAWHIB2HN1756369698\",\n \"name\": \"Ana Afiliada\",\n \"email\": \"ana@email.com\"\n }\n }\n ]\n },\n \"created_at\": \"2025-12-01 14:30:00\",\n \"updated_at\": \"2026-02-25 03:00:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T03:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T03:00:00.000000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.ticto.com.br/api/v1/webhook-events/subscription_overdue")
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\": \"subscription_overdue\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"subscription_code\": \"TS7QK4M2XJ9BVN5RLD3W\",\n \"status\": \"overdue\",\n \"overdue_at\": \"2026-02-25T03:00:00.000000Z\",\n \"next_charge\": \"2026-02-24 00:00:00\",\n \"payment_method\": \"credit_card\",\n \"product_hash\": \"PRD_abc123\",\n \"offer_code\": \"OFF_xyz789\",\n \"buyer\": {\n \"name\": \"Maria Santos\",\n \"email\": \"maria@email.com\"\n },\n \"commissions\": {\n \"transaction_hash\": \"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6\",\n \"paid_amount\": 19700,\n \"items\": [\n {\n \"type\": \"producer\",\n \"amount\": 11820,\n \"user\": {\n \"code\": \"PRDCODE123456789\",\n \"name\": \"João Produtor\",\n \"email\": \"joao@email.com\"\n }\n },\n {\n \"type\": \"affiliate\",\n \"amount\": 5910,\n \"user\": {\n \"code\": \"JXAWHIB2HN1756369698\",\n \"name\": \"Ana Afiliada\",\n \"email\": \"ana@email.com\"\n }\n }\n ]\n },\n \"created_at\": \"2025-12-01 14:30:00\",\n \"updated_at\": \"2026-02-25 03:00:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T03:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T03:00:00.000000Z\"\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Envelope padrão de todos os webhooks enviados pelo Nexus.
O campo payload varia conforme o evento.
Nome do evento disparado
Example:
"user_updated"
URL do webhook configurada pelo cliente
Example:
"https://api.meusite.com/webhook/nexus"
Payload do evento subscription_overdue.
Disparado quando a assinatura está com cobrança em atraso.
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)
Example:
"2026-02-25T10:00:00.000000Z"
Data de atualização do webhook (ISO 8601)
Example:
"2026-02-25T10:00:00.000000Z"
Response
200
Webhook recebido com sucesso