Skip to content

Instantly share code, notes, and snippets.

@ayoung
Created March 7, 2015 08:12
Show Gist options
  • Save ayoung/eab6102c69f77cd8b313 to your computer and use it in GitHub Desktop.
Save ayoung/eab6102c69f77cd8b313 to your computer and use it in GitHub Desktop.
event
{
"created": 1425714928,
"id": "evt_15dcmS2qY5VcKUuIgwl2qU61",
"api_version": "2015-02-18",
"request": "iar_5pHLdcZRvm0HuE",
"pending_webhooks": 1,
"data": {
"object": {
"id": "in_15dcmS2qY5VcKUuIudpdptFq",
"forgiven": false,
"total": 0,
"attempted": true,
"description": null,
"charge": null,
"date": 1425714928,
"next_payment_attempt": null,
"period_start": 1425714928,
"starting_balance": 0,
"subtotal": 0,
"discount": null,
"tax": null,
"livemode": false,
"period_end": 1425714928,
"currency": "usd",
"statement_descriptor": null,
"receipt_number": null,
"customer": "cus_5pHLSaUl5h9BVL",
"metadata": {},
"lines": {
"object": "list",
"total_count": 1,
"data": [
{
"id": "sub_5pHLdmpOtlEK9V",
"currency": "usd",
"metadata": {},
"description": null,
"subscription": null,
"type": "subscription",
"proration": false,
"amount": 0,
"object": "line_item",
"period": {
"start": 1425714928,
"end": 1428393328
},
"plan": {
"created": 1425365695,
"id": "free",
"interval": "month",
"statement_descriptor": null,
"metadata": {},
"amount": 0,
"interval_count": 1,
"object": "plan",
"name": "Free",
"trial_period_days": null,
"livemode": false,
"currency": "usd"
},
"livemode": false,
"quantity": 1
}
],
"has_more": false,
"url": "/v1/invoices/in_15dcmS2qY5VcKUuIudpdptFq/lines"
},
"ending_balance": 0,
"object": "invoice",
"subscription": "sub_5pHLdmpOtlEK9V",
"paid": true,
"attempt_count": 0,
"amount_due": 0,
"tax_percent": null,
"closed": true,
"webhooks_delivered_at": null,
"application_fee": null
}
},
"type": "invoice.created",
"object": "event",
"livemode": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment