Eduzz - Subscription
Eventos da família subscription.* na integração Eduzz.
Eventos Disponíveis
subscription.trialsubscription.activesubscription.past_duesubscription.pausedsubscription.canceledsubscription.completed
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" } }, "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": "credit_card" }, "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" } ], "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 |
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) |
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.