Skip to content

Instantly share code, notes, and snippets.

@charliemoseley
Created June 27, 2014 02:52
Show Gist options
  • Save charliemoseley/749f0a4207ac17424ada to your computer and use it in GitHub Desktop.
Save charliemoseley/749f0a4207ac17424ada to your computer and use it in GitHub Desktop.
Stripe Invoice Object
{
"created": 1326853478,
"livemode": false,
"id": "evt_00000000000000",
"type": "invoice.created",
"object": "event",
"request": null,
"data": {
"object": {
"date": 1403309323,
"id": "in_00000000000000",
"period_start": 1403290000,
"period_end": 1403308799,
"lines": {
"data": [
{
"id": "sub_4INgUGhJQjgdfC",
"object": "line_item",
"type": "subscription",
"livemode": true,
"amount": 0,
"currency": "usd",
"proration": false,
"period": {
"start": 1403827706,
"end": 1406419706
},
"quantity": 1,
"plan": {
"interval": "month",
"name": "Business",
"created": 1402684483,
"amount": 59900,
"currency": "usd",
"id": "business",
"object": "plan",
"livemode": false,
"interval_count": 1,
"trial_period_days": 30,
"metadata": {},
"statement_description": null
},
"description": null,
"metadata": {}
}
],
"count": 1,
"object": "list",
"url": "/v1/invoices/in_104G8K2jeYukMJwTDQ78ONiy/lines"
},
"subtotal": 59900,
"total": 39900,
"customer": "cus_00000000000000",
"object": "invoice",
"attempted": false,
"closed": false,
"paid": true,
"livemode": false,
"attempt_count": 2,
"amount_due": 39900,
"currency": "usd",
"starting_balance": 0,
"ending_balance": 0,
"next_payment_attempt": 1404004531,
"webhooks_delivered_at": 1403309323,
"charge": null,
"discount": {
"coupon": {
"id": "reverb-coupon_00000000000000",
"created": 1403217100,
"percent_off": null,
"amount_off": 20000,
"currency": "usd",
"object": "coupon",
"livemode": false,
"duration": "forever",
"redeem_by": null,
"max_redemptions": null,
"times_redeemed": 4,
"duration_in_months": null,
"valid": true,
"metadata": {}
},
"start": 1403290085,
"object": "discount",
"customer": "cus_00000000000000",
"subscription": "sub_00000000000000",
"end": null
},
"application_fee": null,
"subscription": "sub_00000000000000",
"metadata": {},
"statement_description": null,
"description": null
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment