{
"customer": { "allow_direct_debit": false, "auto_collection": "off", "card_status": "no_card", "created_at": 1517505669, "deleted": false, "excess_payments": 0, "id": "__test__KyVnHhSBWkrVS2Wn", "net_term_days": 0, "object": "customer", "pii_cleared": "active", "preferred_currency_code": "USD", "promotional_credits": 0, "refundable_credits": 0, "resource_version": 1517505669000, "taxability": "taxable", "unbilled_charges": 0, "updated_at": 1517505669 }, "invoice": { "adjustment_credit_notes": [], "amount_adjusted": 0, "amount_due": 895, "amount_paid": 0, "amount_to_collect": 895, "applied_credits": [], "base_currency_code": "USD", "credits_applied": 0, "currency_code": "USD", "customer_id": "__test__KyVnHhSBWkrVS2Wn", "date": 1517505669, "deleted": false, "due_date": 1517505669, "dunning_attempts": [], "exchange_rate": 1, "first_invoice": false, "has_advance_charges": false, "id": "__demo_inv__23", "is_gifted": false, "issued_credit_notes": [], "line_items": [ { "amount": 895, "customer_id": "__test__KyVnHhSBWkrVS2Wn", "date_from": 1517505669, "date_to": 1519924869, "description": "No Trial", "discount_amount": 0, "entity_id": "no_trial", "entity_type": "plan", "id": "li___test__KyVnHhSBWkrbQ2Ww", "is_taxed": false, "item_level_discount_amount": 0, "object": "line_item", "pricing_model": "per_unit", "quantity": 1, "subscription_id": "__test__KyVnHhSBWkrVS2Wn", "tax_amount": 0, "tax_exempt_reason": "tax_not_configured", "unit_amount": 895 } ], "linked_orders": [], "linked_payments": [], "net_term_days": 0, "object": "invoice", "price_type": "tax_exclusive", "recurring": true, "resource_version": 1517505669000, "round_off_amount": 0, "status": "payment_due", "sub_total": 895, "subscription_id": "__test__KyVnHhSBWkrVS2Wn", "tax": 0, "term_finalized": true, "total": 895, "updated_at": 1517505669, "write_off_amount": 0 }, "subscription": { "activated_at": 1517505669, "billing_period": 1, "billing_period_unit": "month", "created_at": 1517505669, "currency_code": "USD", "current_term_end": 1519924869, "current_term_start": 1517505669, "customer_id": "__test__KyVnHhSBWkrVS2Wn", "deleted": false, "due_invoices_count": 2, "due_since": 1517505669, "has_scheduled_changes": false, "id": "__test__KyVnHhSBWkrVS2Wn", "mrr": 0, "next_billing_at": 1519924869, "object": "subscription", "plan_amount": 895, "plan_free_quantity": 0, "plan_id": "no_trial", "plan_quantity": 1, "plan_unit_price": 895, "remaining_billing_cycles": 3, "resource_version": 1517505669000, "started_at": 1517505669, "status": "active", "total_dues": 1790, "updated_at": 1517505669 }
}