mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
major merge of features from the hosted branch that was created temporarily during the initial launch of jambonz.org
908 lines
24 KiB
JSON
908 lines
24 KiB
JSON
{
|
||
"id": "sub_J5d3C56ZGMDZFA",
|
||
"object": "subscription",
|
||
"application_fee_percent": null,
|
||
"billing_cycle_anchor": 1615381795,
|
||
"billing_thresholds": null,
|
||
"cancel_at": null,
|
||
"cancel_at_period_end": false,
|
||
"canceled_at": null,
|
||
"collection_method": "charge_automatically",
|
||
"created": 1615381795,
|
||
"current_period_end": 1618060195,
|
||
"current_period_start": 1615381795,
|
||
"customer": "cus_J5coVe5AQ5UR6h",
|
||
"days_until_due": null,
|
||
"default_payment_method": null,
|
||
"default_source": null,
|
||
"default_tax_rates": [],
|
||
"discount": null,
|
||
"ended_at": null,
|
||
"items": {
|
||
"object": "list",
|
||
"data": [{
|
||
"id": "si_J5d3M9tUQgrnPa",
|
||
"object": "subscription_item",
|
||
"billing_thresholds": null,
|
||
"created": 1615381796,
|
||
"metadata": {
|
||
"product_sid": "c4403cdb-8e75-4b27-9726-7d8315e3216d"
|
||
},
|
||
"plan": {
|
||
"id": "price_1ISRinAxTxXxh2fmnZmorCm2",
|
||
"object": "plan",
|
||
"active": true,
|
||
"aggregate_usage": null,
|
||
"amount": null,
|
||
"amount_decimal": null,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143177,
|
||
"currency": "usd",
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4au1au9F2Ysa0",
|
||
"tiers": [{
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 1000,
|
||
"unit_amount_decimal": "1000",
|
||
"up_to": 99
|
||
}, {
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 900,
|
||
"unit_amount_decimal": "900",
|
||
"up_to": 250
|
||
}, {
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 800,
|
||
"unit_amount_decimal": "800",
|
||
"up_to": 499
|
||
}, {
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 700,
|
||
"unit_amount_decimal": "700",
|
||
"up_to": 999
|
||
}, {
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 500,
|
||
"unit_amount_decimal": "500",
|
||
"up_to": null
|
||
}],
|
||
"tiers_mode": "volume",
|
||
"transform_usage": null,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"price": {
|
||
"id": "price_1ISRinAxTxXxh2fmnZmorCm2",
|
||
"object": "price",
|
||
"active": true,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143177,
|
||
"currency": "usd",
|
||
"livemode": false,
|
||
"lookup_key": null,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4au1au9F2Ysa0",
|
||
"recurring": {
|
||
"aggregate_usage": null,
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"tiers_mode": "volume",
|
||
"transform_quantity": null,
|
||
"type": "recurring",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null
|
||
},
|
||
"quantity": 100,
|
||
"subscription": "sub_J5d3C56ZGMDZFA",
|
||
"tax_rates": []
|
||
}, {
|
||
"id": "si_J5d3F3SkebrH4S",
|
||
"object": "subscription_item",
|
||
"billing_thresholds": null,
|
||
"created": 1615381796,
|
||
"metadata": {
|
||
"product_sid": "2c815913-5c26-4004-b748-183b459329df"
|
||
},
|
||
"plan": {
|
||
"id": "price_1ISRhKAxTxXxh2fmhsYLgyLM",
|
||
"object": "plan",
|
||
"active": true,
|
||
"aggregate_usage": null,
|
||
"amount": 100,
|
||
"amount_decimal": "100",
|
||
"billing_scheme": "per_unit",
|
||
"created": 1615143086,
|
||
"currency": "usd",
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4at3poNkI5OSA",
|
||
"tiers": null,
|
||
"tiers_mode": null,
|
||
"transform_usage": null,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"price": {
|
||
"id": "price_1ISRhKAxTxXxh2fmhsYLgyLM",
|
||
"object": "price",
|
||
"active": true,
|
||
"billing_scheme": "per_unit",
|
||
"created": 1615143086,
|
||
"currency": "usd",
|
||
"livemode": false,
|
||
"lookup_key": null,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4at3poNkI5OSA",
|
||
"recurring": {
|
||
"aggregate_usage": null,
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"tiers_mode": null,
|
||
"transform_quantity": null,
|
||
"type": "recurring",
|
||
"unit_amount": 100,
|
||
"unit_amount_decimal": "100"
|
||
},
|
||
"quantity": 50,
|
||
"subscription": "sub_J5d3C56ZGMDZFA",
|
||
"tax_rates": []
|
||
}, {
|
||
"id": "si_J5d3bcURInlK5Y",
|
||
"object": "subscription_item",
|
||
"billing_thresholds": null,
|
||
"created": 1615381796,
|
||
"metadata": {
|
||
"product_sid": "35a9fb10-233d-4eb9-aada-78de5814d680"
|
||
},
|
||
"plan": {
|
||
"id": "price_1ISRgHAxTxXxh2fmUg80e3mw",
|
||
"object": "plan",
|
||
"active": true,
|
||
"aggregate_usage": null,
|
||
"amount": null,
|
||
"amount_decimal": null,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143021,
|
||
"currency": "usd",
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4asDaODFXDjui",
|
||
"tiers": [{
|
||
"flat_amount": 0,
|
||
"flat_amount_decimal": "0",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 10
|
||
}, {
|
||
"flat_amount": 500,
|
||
"flat_amount_decimal": "500",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 30
|
||
}, {
|
||
"flat_amount": 1000,
|
||
"flat_amount_decimal": "1000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 60
|
||
}, {
|
||
"flat_amount": 2000,
|
||
"flat_amount_decimal": "2000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 120
|
||
}, {
|
||
"flat_amount": 4000,
|
||
"flat_amount_decimal": "4000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 300
|
||
}, {
|
||
"flat_amount": 5000,
|
||
"flat_amount_decimal": "5000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": null
|
||
}],
|
||
"tiers_mode": "volume",
|
||
"transform_usage": null,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"price": {
|
||
"id": "price_1ISRgHAxTxXxh2fmUg80e3mw",
|
||
"object": "price",
|
||
"active": true,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143021,
|
||
"currency": "usd",
|
||
"livemode": false,
|
||
"lookup_key": null,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4asDaODFXDjui",
|
||
"recurring": {
|
||
"aggregate_usage": null,
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"tiers_mode": "volume",
|
||
"transform_quantity": null,
|
||
"type": "recurring",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null
|
||
},
|
||
"quantity": 60,
|
||
"subscription": "sub_J5d3C56ZGMDZFA",
|
||
"tax_rates": []
|
||
}],
|
||
"has_more": false,
|
||
"total_count": 3,
|
||
"url": "/v1/subscription_items?subscription=sub_J5d3C56ZGMDZFA"
|
||
},
|
||
"latest_invoice": {
|
||
"id": "in_1ITRnUAxTxXxh2fmmch7bUlr",
|
||
"object": "invoice",
|
||
"account_country": "US",
|
||
"account_name": "drachtio.org",
|
||
"account_tax_ids": null,
|
||
"amount_due": 96000,
|
||
"amount_paid": 96000,
|
||
"amount_remaining": 0,
|
||
"application_fee_amount": null,
|
||
"attempt_count": 1,
|
||
"attempted": true,
|
||
"auto_advance": false,
|
||
"billing_reason": "subscription_create",
|
||
"charge": "ch_1ITRnUAxTxXxh2fmvtLpMbNr",
|
||
"collection_method": "charge_automatically",
|
||
"created": 1615381796,
|
||
"currency": "usd",
|
||
"custom_fields": null,
|
||
"customer": "cus_J5coVe5AQ5UR6h",
|
||
"customer_address": null,
|
||
"customer_email": "daveh@drachtio.org",
|
||
"customer_name": "Dave Horton",
|
||
"customer_phone": null,
|
||
"customer_shipping": null,
|
||
"customer_tax_exempt": "none",
|
||
"customer_tax_ids": [],
|
||
"default_payment_method": null,
|
||
"default_source": null,
|
||
"default_tax_rates": [],
|
||
"description": null,
|
||
"discount": null,
|
||
"discounts": [],
|
||
"due_date": null,
|
||
"ending_balance": 0,
|
||
"footer": null,
|
||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1GjPVFAxTxXxh2fm/invst_J5d3z2L367YU08uV3ZStblw4QzWzN4b",
|
||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_1GjPVFAxTxXxh2fm/invst_J5d3z2L367YU08uV3ZStblw4QzWzN4b/pdf",
|
||
"last_finalization_error": null,
|
||
"lines": {
|
||
"object": "list",
|
||
"data": [{
|
||
"id": "il_1ITRnUAxTxXxh2fmApdPmIJQ",
|
||
"object": "line_item",
|
||
"amount": 90000,
|
||
"currency": "usd",
|
||
"description": "100 session × concurrent call session (Tier 2 at $9.00 / month)",
|
||
"discount_amounts": [],
|
||
"discountable": true,
|
||
"discounts": [],
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"period": {
|
||
"end": 1618060195,
|
||
"start": 1615381795
|
||
},
|
||
"plan": {
|
||
"id": "price_1ISRinAxTxXxh2fmnZmorCm2",
|
||
"object": "plan",
|
||
"active": true,
|
||
"aggregate_usage": null,
|
||
"amount": null,
|
||
"amount_decimal": null,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143177,
|
||
"currency": "usd",
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4au1au9F2Ysa0",
|
||
"tiers": [{
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 1000,
|
||
"unit_amount_decimal": "1000",
|
||
"up_to": 99
|
||
}, {
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 900,
|
||
"unit_amount_decimal": "900",
|
||
"up_to": 250
|
||
}, {
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 800,
|
||
"unit_amount_decimal": "800",
|
||
"up_to": 499
|
||
}, {
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 700,
|
||
"unit_amount_decimal": "700",
|
||
"up_to": 999
|
||
}, {
|
||
"flat_amount": null,
|
||
"flat_amount_decimal": null,
|
||
"unit_amount": 500,
|
||
"unit_amount_decimal": "500",
|
||
"up_to": null
|
||
}],
|
||
"tiers_mode": "volume",
|
||
"transform_usage": null,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"price": {
|
||
"id": "price_1ISRinAxTxXxh2fmnZmorCm2",
|
||
"object": "price",
|
||
"active": true,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143177,
|
||
"currency": "usd",
|
||
"livemode": false,
|
||
"lookup_key": null,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4au1au9F2Ysa0",
|
||
"recurring": {
|
||
"aggregate_usage": null,
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"tiers_mode": "volume",
|
||
"transform_quantity": null,
|
||
"type": "recurring",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null
|
||
},
|
||
"proration": false,
|
||
"quantity": 100,
|
||
"subscription": "sub_J5d3C56ZGMDZFA",
|
||
"subscription_item": "si_J5d3M9tUQgrnPa",
|
||
"tax_amounts": [],
|
||
"tax_rates": [],
|
||
"type": "subscription"
|
||
}, {
|
||
"id": "il_1ITRnUAxTxXxh2fmGn4D2s9W",
|
||
"object": "line_item",
|
||
"amount": 5000,
|
||
"currency": "usd",
|
||
"description": "50 sip device × registered device (at $1.00 / month)",
|
||
"discount_amounts": [],
|
||
"discountable": true,
|
||
"discounts": [],
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"period": {
|
||
"end": 1618060195,
|
||
"start": 1615381795
|
||
},
|
||
"plan": {
|
||
"id": "price_1ISRhKAxTxXxh2fmhsYLgyLM",
|
||
"object": "plan",
|
||
"active": true,
|
||
"aggregate_usage": null,
|
||
"amount": 100,
|
||
"amount_decimal": "100",
|
||
"billing_scheme": "per_unit",
|
||
"created": 1615143086,
|
||
"currency": "usd",
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4at3poNkI5OSA",
|
||
"tiers": null,
|
||
"tiers_mode": null,
|
||
"transform_usage": null,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"price": {
|
||
"id": "price_1ISRhKAxTxXxh2fmhsYLgyLM",
|
||
"object": "price",
|
||
"active": true,
|
||
"billing_scheme": "per_unit",
|
||
"created": 1615143086,
|
||
"currency": "usd",
|
||
"livemode": false,
|
||
"lookup_key": null,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4at3poNkI5OSA",
|
||
"recurring": {
|
||
"aggregate_usage": null,
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"tiers_mode": null,
|
||
"transform_quantity": null,
|
||
"type": "recurring",
|
||
"unit_amount": 100,
|
||
"unit_amount_decimal": "100"
|
||
},
|
||
"proration": false,
|
||
"quantity": 50,
|
||
"subscription": "sub_J5d3C56ZGMDZFA",
|
||
"subscription_item": "si_J5d3F3SkebrH4S",
|
||
"tax_amounts": [],
|
||
"tax_rates": [],
|
||
"type": "subscription"
|
||
}, {
|
||
"id": "il_1ITRnUAxTxXxh2fmmUTvs8b0",
|
||
"object": "line_item",
|
||
"amount": 0,
|
||
"currency": "usd",
|
||
"description": "60 per min × api rate limit (Tier 3 at $0.00 / month)",
|
||
"discount_amounts": [],
|
||
"discountable": true,
|
||
"discounts": [],
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"period": {
|
||
"end": 1618060195,
|
||
"start": 1615381795
|
||
},
|
||
"plan": {
|
||
"id": "price_1ISRgHAxTxXxh2fmUg80e3mw",
|
||
"object": "plan",
|
||
"active": true,
|
||
"aggregate_usage": null,
|
||
"amount": null,
|
||
"amount_decimal": null,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143021,
|
||
"currency": "usd",
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4asDaODFXDjui",
|
||
"tiers": [{
|
||
"flat_amount": 0,
|
||
"flat_amount_decimal": "0",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 10
|
||
}, {
|
||
"flat_amount": 500,
|
||
"flat_amount_decimal": "500",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 30
|
||
}, {
|
||
"flat_amount": 1000,
|
||
"flat_amount_decimal": "1000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 60
|
||
}, {
|
||
"flat_amount": 2000,
|
||
"flat_amount_decimal": "2000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 120
|
||
}, {
|
||
"flat_amount": 4000,
|
||
"flat_amount_decimal": "4000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 300
|
||
}, {
|
||
"flat_amount": 5000,
|
||
"flat_amount_decimal": "5000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": null
|
||
}],
|
||
"tiers_mode": "volume",
|
||
"transform_usage": null,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"price": {
|
||
"id": "price_1ISRgHAxTxXxh2fmUg80e3mw",
|
||
"object": "price",
|
||
"active": true,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143021,
|
||
"currency": "usd",
|
||
"livemode": false,
|
||
"lookup_key": null,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4asDaODFXDjui",
|
||
"recurring": {
|
||
"aggregate_usage": null,
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"tiers_mode": "volume",
|
||
"transform_quantity": null,
|
||
"type": "recurring",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null
|
||
},
|
||
"proration": false,
|
||
"quantity": 60,
|
||
"subscription": "sub_J5d3C56ZGMDZFA",
|
||
"subscription_item": "si_J5d3bcURInlK5Y",
|
||
"tax_amounts": [],
|
||
"tax_rates": [],
|
||
"type": "subscription"
|
||
}, {
|
||
"id": "il_1ITRnVAxTxXxh2fm6VDudRAm",
|
||
"object": "line_item",
|
||
"amount": 1000,
|
||
"currency": "usd",
|
||
"description": "api rate limit (Tier 3 at $10.00 / month)",
|
||
"discount_amounts": [],
|
||
"discountable": true,
|
||
"discounts": [],
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"period": {
|
||
"end": 1618060195,
|
||
"start": 1615381795
|
||
},
|
||
"plan": {
|
||
"id": "price_1ISRgHAxTxXxh2fmUg80e3mw",
|
||
"object": "plan",
|
||
"active": true,
|
||
"aggregate_usage": null,
|
||
"amount": null,
|
||
"amount_decimal": null,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143021,
|
||
"currency": "usd",
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4asDaODFXDjui",
|
||
"tiers": [{
|
||
"flat_amount": 0,
|
||
"flat_amount_decimal": "0",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 10
|
||
}, {
|
||
"flat_amount": 500,
|
||
"flat_amount_decimal": "500",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 30
|
||
}, {
|
||
"flat_amount": 1000,
|
||
"flat_amount_decimal": "1000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 60
|
||
}, {
|
||
"flat_amount": 2000,
|
||
"flat_amount_decimal": "2000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 120
|
||
}, {
|
||
"flat_amount": 4000,
|
||
"flat_amount_decimal": "4000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": 300
|
||
}, {
|
||
"flat_amount": 5000,
|
||
"flat_amount_decimal": "5000",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null,
|
||
"up_to": null
|
||
}],
|
||
"tiers_mode": "volume",
|
||
"transform_usage": null,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"price": {
|
||
"id": "price_1ISRgHAxTxXxh2fmUg80e3mw",
|
||
"object": "price",
|
||
"active": true,
|
||
"billing_scheme": "tiered",
|
||
"created": 1615143021,
|
||
"currency": "usd",
|
||
"livemode": false,
|
||
"lookup_key": null,
|
||
"metadata": {},
|
||
"nickname": null,
|
||
"product": "prod_J4asDaODFXDjui",
|
||
"recurring": {
|
||
"aggregate_usage": null,
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"trial_period_days": null,
|
||
"usage_type": "licensed"
|
||
},
|
||
"tiers_mode": "volume",
|
||
"transform_quantity": null,
|
||
"type": "recurring",
|
||
"unit_amount": null,
|
||
"unit_amount_decimal": null
|
||
},
|
||
"proration": false,
|
||
"quantity": 0,
|
||
"subscription": "sub_J5d3C56ZGMDZFA",
|
||
"subscription_item": "si_J5d3bcURInlK5Y",
|
||
"tax_amounts": [],
|
||
"tax_rates": [],
|
||
"type": "subscription"
|
||
}],
|
||
"has_more": false,
|
||
"total_count": 4,
|
||
"url": "/v1/invoices/in_1ITRnUAxTxXxh2fmmch7bUlr/lines"
|
||
},
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"next_payment_attempt": null,
|
||
"number": "0A22219A-0001",
|
||
"on_behalf_of": null,
|
||
"paid": true,
|
||
"payment_intent": {
|
||
"id": "pi_1ITRnUAxTxXxh2fmmyjspFCb",
|
||
"object": "payment_intent",
|
||
"amount": 96000,
|
||
"amount_capturable": 0,
|
||
"amount_received": 96000,
|
||
"application": null,
|
||
"application_fee_amount": null,
|
||
"canceled_at": null,
|
||
"cancellation_reason": null,
|
||
"capture_method": "automatic",
|
||
"charges": {
|
||
"object": "list",
|
||
"data": [{
|
||
"id": "ch_1ITRnUAxTxXxh2fmvtLpMbNr",
|
||
"object": "charge",
|
||
"amount": 96000,
|
||
"amount_captured": 96000,
|
||
"amount_refunded": 0,
|
||
"application": null,
|
||
"application_fee": null,
|
||
"application_fee_amount": null,
|
||
"balance_transaction": "txn_1ITRnVAxTxXxh2fmTGIuTAaB",
|
||
"billing_details": {
|
||
"address": {
|
||
"city": null,
|
||
"country": null,
|
||
"line1": null,
|
||
"line2": null,
|
||
"postal_code": null,
|
||
"state": null
|
||
},
|
||
"email": null,
|
||
"name": null,
|
||
"phone": null
|
||
},
|
||
"calculated_statement_descriptor": "DRACHTIO COMM SVCS LLC",
|
||
"captured": true,
|
||
"created": 1615381796,
|
||
"currency": "usd",
|
||
"customer": "cus_J5coVe5AQ5UR6h",
|
||
"description": "Subscription creation",
|
||
"destination": null,
|
||
"dispute": null,
|
||
"disputed": false,
|
||
"failure_code": null,
|
||
"failure_message": null,
|
||
"fraud_details": {},
|
||
"invoice": "in_1ITRnUAxTxXxh2fmmch7bUlr",
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"on_behalf_of": null,
|
||
"order": null,
|
||
"outcome": {
|
||
"network_status": "approved_by_network",
|
||
"reason": null,
|
||
"risk_level": "normal",
|
||
"risk_score": 16,
|
||
"seller_message": "Payment complete.",
|
||
"type": "authorized"
|
||
},
|
||
"paid": true,
|
||
"payment_intent": "pi_1ITRnUAxTxXxh2fmmyjspFCb",
|
||
"payment_method": "card_1ITRZIAxTxXxh2fmgZWoCsPx",
|
||
"payment_method_details": {
|
||
"card": {
|
||
"brand": "visa",
|
||
"checks": {
|
||
"address_line1_check": null,
|
||
"address_postal_code_check": null,
|
||
"cvc_check": null
|
||
},
|
||
"country": "US",
|
||
"exp_month": 9,
|
||
"exp_year": 2024,
|
||
"fingerprint": "KDQxr00TBv7zH8Sg",
|
||
"funding": "credit",
|
||
"installments": null,
|
||
"last4": "4242",
|
||
"network": "visa",
|
||
"three_d_secure": null,
|
||
"wallet": null
|
||
},
|
||
"type": "card"
|
||
},
|
||
"receipt_email": null,
|
||
"receipt_number": null,
|
||
"receipt_url": "https://pay.stripe.com/receipts/acct_1GjPVFAxTxXxh2fm/ch_1ITRnUAxTxXxh2fmvtLpMbNr/rcpt_J5d3fiWQsaYt9Pmkw0SEV34LbxYJyGl",
|
||
"refunded": false,
|
||
"refunds": {
|
||
"object": "list",
|
||
"data": [],
|
||
"has_more": false,
|
||
"total_count": 0,
|
||
"url": "/v1/charges/ch_1ITRnUAxTxXxh2fmvtLpMbNr/refunds"
|
||
},
|
||
"review": null,
|
||
"shipping": null,
|
||
"source": {
|
||
"id": "card_1ITRZIAxTxXxh2fmgZWoCsPx",
|
||
"object": "card",
|
||
"address_city": null,
|
||
"address_country": null,
|
||
"address_line1": null,
|
||
"address_line1_check": null,
|
||
"address_line2": null,
|
||
"address_state": null,
|
||
"address_zip": null,
|
||
"address_zip_check": null,
|
||
"brand": "Visa",
|
||
"country": "US",
|
||
"customer": "cus_J5coVe5AQ5UR6h",
|
||
"cvc_check": null,
|
||
"dynamic_last4": null,
|
||
"exp_month": 9,
|
||
"exp_year": 2024,
|
||
"fingerprint": "KDQxr00TBv7zH8Sg",
|
||
"funding": "credit",
|
||
"last4": "4242",
|
||
"metadata": {},
|
||
"name": null,
|
||
"tokenization_method": null
|
||
},
|
||
"source_transfer": null,
|
||
"statement_descriptor": "Drachtio Comm Svcs LLC",
|
||
"statement_descriptor_suffix": null,
|
||
"status": "succeeded",
|
||
"transfer_data": null,
|
||
"transfer_group": null
|
||
}],
|
||
"has_more": false,
|
||
"total_count": 1,
|
||
"url": "/v1/charges?payment_intent=pi_1ITRnUAxTxXxh2fmmyjspFCb"
|
||
},
|
||
"client_secret": "pi_1ITRnUAxTxXxh2fmmyjspFCb_secret_6FB5iXrTQ3w1f7ckUWeycmYoc",
|
||
"confirmation_method": "automatic",
|
||
"created": 1615381796,
|
||
"currency": "usd",
|
||
"customer": "cus_J5coVe5AQ5UR6h",
|
||
"description": "Subscription creation",
|
||
"invoice": "in_1ITRnUAxTxXxh2fmmch7bUlr",
|
||
"last_payment_error": null,
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"next_action": null,
|
||
"on_behalf_of": null,
|
||
"payment_method": null,
|
||
"payment_method_options": {
|
||
"card": {
|
||
"installments": null,
|
||
"network": null,
|
||
"request_three_d_secure": "automatic"
|
||
}
|
||
},
|
||
"payment_method_types": ["card"],
|
||
"receipt_email": null,
|
||
"review": null,
|
||
"setup_future_usage": "off_session",
|
||
"shipping": null,
|
||
"source": "card_1ITRZIAxTxXxh2fmgZWoCsPx",
|
||
"statement_descriptor": "Drachtio Comm Svcs LLC",
|
||
"statement_descriptor_suffix": null,
|
||
"status": "succeeded",
|
||
"transfer_data": null,
|
||
"transfer_group": null
|
||
},
|
||
"payment_settings": {
|
||
"payment_method_options": null,
|
||
"payment_method_types": null
|
||
},
|
||
"period_end": 1615381795,
|
||
"period_start": 1615381795,
|
||
"post_payment_credit_notes_amount": 0,
|
||
"pre_payment_credit_notes_amount": 0,
|
||
"receipt_number": null,
|
||
"starting_balance": 0,
|
||
"statement_descriptor": null,
|
||
"status": "paid",
|
||
"status_transitions": {
|
||
"finalized_at": 1615381795,
|
||
"marked_uncollectible_at": null,
|
||
"paid_at": 1615381795,
|
||
"voided_at": null
|
||
},
|
||
"subscription": "sub_J5d3C56ZGMDZFA",
|
||
"subtotal": 96000,
|
||
"tax": null,
|
||
"tax_percent": null,
|
||
"total": 96000,
|
||
"total_discount_amounts": [],
|
||
"total_tax_amounts": [],
|
||
"transfer_data": null,
|
||
"webhooks_delivered_at": null
|
||
},
|
||
"livemode": false,
|
||
"metadata": {},
|
||
"next_pending_invoice_item_invoice": null,
|
||
"pause_collection": null,
|
||
"pending_invoice_item_interval": null,
|
||
"pending_setup_intent": null,
|
||
"pending_update": null,
|
||
"plan": null,
|
||
"quantity": null,
|
||
"schedule": null,
|
||
"start_date": 1615381795,
|
||
"status": "active",
|
||
"tax_percent": null,
|
||
"transfer_data": null,
|
||
"trial_end": null,
|
||
"trial_start": null
|
||
} |