Eduzz - Subscription Transaction
Eventos da família subscription_transaction.* na integração Eduzz.
Eventos Disponíveis
subscription_transaction.waiting_payment.pixsubscription_transaction.waiting_payment.boletosubscription_transaction.waiting_payment.credit_cardsubscription_transaction.waiting_payment.without_payment_methodsubscription_transaction.paidsubscription_transaction.processingsubscription_transaction.disputedsubscription_transaction.refundedsubscription_transaction.canceledsubscription_transaction.failedsubscription_transaction.expired
Estrutura do Payload
{ "customer": { "id": "CUST-123", "name": "João Silva", "document": "12345678900", "phone_numbers": [ { "formatted_phone": "+5511999999999", "type": null, "raw_number": "5511999999999", "area_code": null, "international_dialing_code": null } ], "address": { "street": "Rua Principal", "number": "123", "complement": "Apto 45", "neighborhood": "Centro", "city": "São Paulo", "state": "SP", "country": "BR", "postal_code": "01000-000" } }, "transaction": { "id": "TRANS-789", "status": "paid", "raw_status": "3", "created_at": 1705319000, "updated_at": null, "paid_at": 1705319100, "warranty_until": null, "canceled_at": null, "refunded_at": null }, "subscription": { "id": "REC-123", "name": "Plano Mensal", "created_at": 1705319000, "updated_at": null, "canceled_at": null, "cancellation_reason": null, "charged_times": 5, "current_cycle": 5, "current_cycle_start": null, "current_cycle_end": null, "status": "active" }, "payment": { "currency": "BRL", "total": 9970, "discount_value": null, "shipping_value": null, "total_products_value": 9970, "payment_method": { "qrcode_url": null, "qrcode_signature": null, "expiration_date": null, "pix_key": null, "pix_key_type": null, "digitable_line": null, "url": null, "type": "pix" }, "coupons": [ { "code": "DESCONTO10", "value": 1000 } ] }, "products": [ { "id": "PROD-456", "name": "Curso Online", "quantity": 1, "unit_value": 9970, "total_value": 9970, "image_url": null, "type": "subscription_plan", "offer_type": "main" } ], "checkout": { "id": null, "url": null }, "shipping": { "carrier": null, "total_value": null, "tracking_url": null, "tracking_code": null, "method": null, "delivery_address": null, "estimated_delivery_date": null, "estimated_delivery_time_in_days": null, "status": null, "raw_status": null }, "lead_tracking": { "src": null, "sck": null, "utm_source": null, "utm_campaign": null, "utm_medium": null, "utm_content": null, "utm_term": null, "utm_id": null, "meta_fbp": null, "google_ga_id": null, "google_gclid": null, "google_gclsrc": null, "google_dclid": null, "google_gbraid": null, "google_wbraid": null, "tiktok_ttlid": null, "ip": null }, "charge": { "id": null, "created_at": null, "status": null, "type": null, "value": null }}Componentes do Payload
Customer
| Campo | Tipo | Descrição |
|---|---|---|
id | string | null | ID do cliente |
name | string | null | Nome completo do cliente |
email | string | null | E-mail do cliente |
document | string | null | CPF ou CNPJ do cliente |
phone_numbers | Phone[] | null | Coleção de telefones do cliente |
address | [Address] | Endereço do cliente |
Address
Endereço do cliente.
| Campo | Tipo | Descrição |
|---|---|---|
street | string | null | Nome da rua |
number | string | null | Número |
complement | string | null | Complemento |
neighborhood | string | null | Bairro |
city | string | null | Cidade |
state | string | null | Estado (sigla) |
country | string | null | Código do país |
postal_code | string | null | CEP |
Phone
Telefone do cliente.
| Campo | Tipo | Descrição |
|---|---|---|
formatted_phone | string | null | Telefone formatado |
type | null | Sempre null |
raw_number | string | null | Número bruto |
area_code | null | Sempre null |
international_dialing_code | null | Sempre null |
Order
| Campo | Tipo | Descrição |
|---|---|---|
id | string | null | ID do pedido |
status | string | null | Status normalizado do pedido |
raw_status | string | null | Status original do provider |
created_at | integer | null | Timestamp de criação do pedido |
updated_at | null | Sempre null |
paid_at | integer | null | Timestamp de confirmação do pagamento |
warranty_until | null | Sempre null |
canceled_at | null | Sempre null |
refunded_at | integer | null | Timestamp do reembolso |
Status Normalizados (OrderStatus)
A Eduzz retorna os seguintes valores normalizados para o status do pedido:
| Valor | Descrição |
|---|---|
waiting_payment | Aguardando pagamento |
paid | Pago |
payment_processing | Processando pagamento |
scheduled | Agendado |
disputed | Em disputa |
refunded | Reembolsado |
expired | Expirado |
canceled | Cancelado |
failed | Falhou |
abandoned | Abandonado |
Subscription
| Campo | Tipo | Descrição |
|---|---|---|
id | string | null | ID da assinatura |
name | string | null | Nome do plano de assinatura |
created_at | integer | null | Timestamp de criação |
updated_at | null | Sempre null |
canceled_at | integer | null | Timestamp de cancelamento |
cancellation_reason | null | Sempre null |
charged_times | integer | null | Número de cobranças realizadas |
current_cycle | integer | null | Ciclo atual |
current_cycle_start | null | Sempre null |
current_cycle_end | null | Sempre null |
status | string | null | Status normalizado da assinatura |
Status Normalizados (SubscriptionStatus)
A Eduzz retorna os seguintes valores normalizados para o status da assinatura:
| Valor | Descrição |
|---|---|
trial | Em período de teste |
active | Ativa |
past_due | Em atraso |
paused | Pausada |
canceled | Cancelada |
completed | Concluída |
Payment
| Campo | Tipo | Descrição |
|---|---|---|
currency | string | null | Moeda em formato ISO 4217 |
total | integer | null | Valor total em centavos |
discount_value | integer | null | Valor do desconto em centavos |
shipping_value | null | Sempre null |
total_products_value | integer | null | Valor total dos produtos em centavos |
payment_method | object | null | Método de pagamento |
coupons | array | Array de cupons |
Métodos de Pagamento
Boleto
| Campo | Tipo | Descrição |
|---|---|---|
type | string | Sempre boleto |
digitable_line | string | null | Linha digitável do boleto |
url | string | null | URL do boleto |
expiration_date | integer | null | Timestamp de expiração |
Pix
| Campo | Tipo | Descrição |
|---|---|---|
type | string | Sempre pix |
qrcode_url | string | null | URL do QR Code Pix |
qrcode_signature | null | Sempre null |
expiration_date | integer | null | Timestamp de expiração |
pix_key | null | Sempre null |
pix_key_type | null | Sempre null |
CreditCard
| Campo | Tipo | Descrição |
|---|---|---|
type | null | Sempre null |
brand | null | Sempre null |
last_digits | null | Sempre null |
expiration_month | null | Sempre null |
expiration_year | null | Sempre null |
[!NOTE] A Eduzz não expõe informações detalhadas do cartão de crédito nos webhooks.
Coupon
| Campo | Tipo | Descrição |
|---|---|---|
id | null | Sempre null |
code | string | null | Código do cupom |
value | integer | null | Valor do cupom em centavos |
percentage | null | Sempre null |
incidence | string | Incidência (products) |
incidence_type | string | Tipo (value) |
expiration_date | null | Sempre null |
Product
| Campo | Tipo | Descrição |
|---|---|---|
id | string | null | ID do produto |
name | string | null | Nome do produto |
quantity | integer | null | Quantidade |
unit_value | integer | null | Valor unitário em centavos |
total_value | integer | null | Valor total em centavos |
image_url | null | Sempre null |
type | string | Tipo do produto (product ou subscription_plan) |
offer_type | string | Tipo da oferta (main) |
Checkout
| Campo | Tipo | Descrição |
|---|---|---|
id | string | null | ID do checkout/carrinho |
url | string | null | URL do checkout |
Shipping
| Campo | Tipo | Descrição |
|---|---|---|
carrier | null | Sempre null |
total_value | null | Sempre null |
tracking_url | null | Sempre null |
tracking_code | null | Sempre null |
method | null | Sempre null |
delivery_address | null | Sempre null |
estimated_delivery_date | null | Sempre null |
estimated_delivery_time_in_days | null | Sempre null |
status | null | Sempre null |
raw_status | null | Sempre null |
[!NOTE] A Eduzz não disponibiliza informações de envio/entrega.
LeadTracking
| Campo | Tipo | Descrição |
|---|---|---|
src | string | null | Fonte do tracker |
sck | string | null | Código do tracker |
utm_source | string | null | Fonte da campanha |
utm_campaign | string | null | Nome da campanha |
utm_medium | string | null | Meio da campanha |
utm_content | string | null | Conteúdo da campanha |
utm_term | null | Sempre null |
utm_id | null | Sempre null |
meta_fbp | null | Sempre null |
google_ga_id | null | Sempre null |
google_gclid | null | Sempre null |
google_gclsrc | null | Sempre null |
google_dclid | null | Sempre null |
google_gbraid | null | Sempre null |
google_wbraid | null | Sempre null |
tiktok_ttlid | null | Sempre null |
ip | null | Sempre null |
Charge (vazio)
| Campo | Tipo | Descrição |
|---|---|---|
id | null | Sempre null |
created_at | null | Sempre null |
status | null | Sempre null |
type | null | Sempre null |
value | null | Sempre null |
[!NOTE] Essa integração não disponibiliza informações de cobrança.