{

"customer": {
  "allow_direct_debit": false,
  "auto_collection": "on",
  "billing_address": {
    "city": "Walnut",
    "country": "US",
    "first_name": "John",
    "last_name": "Doe",
    "line1": "PO Box 9999",
    "object": "billing_address",
    "state": "California",
    "state_code": "CA",
    "validation_status": "not_validated",
    "zip": "91789"
  },
  "card_status": "no_card",
  "created_at": 1517505643,
  "deleted": false,
  "email": "john@user.com",
  "excess_payments": 0,
  "first_name": "John",
  "id": "__test__KyVnHhSBWkkwI2Tn",
  "last_name": "Doe",
  "net_term_days": 0,
  "object": "customer",
  "pii_cleared": "active",
  "preferred_currency_code": "USD",
  "promotional_credits": 0,
  "refundable_credits": 0,
  "resource_version": 1517505643000,
  "taxability": "taxable",
  "unbilled_charges": 0,
  "updated_at": 1517505643
},
"invoice": {
  "adjustment_credit_notes": [],
  "amount_adjusted": 0,
  "amount_due": 895,
  "amount_paid": 0,
  "amount_to_collect": 895,
  "applied_credits": [],
  "base_currency_code": "USD",
  "billing_address": {
    "city": "Walnut",
    "country": "US",
    "first_name": "John",
    "last_name": "Doe",
    "line1": "PO Box 9999",
    "object": "billing_address",
    "state": "California",
    "state_code": "CA",
    "validation_status": "not_validated",
    "zip": "91789"
  },
  "credits_applied": 0,
  "currency_code": "USD",
  "customer_id": "__test__KyVnHhSBWkkwI2Tn",
  "date": 1517505643,
  "deleted": false,
  "due_date": 1517505643,
  "dunning_attempts": [],
  "exchange_rate": 1,
  "first_invoice": true,
  "has_advance_charges": false,
  "id": "__demo_inv__11",
  "is_gifted": false,
  "issued_credit_notes": [],
  "line_items": [
    {
      "amount": 895,
      "customer_id": "__test__KyVnHhSBWkkwI2Tn",
      "date_from": 1517505643,
      "date_to": 1519924843,
      "description": "No Trial",
      "discount_amount": 0,
      "entity_id": "no_trial",
      "entity_type": "plan",
      "id": "li___test__KyVnHhSBWkkxu2Tp",
      "is_taxed": false,
      "item_level_discount_amount": 0,
      "object": "line_item",
      "pricing_model": "per_unit",
      "quantity": 1,
      "subscription_id": "__test__KyVnHhSBWkkwI2Tn",
      "tax_amount": 0,
      "tax_exempt_reason": "tax_not_configured",
      "unit_amount": 895
    }
  ],
  "linked_orders": [],
  "linked_payments": [],
  "net_term_days": 0,
  "new_sales_amount": 895,
  "object": "invoice",
  "price_type": "tax_exclusive",
  "recurring": true,
  "resource_version": 1517505643000,
  "round_off_amount": 0,
  "status": "payment_due",
  "sub_total": 895,
  "subscription_id": "__test__KyVnHhSBWkkwI2Tn",
  "tax": 0,
  "term_finalized": true,
  "total": 895,
  "updated_at": 1517505643,
  "write_off_amount": 0
},
"subscription": {
  "activated_at": 1517505643,
  "auto_collection": "off",
  "billing_period": 1,
  "billing_period_unit": "month",
  "created_at": 1517505643,
  "currency_code": "USD",
  "current_term_end": 1519924843,
  "current_term_start": 1517505643,
  "customer_id": "__test__KyVnHhSBWkkwI2Tn",
  "deleted": false,
  "due_invoices_count": 1,
  "due_since": 1517505643,
  "has_scheduled_changes": false,
  "id": "__test__KyVnHhSBWkkwI2Tn",
  "mrr": 0,
  "next_billing_at": 1519924843,
  "object": "subscription",
  "plan_amount": 895,
  "plan_free_quantity": 0,
  "plan_id": "no_trial",
  "plan_quantity": 1,
  "plan_unit_price": 895,
  "resource_version": 1517505643000,
  "started_at": 1517505643,
  "status": "active",
  "total_dues": 895,
  "updated_at": 1517505643
}

}