226 lines
8.2 KiB
Python
226 lines
8.2 KiB
Python
data_object: {
|
||
"id": "in_1MGQM8FQsgcNaCv6JUfpAHbM",
|
||
"object": "invoice",
|
||
"account_country": "US",
|
||
"account_name": "nathanchapman",
|
||
"account_tax_ids": None,
|
||
"amount_due": 5355,
|
||
"amount_paid": 5355,
|
||
"amount_remaining": 0,
|
||
"application": None,
|
||
"application_fee_amount": None,
|
||
"attempt_count": 1,
|
||
"attempted": True,
|
||
"auto_advance": False,
|
||
"automatic_tax": {"enabled": False, "status": None},
|
||
"billing_reason": "subscription_create",
|
||
"charge": "ch_3MGQM9FQsgcNaCv613M8vu43",
|
||
"collection_method": "charge_automatically",
|
||
"created": 1671383336,
|
||
"currency": "usd",
|
||
"custom_fields": None,
|
||
"customer": "cus_N0BNLHLuTQJRu4",
|
||
"customer_address": None,
|
||
"customer_email": "contact@nathanjchapman.com",
|
||
"customer_name": "Nathan JChapman",
|
||
"customer_phone": None,
|
||
"customer_shipping": {
|
||
"address": {
|
||
"city": "Logan",
|
||
"country": None,
|
||
"line1": "1579 Talon Dr",
|
||
"line2": "",
|
||
"postal_code": "84321",
|
||
"state": "UT",
|
||
},
|
||
"name": "Nathan Chapman",
|
||
"phone": None,
|
||
},
|
||
"customer_tax_exempt": "none",
|
||
"customer_tax_ids": [],
|
||
"default_payment_method": None,
|
||
"default_source": None,
|
||
"default_tax_rates": [],
|
||
"description": None,
|
||
"discount": None,
|
||
"discounts": [],
|
||
"due_date": None,
|
||
"ending_balance": 0,
|
||
"footer": None,
|
||
"from_invoice": None,
|
||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1GLBrZFQsgcNaCv6/test_YWNjdF8xR0xCclpGUXNnY05hQ3Y2LF9OMFJFcDhJc3RyOXROMG1DeUNIRFVUVkdGMVNrRTRGLDYxOTI0MTM50200B7VnLQmS?s=ap",
|
||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_1GLBrZFQsgcNaCv6/test_YWNjdF8xR0xCclpGUXNnY05hQ3Y2LF9OMFJFcDhJc3RyOXROMG1DeUNIRFVUVkdGMVNrRTRGLDYxOTI0MTM50200B7VnLQmS/pdf?s=ap",
|
||
"last_finalization_error": None,
|
||
"latest_revision": None,
|
||
"lines": {
|
||
"object": "list",
|
||
"data": [
|
||
{
|
||
"id": "il_1MGQM5FQsgcNaCv6baOBoXDl",
|
||
"object": "line_item",
|
||
"amount": 1035,
|
||
"amount_excluding_tax": 1035,
|
||
"currency": "usd",
|
||
"description": "Shipping",
|
||
"discount_amounts": [],
|
||
"discountable": True,
|
||
"discounts": [],
|
||
"invoice_item": "ii_1MGQM5FQsgcNaCv6UjIu6jMT",
|
||
"livemode": False,
|
||
"metadata": {},
|
||
"period": {"end": 1671383333, "start": 1671383333},
|
||
"plan": None,
|
||
"price": {
|
||
"id": "price_1MGB0tFQsgcNaCv62dtt2BHB",
|
||
"object": "price",
|
||
"active": False,
|
||
"billing_scheme": "per_unit",
|
||
"created": 1671324359,
|
||
"currency": "usd",
|
||
"custom_unit_amount": None,
|
||
"livemode": False,
|
||
"lookup_key": None,
|
||
"metadata": {},
|
||
"nickname": None,
|
||
"product": "prod_N0BN5Idzj7DdEj",
|
||
"recurring": None,
|
||
"tax_behavior": "unspecified",
|
||
"tiers_mode": None,
|
||
"transform_quantity": None,
|
||
"type": "one_time",
|
||
"unit_amount": 1035,
|
||
"unit_amount_decimal": "1035",
|
||
},
|
||
"proration": False,
|
||
"proration_details": {"credited_items": None},
|
||
"quantity": 1,
|
||
"subscription": None,
|
||
"tax_amounts": [],
|
||
"tax_rates": [],
|
||
"type": "invoiceitem",
|
||
"unit_amount_excluding_tax": "1035",
|
||
},
|
||
{
|
||
"id": "il_1MGQM8FQsgcNaCv65ey9uwKi",
|
||
"object": "line_item",
|
||
"amount": 4320,
|
||
"amount_excluding_tax": 4320,
|
||
"currency": "usd",
|
||
"description": "3 × 16 oz Coffee (at $14.40 / month)",
|
||
"discount_amounts": [],
|
||
"discountable": True,
|
||
"discounts": [],
|
||
"livemode": False,
|
||
"metadata": {
|
||
"grind": '"Espresso"',
|
||
"total_weight": '"48:oz"',
|
||
"products_and_quantities": '[{"product": "Pantomime", "quantity": 2}, {"product": "Decaf", "quantity": 1}]',
|
||
},
|
||
"period": {"end": 1674061736, "start": 1671383336},
|
||
"plan": {
|
||
"id": "price_1MG7aEFQsgcNaCv6DZZoF2xG",
|
||
"object": "plan",
|
||
"active": True,
|
||
"aggregate_usage": None,
|
||
"amount": 1440,
|
||
"amount_decimal": "1440",
|
||
"billing_scheme": "per_unit",
|
||
"created": 1671311174,
|
||
"currency": "usd",
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"livemode": False,
|
||
"metadata": {},
|
||
"nickname": None,
|
||
"product": "prod_N07pP13dnWszHN",
|
||
"tiers": None,
|
||
"tiers_mode": None,
|
||
"transform_usage": None,
|
||
"trial_period_days": None,
|
||
"usage_type": "licensed",
|
||
},
|
||
"price": {
|
||
"id": "price_1MG7aEFQsgcNaCv6DZZoF2xG",
|
||
"object": "price",
|
||
"active": True,
|
||
"billing_scheme": "per_unit",
|
||
"created": 1671311174,
|
||
"currency": "usd",
|
||
"custom_unit_amount": None,
|
||
"livemode": False,
|
||
"lookup_key": None,
|
||
"metadata": {},
|
||
"nickname": None,
|
||
"product": "prod_N07pP13dnWszHN",
|
||
"recurring": {
|
||
"aggregate_usage": None,
|
||
"interval": "month",
|
||
"interval_count": 1,
|
||
"trial_period_days": None,
|
||
"usage_type": "licensed",
|
||
},
|
||
"tax_behavior": "exclusive",
|
||
"tiers_mode": None,
|
||
"transform_quantity": None,
|
||
"type": "recurring",
|
||
"unit_amount": 1440,
|
||
"unit_amount_decimal": "1440",
|
||
},
|
||
"proration": False,
|
||
"proration_details": {"credited_items": None},
|
||
"quantity": 3,
|
||
"subscription": "sub_1MGQM8FQsgcNaCv61HhjRVJu",
|
||
"subscription_item": "si_N0REI0MTk1C3D2",
|
||
"tax_amounts": [],
|
||
"tax_rates": [],
|
||
"type": "subscription",
|
||
"unit_amount_excluding_tax": "1440",
|
||
},
|
||
],
|
||
"has_more": False,
|
||
"total_count": 2,
|
||
"url": "/v1/invoices/in_1MGQM8FQsgcNaCv6JUfpAHbM/lines",
|
||
},
|
||
"livemode": False,
|
||
"metadata": {},
|
||
"next_payment_attempt": None,
|
||
"number": "86494117-0006",
|
||
"on_behalf_of": None,
|
||
"paid": True,
|
||
"paid_out_of_band": False,
|
||
"payment_intent": "pi_3MGQM9FQsgcNaCv61W7mCS0C",
|
||
"payment_settings": {
|
||
"default_mandate": None,
|
||
"payment_method_options": None,
|
||
"payment_method_types": None,
|
||
},
|
||
"period_end": 1671383336,
|
||
"period_start": 1671383336,
|
||
"post_payment_credit_notes_amount": 0,
|
||
"pre_payment_credit_notes_amount": 0,
|
||
"quote": None,
|
||
"receipt_number": None,
|
||
"rendering_options": None,
|
||
"starting_balance": 0,
|
||
"statement_descriptor": None,
|
||
"status": "paid",
|
||
"status_transitions": {
|
||
"finalized_at": 1671383336,
|
||
"marked_uncollectible_at": None,
|
||
"paid_at": 1671383338,
|
||
"voided_at": None,
|
||
},
|
||
"subscription": "sub_1MGQM8FQsgcNaCv61HhjRVJu",
|
||
"subtotal": 5355,
|
||
"subtotal_excluding_tax": 5355,
|
||
"tax": None,
|
||
"tax_percent": None,
|
||
"test_clock": None,
|
||
"total": 5355,
|
||
"total_discount_amounts": [],
|
||
"total_excluding_tax": 5355,
|
||
"total_tax_amounts": [],
|
||
"transfer_data": None,
|
||
"webhooks_delivered_at": None,
|
||
}
|