{
"subscription": {
"id": "__dev__XpbGQ95SyMjI0G2G",
"billing_period": 1,
"billing_period_unit": "month",
"auto_collection": "off",
"customer_id": "__dev__XpbGQ95SyMWBe81r",
"status": "active",
"current_term_start": 1645710439,
"current_term_end": 1648129639,
"next_billing_at": 1648129639,
"created_at": 1645710439,
"started_at": 1645710439,
"activated_at": 1645710439,
"updated_at": 1645710440,
"has_scheduled_changes": false,
"channel": "web",
"net_term_days": 7,
"resource_version": 1645710440229,
"deleted": false,
"object": "subscription",
"currency_code": "USD",
"subscription_items": [{
"item_price_id": "plan1-USD-Monthly",
"item_type": "plan",
"quantity": 1,
"unit_price": 100,
"amount": 100,
"free_quantity": 0,
"object": "subscription_item"
}],
"due_invoices_count": 0,
"mrr": 0,
"override_relationship": false
},
"customer": {
"id": "__dev__XpbGQ95SyMWBe81r",
"first_name": "surya",
"last_name": "Doe",
"email": "john@test.com",
"auto_collection": "off",
"net_term_days": 7,
"allow_direct_debit": false,
"created_at": 1645707316,
"taxability": "taxable",
"updated_at": 1645707317,
"pii_cleared": "active",
"channel": "web",
"resource_version": 1645707317008,
"deleted": false,
"object": "customer",
"billing_address": {
"country": "US",
"validation_status": "not_validated",
"object": "billing_address"
},
"card_status": "no_card",
"promotional_credits": 0,
"refundable_credits": 0,
"excess_payments": 0,
"unbilled_charges": 0,
"preferred_currency_code": "USD"
},
"invoice": {
"id": "7",
"customer_id": "__dev__XpbGQ95SyMWBe81r",
"subscription_id": "__dev__XpbGQ95SyMjI0G2G",
"recurring": true,
"status": "posted",
"price_type": "tax_exclusive",
"date": 1645710439,
"due_date": 1646315239,
"net_term_days": 7,
"exchange_rate": 1.0,
"total": 100,
"amount_paid": 0,
"amount_adjusted": 0,
"write_off_amount": 0,
"credits_applied": 0,
"amount_due": 100,
"updated_at": 1645710440,
"resource_version": 1645710440174,
"deleted": false,
"object": "invoice",
"first_invoice": true,
"amount_to_collect": 100,
"round_off_amount": 0,
"new_sales_amount": 100,
"has_advance_charges": false,
"currency_code": "USD",
"base_currency_code": "USD",
"generated_at": 1645710439,
"is_gifted": false,
"term_finalized": true,
"channel": "web",
"tax": 0,
"line_items": [{
"id": "li___dev__XpbGQ95SyMjI4O2I",
"date_from": 1645710439,
"date_to": 1648129639,
"unit_amount": 100,
"quantity": 1,
"amount": 100,
"pricing_model": "flat_fee",
"is_taxed": false,
"tax_amount": 0,
"object": "line_item",
"subscription_id": "__dev__XpbGQ95SyMjI0G2G",
"customer_id": "__dev__XpbGQ95SyMWBe81r",
"description": "plan1",
"entity_type": "plan_item_price",
"entity_id": "plan1-USD-Monthly",
"tax_exempt_reason": "tax_not_configured",
"discount_amount": 0,
"item_level_discount_amount": 0
}],
"sub_total": 100,
"linked_payments": [],
"applied_credits": [],
"adjustment_credit_notes": [],
"issued_credit_notes": [],
"linked_orders": [],
"dunning_attempts": [],
"billing_address": {
"first_name": "surya",
"last_name": "Doe",
"country": "US",
"validation_status": "not_validated",
"object": "billing_address"
}
}
} |