bill.created
The bill.created event is triggered whenever a new bill is created in the Pelcro Platform.
{
"type": "bill.created",
"id": "evt_yVy2C9Vh3hEL5fvNznAZJwqQ",
"created": 1660237679,
"triggered_from": "open_api",
"data": {
"object": {
"object": "bill",
"id": 123,
"account_id": 456,
"user_id": 789,
"amount_due": 10000,
"amount_paid": 0,
"amount_remaining": 10000,
"currency": "usd",
"created": 1640995200,
"description": "Monthly services",
"footer": "Thank you for your business",
"finalized_at": null,
"hosted_bill_url": null,
"bill_pdf": null,
"metadata": {},
"number": "BILL-2024-001",
"paid": false,
"paid_at": null,
"period_start": null,
"period_end": null,
"purchase_order": "PO-12345",
"status": "draft",
"subtotal": 10000,
"total": 10000,
"voided_at": null,
"vendor": {
"object": "vendor",
"id": 789,
"object_id": "user_abc123",
"default_source_id": null,
"balance": 0,
"currency": "usd",
"created": 1640995200,
"delinquent": false,
"salutation": "Mr.",
"first_name": "John",
"last_name": "Doe",
"display_name": "John Doe",
"username": "johndoe",
"title": null,
"email": "[email protected]",
"billing_email": null,
"phone": "+1234567890",
"language": "en",
"email_hardbounce": false,
"email_confirm": true,
"phone_confirm": false,
"has_password": true,
"password_last_updated_at": 1640995200,
"last_login_method": 1,
"metadata": {},
"organization": null,
"tele_marketing": false,
"mail_marketing": false,
"dates": {
"created_at": 1640995200,
"updated_at": 1640995200
}
},
"billing_address": null,
"address_billing": null,
"line_items": [
{
"object": "bill_line_item",
"id": 1,
"bill_id": 123,
"amount": 5000,
"currency": "usd",
"description": "Service A",
"metadata": {},
"quantity": 1,
"type": "service",
"amounts": {
"unit_price": 5000,
"quantity": 1,
"subtotal": 5000
},
"bill": {
"id": 123,
"number": "BILL-2024-001",
"status": "Draft",
"currency": "usd"
},
"dates": {
"created_at": 1640995200,
"updated_at": 1640995200
}
}
],
"status_label": "Draft",
"status_value": "draft",
"amounts": {
"subtotal": 10000,
"tax": 0,
"total": 10000,
"amount_due": 10000,
"amount_paid": 0,
"amount_remaining": 10000
},
"dates": {
"created_at": 1640995200,
"updated_at": 1640995200,
"finalized_at": null,
"paid_at": null
},
"payment": {
"paid": false,
"paid_at": null,
"amount_paid": 0
},
"purchase_order": "PO-12345",
"notes": "Thank you for your business"
}
}Updated about 12 hours ago
