{
"card": { "card_type": "american_express", "created_at": 1517505621, "customer_id": "__test__KyVnHhSBWkf9f2RK", "expiry_month": 2, "expiry_year": 2022, "funding_type": "not_known", "gateway": "chargebee", "gateway_account_id": "gw___test__KyVnGlSBWkdgV1e9", "iin": "378282", "last4": "0005", "masked_number": "***********0005", "object": "card", "payment_source_id": "pm___test__KyVnHhSBWkfAz2RM", "resource_version": 1517505621000, "status": "valid", "updated_at": 1517505621 }, "credit_notes": [ { "allocations": [], "amount_allocated": 0, "amount_available": 895, "amount_refunded": 0, "base_currency_code": "USD", "create_reason_code": "Subscription Cancellation", "currency_code": "USD", "customer_id": "__test__KyVnHhSBWkf9f2RK", "date": 1517505621, "deleted": false, "exchange_rate": 1, "fractional_correction": 0, "id": "__demo_cn__1", "line_item_discounts": [], "line_item_taxes": [], "line_items": [ { "amount": 895, "customer_id": "__test__KyVnHhSBWkf9f2RK", "date_from": 1517505621, "date_to": 1519924821, "description": "No Trial - Prorated Credits for 01-Feb-2018 - 01-Mar-2018", "discount_amount": 0, "entity_id": "no_trial", "entity_type": "plan", "id": "li___test__KyVnHhSBWkfHJ2Ra", "is_taxed": false, "item_level_discount_amount": 0, "object": "line_item", "pricing_model": "per_unit", "quantity": 1, "subscription_id": "__test__KyVnHhSBWkf9f2RK", "tax_amount": 0, "tax_exempt_reason": "tax_not_configured", "unit_amount": 895 } ], "linked_refunds": [], "object": "credit_note", "price_type": "tax_exclusive", "reason_code": "subscription_cancellation", "reference_invoice_id": "__demo_inv__3", "resource_version": 1517505622000, "round_off_amount": 0, "status": "refund_due", "sub_total": 895, "subscription_id": "__test__KyVnHhSBWkf9f2RK", "taxes": [], "total": 895, "type": "refundable", "updated_at": 1517505622 } ], "customer": { "allow_direct_debit": false, "auto_collection": "on", "balances": [ { "balance_currency_code": "USD", "currency_code": "USD", "excess_payments": 0, "object": "customer_balance", "promotional_credits": 0, "refundable_credits": 895, "unbilled_charges": 0 } ], "card_status": "valid", "created_at": 1517505621, "deleted": false, "excess_payments": 0, "id": "__test__KyVnHhSBWkf9f2RK", "net_term_days": 0, "object": "customer", "payment_method": { "gateway": "chargebee", "gateway_account_id": "gw___test__KyVnGlSBWkdgV1e9", "object": "payment_method", "reference_id": "tok___test__KyVnHhSBWkfAq2RL", "status": "valid", "type": "card" }, "pii_cleared": "active", "preferred_currency_code": "USD", "primary_payment_source_id": "pm___test__KyVnHhSBWkfAz2RM", "promotional_credits": 0, "refundable_credits": 895, "resource_version": 1517505622000, "taxability": "taxable", "unbilled_charges": 0, "updated_at": 1517505622 }, "subscription": { "activated_at": 1517505621, "billing_period": 1, "billing_period_unit": "month", "cancelled_at": 1517505621, "created_at": 1517505621, "currency_code": "USD", "current_term_end": 1517505621, "current_term_start": 1517505621, "customer_id": "__test__KyVnHhSBWkf9f2RK", "deleted": false, "due_invoices_count": 0, "has_scheduled_changes": false, "id": "__test__KyVnHhSBWkf9f2RK", "mrr": 0, "object": "subscription", "plan_amount": 895, "plan_free_quantity": 0, "plan_id": "no_trial", "plan_quantity": 1, "plan_unit_price": 895, "resource_version": 1517505622000, "started_at": 1517505621, "status": "cancelled", "updated_at": 1517505622 }
}