{
"id": "event_xxxxx",
"object": "event",
"created": 1754819712625,
"type": "invoice.paid",
"data": {
"object": {
"invoiceId": "inv_xxxxx",
"subscriptionId": "sub_xxxxx",
"orderId": "order_xxxxx",
"customerId": "cus_xxxxx",
"merchantId": "mcht_xxxxx",
"status": "paid",
"createTime": 1754819712625,
"currentPeriodStart": 1754819711382,
"currentPeriodEnd": 1757498111382,
"originalAmount": "19.99",
"originalCurrency": "USD",
"billing": "charge_automatically",
"items": [
{
"invoiceItemId": "ii_xxxxx",
"amount": "19.99",
"currency": "USD",
"description": "Pro Plan monthly subscription",
"periodStart": 1754819711382,
"periodEnd": 1757498111382,
"proration": false,
"price": {
"productId": "prd_xxxxx",
"productName": "Pro Plan",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"unitAmount": "19.99",
"quantity": 1,
"recurring": {
"interval": "month",
"pricingModel": "flat_rate",
"trialPeriodDays": 0
}
}
}
]
}
}
}Webhooks
invoice
Webhook notification triggered when an invoice is created or updated
WEBHOOK
invoice
{
"id": "event_xxxxx",
"object": "event",
"created": 1754819712625,
"type": "invoice.paid",
"data": {
"object": {
"invoiceId": "inv_xxxxx",
"subscriptionId": "sub_xxxxx",
"orderId": "order_xxxxx",
"customerId": "cus_xxxxx",
"merchantId": "mcht_xxxxx",
"status": "paid",
"createTime": 1754819712625,
"currentPeriodStart": 1754819711382,
"currentPeriodEnd": 1757498111382,
"originalAmount": "19.99",
"originalCurrency": "USD",
"billing": "charge_automatically",
"items": [
{
"invoiceItemId": "ii_xxxxx",
"amount": "19.99",
"currency": "USD",
"description": "Pro Plan monthly subscription",
"periodStart": 1754819711382,
"periodEnd": 1757498111382,
"proration": false,
"price": {
"productId": "prd_xxxxx",
"productName": "Pro Plan",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"unitAmount": "19.99",
"quantity": 1,
"recurring": {
"interval": "month",
"pricingModel": "flat_rate",
"trialPeriodDays": 0
}
}
}
]
}
}
}Headers
Body
application/json
Invoice event payload in json
Response
200
Return a 200 status to indicate that the data was received successfully