Fatura
Eventos
Fatura criada
{
"type": "invoice.created",
"event": {
"product": {
"id": "inAVzweR0QYw5y03K5mq",
"name": "Integrações com Webhook 2.0"
},
"products": [{
"id": "inAVzweR0QYw5y03K5mq",
"name": "Integrações com Webhook 2.0",
"offers": [{
"id": "inAVzweR0QYw5y03K5mq",
"name": "Principal",
"cohorts": [{ "id": "3a96c85e-cf82-4236-b242-7431f405c521" }]
}]
}],
"invoice": {
"id": "7614b1bb-1d1a-43ba-890c-50d74216eb56",
"subscriptionId": "d7ab5027-5bca-476c-ac29-68f1359ee6ca",
"payerId": "J0kmLJmCj1TO4m3pqW0GDlEjROQ2",
"sellerId": "onVILjt4hEhXIdCrvCXBUpcBuvk2",
"payer": {
"id": "J0kmLJmCj1TO4m3pqW0GDlEjROQ2",
"firstName": "John",
"lastName": "Doe",
"document": "12345678000190",
"email": "johndoe.payer@example.com",
"phone": "+5511999999999"
},
"installments": 12,
"paymentMethod": "credit_card",
"currency": "BRL",
"type": "sell",
"status": "draft",
"statusAt": [],
"coupon": {
"code": "VIP50OFF"
},
"amount": {
"subtotalCents": 120000,
"discountCents": 24000,
"prorataCents": 0,
"installmentFeeCents": 16320,
"totalCents": 112320
},
"receivers": [
{
"id": "platform-identity",
"name": "Hubla Tecnologia LTDA",
"email": "suporte@hub.la",
"phone": "+5531999715693",
"role": "platform",
"paysForFees": false,
"totalCents": 25778
},
{
"id": "onVILjt4hEhXIdCrvCXBUpcBuvk2",
"name": "Victor Lott",
"email": "lott@hub.la",
"phone": "+5533988891169",
"role": "seller",
"paysForFees": true,
"totalCents": 86542
}
],
"firstPaymentSession": {
"ip": "220.172.165.140",
"utm": {
"source": "email",
"medium": "active-campaign",
"campaign": "[LEAD][QUENTE][24][MAR]",
"content": "2024032812H",
"term": "PROMO10OFF"
}
},
"billingAddress": {
"countryCode": "BR",
"state": "São Paulo",
"city": "São Paulo",
"neighborhood": "Bela Vista",
"street": "Av. Paulista",
"complement": "MASP",
"number": "1578",
"postalCode": "01310-200"
},
"smartInstallment": {
"sourceInvoiceId": "ID da invoice que gerou o parcelamento inteligente",
"installment": 1,
"installments": 12
},
"saleDate": "2024-03-28T20:35:22.671Z",
"dueDate": "2024-03-28T20:35:16.350Z",
"createdAt": "2024-03-28T20:35:22.671Z",
"modifiedAt": "2024-03-28T20:35:22.671Z",
"version": 1
},
"user": {
"id": "J0kmLJmCj1TO4m3pqW0GDlEjROQ2",
"firstName": "John",
"lastName": "Doe",
"document": "12345678900",
"email": "johndoe.user@example.com",
"phone": "+5511999999999"
}
},
"version": "2.0.0"
}Status da fatura atualizada
Pagamento da fatura realizado
Pagamento da fatura falhou
Fatura expirada
Fatura reembolsada
Propriedades
Atualizado
Isto foi útil?