Skip to content

Instantly share code, notes, and snippets.

@pedro-vasconcelos
Created April 9, 2022 18:01
Show Gist options
  • Save pedro-vasconcelos/b5526eda75c4d07f7b6c1ce9ffcd17c8 to your computer and use it in GitHub Desktop.
Save pedro-vasconcelos/b5526eda75c4d07f7b6c1ce9ffcd17c8 to your computer and use it in GitHub Desktop.
stripe_event: invoiceitem.created
{
"id": "evt_1KmiQtLueXt1u2tdcZe8dDu3",
"object": "event",
"api_version": "2020-08-27",
"created": 1649526646,
"data": {
"object": {
"id": "ii_1KmiQqLueXt1u2tdLvfdRXxP",
"object": "invoiceitem",
"amount": -800,
"currency": "usd",
"customer": "cus_LTfh1UFFn5ZxFf",
"date": 1649526643,
"description": "Unused time on 20 × Hotspots after 09 Apr 2022",
"discountable": false,
"discounts": [],
"invoice": "in_1KmiQqLueXt1u2tdLbPbN3AN",
"livemode": false,
"metadata": [],
"period": {
"end": 1652118362,
"start": 1649526643
},
"plan": {
"id": "price_1KlLdPLueXt1u2tdXD73qduR",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": null,
"amount_decimal": null,
"billing_scheme": "tiered",
"created": 1649200683,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": [],
"nickname": "Monthly Plan",
"product": "prod_LSG9zz7NuiNfVH",
"tiers_mode": "volume",
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"price": {
"id": "price_1KlLdPLueXt1u2tdXD73qduR",
"object": "price",
"active": true,
"billing_scheme": "tiered",
"created": 1649200683,
"currency": "usd",
"livemode": false,
"lookup_key": null,
"metadata": [],
"nickname": "Monthly Plan",
"product": "prod_LSG9zz7NuiNfVH",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"trial_period_days": null,
"usage_type": "licensed"
},
"tax_behavior": "exclusive",
"tiers_mode": "volume",
"transform_quantity": null,
"type": "recurring",
"unit_amount": null,
"unit_amount_decimal": null
},
"proration": true,
"quantity": 20,
"subscription": "sub_1KmiMILueXt1u2tdRpX4m04k",
"subscription_item": "si_LTfh6pBUPrHh3C",
"tax_rates": [],
"test_clock": null,
"unit_amount": -800,
"unit_amount_decimal": "-800"
}
},
"livemode": false,
"pending_webhooks": 2,
"request": {
"id": "req_0iLraXDCUbJd8k",
"idempotency_key": "0111ed45-7b4f-46d0-887c-d8755893e691"
},
"type": "invoiceitem.created"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment