offer_updated
curl --request POST \
--url https://nexus.ticto.com.br/api/v1/webhook-events/offer_updated \
--header 'Content-Type: application/json' \
--data '
{
"event": "offer_updated",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"code": "OFF_xyz789",
"name": "Oferta Premium",
"price": 19700,
"fake_initial_price": 29700,
"allow_credit_card": true,
"credit_card_installments_options": [
1,
2,
3,
6,
12
],
"allow_pix": true,
"allow_bank_slip": false,
"allow_debit_card": false,
"cover_picture": "https://storage.example.com/offers/cover.jpg",
"type_of_charge": "one-time",
"subscription": {
"interval": null,
"trial_days": null,
"trial_days_text": null,
"first_charge_price": null,
"is_extension": false,
"extension_length": null,
"max_charges": null,
"max_charges_attempts": null
},
"created_at": "2026-01-15 14:30:00",
"updated_at": "2026-02-20 09:15:00"
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"correlation_id": null
},
"created_at": "2026-02-25T10:00:00.000000Z",
"updated_at": "2026-02-25T10:00:00.000000Z"
}
'import requests
url = "https://nexus.ticto.com.br/api/v1/webhook-events/offer_updated"
payload = {
"event": "offer_updated",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"code": "OFF_xyz789",
"name": "Oferta Premium",
"price": 19700,
"fake_initial_price": 29700,
"allow_credit_card": True,
"credit_card_installments_options": [1, 2, 3, 6, 12],
"allow_pix": True,
"allow_bank_slip": False,
"allow_debit_card": False,
"cover_picture": "https://storage.example.com/offers/cover.jpg",
"type_of_charge": "one-time",
"subscription": {
"interval": None,
"trial_days": None,
"trial_days_text": None,
"first_charge_price": None,
"is_extension": False,
"extension_length": None,
"max_charges": None,
"max_charges_attempts": None
},
"created_at": "2026-01-15 14:30:00",
"updated_at": "2026-02-20 09:15:00"
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"correlation_id": None
},
"created_at": "2026-02-25T10:00:00.000000Z",
"updated_at": "2026-02-25T10: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: 'offer_updated',
endpoint: 'https://api.meusite.com/webhook/nexus',
payload: {
code: 'OFF_xyz789',
name: 'Oferta Premium',
price: 19700,
fake_initial_price: 29700,
allow_credit_card: true,
credit_card_installments_options: [1, 2, 3, 6, 12],
allow_pix: true,
allow_bank_slip: false,
allow_debit_card: false,
cover_picture: 'https://storage.example.com/offers/cover.jpg',
type_of_charge: 'one-time',
subscription: {
interval: null,
trial_days: null,
trial_days_text: null,
first_charge_price: null,
is_extension: false,
extension_length: null,
max_charges: null,
max_charges_attempts: null
},
created_at: '2026-01-15 14:30:00',
updated_at: '2026-02-20 09:15:00'
},
metadata: {origin: 'nexus', request_id: '67be1a2f3c4d5', correlation_id: null},
created_at: '2026-02-25T10:00:00.000000Z',
updated_at: '2026-02-25T10:00:00.000000Z'
})
};
fetch('https://nexus.ticto.com.br/api/v1/webhook-events/offer_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/offer_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' => 'offer_updated',
'endpoint' => 'https://api.meusite.com/webhook/nexus',
'payload' => [
'code' => 'OFF_xyz789',
'name' => 'Oferta Premium',
'price' => 19700,
'fake_initial_price' => 29700,
'allow_credit_card' => true,
'credit_card_installments_options' => [
1,
2,
3,
6,
12
],
'allow_pix' => true,
'allow_bank_slip' => false,
'allow_debit_card' => false,
'cover_picture' => 'https://storage.example.com/offers/cover.jpg',
'type_of_charge' => 'one-time',
'subscription' => [
'interval' => null,
'trial_days' => null,
'trial_days_text' => null,
'first_charge_price' => null,
'is_extension' => false,
'extension_length' => null,
'max_charges' => null,
'max_charges_attempts' => null
],
'created_at' => '2026-01-15 14:30:00',
'updated_at' => '2026-02-20 09:15:00'
],
'metadata' => [
'origin' => 'nexus',
'request_id' => '67be1a2f3c4d5',
'correlation_id' => null
],
'created_at' => '2026-02-25T10:00:00.000000Z',
'updated_at' => '2026-02-25T10: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/offer_updated"
payload := strings.NewReader("{\n \"event\": \"offer_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"code\": \"OFF_xyz789\",\n \"name\": \"Oferta Premium\",\n \"price\": 19700,\n \"fake_initial_price\": 29700,\n \"allow_credit_card\": true,\n \"credit_card_installments_options\": [\n 1,\n 2,\n 3,\n 6,\n 12\n ],\n \"allow_pix\": true,\n \"allow_bank_slip\": false,\n \"allow_debit_card\": false,\n \"cover_picture\": \"https://storage.example.com/offers/cover.jpg\",\n \"type_of_charge\": \"one-time\",\n \"subscription\": {\n \"interval\": null,\n \"trial_days\": null,\n \"trial_days_text\": null,\n \"first_charge_price\": null,\n \"is_extension\": false,\n \"extension_length\": null,\n \"max_charges\": null,\n \"max_charges_attempts\": null\n },\n \"created_at\": \"2026-01-15 14:30:00\",\n \"updated_at\": \"2026-02-20 09:15:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T10: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/offer_updated")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"offer_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"code\": \"OFF_xyz789\",\n \"name\": \"Oferta Premium\",\n \"price\": 19700,\n \"fake_initial_price\": 29700,\n \"allow_credit_card\": true,\n \"credit_card_installments_options\": [\n 1,\n 2,\n 3,\n 6,\n 12\n ],\n \"allow_pix\": true,\n \"allow_bank_slip\": false,\n \"allow_debit_card\": false,\n \"cover_picture\": \"https://storage.example.com/offers/cover.jpg\",\n \"type_of_charge\": \"one-time\",\n \"subscription\": {\n \"interval\": null,\n \"trial_days\": null,\n \"trial_days_text\": null,\n \"first_charge_price\": null,\n \"is_extension\": false,\n \"extension_length\": null,\n \"max_charges\": null,\n \"max_charges_attempts\": null\n },\n \"created_at\": \"2026-01-15 14:30:00\",\n \"updated_at\": \"2026-02-20 09:15:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T10:00:00.000000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.ticto.com.br/api/v1/webhook-events/offer_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\": \"offer_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"code\": \"OFF_xyz789\",\n \"name\": \"Oferta Premium\",\n \"price\": 19700,\n \"fake_initial_price\": 29700,\n \"allow_credit_card\": true,\n \"credit_card_installments_options\": [\n 1,\n 2,\n 3,\n 6,\n 12\n ],\n \"allow_pix\": true,\n \"allow_bank_slip\": false,\n \"allow_debit_card\": false,\n \"cover_picture\": \"https://storage.example.com/offers/cover.jpg\",\n \"type_of_charge\": \"one-time\",\n \"subscription\": {\n \"interval\": null,\n \"trial_days\": null,\n \"trial_days_text\": null,\n \"first_charge_price\": null,\n \"is_extension\": false,\n \"extension_length\": null,\n \"max_charges\": null,\n \"max_charges_attempts\": null\n },\n \"created_at\": \"2026-01-15 14:30:00\",\n \"updated_at\": \"2026-02-20 09:15:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T10:00:00.000000Z\"\n}"
response = http.request(request)
puts response.read_bodyWebhooks: Produtos e Ofertas
offer_updated
Disparado quando uma oferta é atualizada.
Quando ocorre:
- Alteração de preço, métodos de pagamento, parcelamento
- Mudança nas configurações de assinatura da oferta
- Atualização de capa ou cupom
POST
/
webhook-events
/
offer_updated
offer_updated
curl --request POST \
--url https://nexus.ticto.com.br/api/v1/webhook-events/offer_updated \
--header 'Content-Type: application/json' \
--data '
{
"event": "offer_updated",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"code": "OFF_xyz789",
"name": "Oferta Premium",
"price": 19700,
"fake_initial_price": 29700,
"allow_credit_card": true,
"credit_card_installments_options": [
1,
2,
3,
6,
12
],
"allow_pix": true,
"allow_bank_slip": false,
"allow_debit_card": false,
"cover_picture": "https://storage.example.com/offers/cover.jpg",
"type_of_charge": "one-time",
"subscription": {
"interval": null,
"trial_days": null,
"trial_days_text": null,
"first_charge_price": null,
"is_extension": false,
"extension_length": null,
"max_charges": null,
"max_charges_attempts": null
},
"created_at": "2026-01-15 14:30:00",
"updated_at": "2026-02-20 09:15:00"
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"correlation_id": null
},
"created_at": "2026-02-25T10:00:00.000000Z",
"updated_at": "2026-02-25T10:00:00.000000Z"
}
'import requests
url = "https://nexus.ticto.com.br/api/v1/webhook-events/offer_updated"
payload = {
"event": "offer_updated",
"endpoint": "https://api.meusite.com/webhook/nexus",
"payload": {
"code": "OFF_xyz789",
"name": "Oferta Premium",
"price": 19700,
"fake_initial_price": 29700,
"allow_credit_card": True,
"credit_card_installments_options": [1, 2, 3, 6, 12],
"allow_pix": True,
"allow_bank_slip": False,
"allow_debit_card": False,
"cover_picture": "https://storage.example.com/offers/cover.jpg",
"type_of_charge": "one-time",
"subscription": {
"interval": None,
"trial_days": None,
"trial_days_text": None,
"first_charge_price": None,
"is_extension": False,
"extension_length": None,
"max_charges": None,
"max_charges_attempts": None
},
"created_at": "2026-01-15 14:30:00",
"updated_at": "2026-02-20 09:15:00"
},
"metadata": {
"origin": "nexus",
"request_id": "67be1a2f3c4d5",
"correlation_id": None
},
"created_at": "2026-02-25T10:00:00.000000Z",
"updated_at": "2026-02-25T10: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: 'offer_updated',
endpoint: 'https://api.meusite.com/webhook/nexus',
payload: {
code: 'OFF_xyz789',
name: 'Oferta Premium',
price: 19700,
fake_initial_price: 29700,
allow_credit_card: true,
credit_card_installments_options: [1, 2, 3, 6, 12],
allow_pix: true,
allow_bank_slip: false,
allow_debit_card: false,
cover_picture: 'https://storage.example.com/offers/cover.jpg',
type_of_charge: 'one-time',
subscription: {
interval: null,
trial_days: null,
trial_days_text: null,
first_charge_price: null,
is_extension: false,
extension_length: null,
max_charges: null,
max_charges_attempts: null
},
created_at: '2026-01-15 14:30:00',
updated_at: '2026-02-20 09:15:00'
},
metadata: {origin: 'nexus', request_id: '67be1a2f3c4d5', correlation_id: null},
created_at: '2026-02-25T10:00:00.000000Z',
updated_at: '2026-02-25T10:00:00.000000Z'
})
};
fetch('https://nexus.ticto.com.br/api/v1/webhook-events/offer_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/offer_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' => 'offer_updated',
'endpoint' => 'https://api.meusite.com/webhook/nexus',
'payload' => [
'code' => 'OFF_xyz789',
'name' => 'Oferta Premium',
'price' => 19700,
'fake_initial_price' => 29700,
'allow_credit_card' => true,
'credit_card_installments_options' => [
1,
2,
3,
6,
12
],
'allow_pix' => true,
'allow_bank_slip' => false,
'allow_debit_card' => false,
'cover_picture' => 'https://storage.example.com/offers/cover.jpg',
'type_of_charge' => 'one-time',
'subscription' => [
'interval' => null,
'trial_days' => null,
'trial_days_text' => null,
'first_charge_price' => null,
'is_extension' => false,
'extension_length' => null,
'max_charges' => null,
'max_charges_attempts' => null
],
'created_at' => '2026-01-15 14:30:00',
'updated_at' => '2026-02-20 09:15:00'
],
'metadata' => [
'origin' => 'nexus',
'request_id' => '67be1a2f3c4d5',
'correlation_id' => null
],
'created_at' => '2026-02-25T10:00:00.000000Z',
'updated_at' => '2026-02-25T10: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/offer_updated"
payload := strings.NewReader("{\n \"event\": \"offer_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"code\": \"OFF_xyz789\",\n \"name\": \"Oferta Premium\",\n \"price\": 19700,\n \"fake_initial_price\": 29700,\n \"allow_credit_card\": true,\n \"credit_card_installments_options\": [\n 1,\n 2,\n 3,\n 6,\n 12\n ],\n \"allow_pix\": true,\n \"allow_bank_slip\": false,\n \"allow_debit_card\": false,\n \"cover_picture\": \"https://storage.example.com/offers/cover.jpg\",\n \"type_of_charge\": \"one-time\",\n \"subscription\": {\n \"interval\": null,\n \"trial_days\": null,\n \"trial_days_text\": null,\n \"first_charge_price\": null,\n \"is_extension\": false,\n \"extension_length\": null,\n \"max_charges\": null,\n \"max_charges_attempts\": null\n },\n \"created_at\": \"2026-01-15 14:30:00\",\n \"updated_at\": \"2026-02-20 09:15:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T10: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/offer_updated")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"offer_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"code\": \"OFF_xyz789\",\n \"name\": \"Oferta Premium\",\n \"price\": 19700,\n \"fake_initial_price\": 29700,\n \"allow_credit_card\": true,\n \"credit_card_installments_options\": [\n 1,\n 2,\n 3,\n 6,\n 12\n ],\n \"allow_pix\": true,\n \"allow_bank_slip\": false,\n \"allow_debit_card\": false,\n \"cover_picture\": \"https://storage.example.com/offers/cover.jpg\",\n \"type_of_charge\": \"one-time\",\n \"subscription\": {\n \"interval\": null,\n \"trial_days\": null,\n \"trial_days_text\": null,\n \"first_charge_price\": null,\n \"is_extension\": false,\n \"extension_length\": null,\n \"max_charges\": null,\n \"max_charges_attempts\": null\n },\n \"created_at\": \"2026-01-15 14:30:00\",\n \"updated_at\": \"2026-02-20 09:15:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T10:00:00.000000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.ticto.com.br/api/v1/webhook-events/offer_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\": \"offer_updated\",\n \"endpoint\": \"https://api.meusite.com/webhook/nexus\",\n \"payload\": {\n \"code\": \"OFF_xyz789\",\n \"name\": \"Oferta Premium\",\n \"price\": 19700,\n \"fake_initial_price\": 29700,\n \"allow_credit_card\": true,\n \"credit_card_installments_options\": [\n 1,\n 2,\n 3,\n 6,\n 12\n ],\n \"allow_pix\": true,\n \"allow_bank_slip\": false,\n \"allow_debit_card\": false,\n \"cover_picture\": \"https://storage.example.com/offers/cover.jpg\",\n \"type_of_charge\": \"one-time\",\n \"subscription\": {\n \"interval\": null,\n \"trial_days\": null,\n \"trial_days_text\": null,\n \"first_charge_price\": null,\n \"is_extension\": false,\n \"extension_length\": null,\n \"max_charges\": null,\n \"max_charges_attempts\": null\n },\n \"created_at\": \"2026-01-15 14:30:00\",\n \"updated_at\": \"2026-02-20 09:15:00\"\n },\n \"metadata\": {\n \"origin\": \"nexus\",\n \"request_id\": \"67be1a2f3c4d5\",\n \"correlation_id\": null\n },\n \"created_at\": \"2026-02-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-02-25T10: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 dos eventos offer_updated e offer_deleted.
Disparado quando uma oferta é alterada ou removida.
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