async-stripe
async-stripe copied to clipboard
Missing several fields in `Invoice` object (next branch)
Is your feature request related to a problem? Please describe.
For example, there should be an optional charge and payment_intent" fields in Invoice` object, but it missed in 1.0.0-alpha.2.
{
"id": "in_1RMmLWJuOsru2y4LDFGrCeyH",
"object": "invoice",
"livemode": false,
"payment_intent": "pi_3RMmLSJuOsru2y4L09oRsXaT",
"status": "paid",
"account_country": "US",
"account_name": "Shuang Zhu",
"account_tax_ids": null,
"amount_due": 4500,
"amount_overpaid": 0,
"amount_paid": 4500,
"amount_remaining": 0,
"amount_shipping": 0,
"application": null,
"application_fee_amount": null,
"attempt_count": 0,
"attempted": true,
"auto_advance": false,
"automatic_tax": {
"disabled_reason": null,
"enabled": false,
"liability": null,
"provider": null,
"status": null
},
"automatically_finalizes_at": null,
"billing_reason": "subscription_create",
"charge": "py_3RMmLSJuOsru2y4L0aiPMfit",
"collection_method": "charge_automatically",
"created": 1746779510,
"currency": "usd",
"custom_fields": null,
"customer": "cus_SHL15RCX0CD4mP",
"customer_address": {
"city": null,
"country": "US",
"line1": null,
"line2": null,
"postal_code": "94086",
"state": null
},
"customer_email": "[email protected]",
"customer_name": "gg",
"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": {
"id": "di_1RMmLSJuOsru2y4LmObZPqZk",
"object": "discount",
"checkout_session": null,
"coupon": {
"id": "IAuidllS",
"object": "coupon",
"amount_off": null,
"created": 1746709627,
"currency": null,
"duration": "once",
"duration_in_months": null,
"livemode": false,
"max_redemptions": null,
"metadata": {
"CreatedBy": "Geddle.com"
},
"name": null,
"percent_off": 10,
"redeem_by": null,
"times_redeemed": 2,
"valid": true
},
"customer": "cus_SHL15RCX0CD4mP",
"end": null,
"invoice": null,
"invoice_item": null,
"promotion_code": "promo_1RMUBxJuOsru2y4LsOuTK86d",
"start": 1746779510,
"subscription": "sub_1RMmLWJuOsru2y4Lt4U9idVy",
"subscription_item": null
},
"discounts": [
"di_1RMmLSJuOsru2y4LmObZPqZk"
],
"due_date": null,
"effective_at": 1746779510,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1QpmAKJuOsru2y4L/",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_1QpmAKJuOsru2y4L",
"issuer": {
"type": "self"
},
"last_finalization_error": null,
"latest_revision": null,
"lines": {
"object": "list",
"data": [
{
"id": "il_1RMmLWJuOsru2y4LhLyki3wJ",
"object": "line_item",
"amount": 5000,
"amount_excluding_tax": 5000,
"currency": "usd",
"description": "1 × Toucan Ultra (at $50.00 / month)",
"discount_amounts": [
{
"amount": 500,
"discount": "di_1RMmLSJuOsru2y4LmObZPqZk"
}
],
"discountable": true,
"discounts": [
],
"invoice": "in_1RMmLWJuOsru2y4LDFGrCeyH",
"livemode": false,
"metadata": {
},
"parent": {
"invoice_item_details": null,
"subscription_item_details": {
"invoice_item": null,
"proration": false,
"proration_details": {
"credited_items": null
},
"subscription": "sub_1RMmLWJuOsru2y4Lt4U9idVy",
"subscription_item": "si_SHL1zTmnQXenzL"
},
"type": "subscription_item_details"
},
"period": {
"end": 1749457910,
"start": 1746779510
},
"plan": {
"id": "price_1QrWvNJuOsru2y4LLzDBKyAE",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 5000,
"amount_decimal": "5000",
"billing_scheme": "per_unit",
"created": 1739332065,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {
},
"meter": null,
"nickname": null,
"product": "prod_Rl31jB7usSbY7L",
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"pretax_credit_amounts": [
{
"amount": 500,
"discount": "di_1RMmLSJuOsru2y4LmObZPqZk",
"type": "discount"
}
],
"price": {
"id": "price_1QrWvNJuOsru2y4LLzDBKyAE",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1739332065,
"currency": "usd",
"custom_unit_amount": null,
"livemode": false,
"lookup_key": null,
"metadata": {
},
"nickname": null,
"product": "prod_Rl31jB7usSbY7L",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"meter": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"tax_behavior": "unspecified",
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 5000,
"unit_amount_decimal": "5000"
},
"pricing": {
"price_details": {
"price": "price_1QrWvNJuOsru2y4LLzDBKyAE",
"product": "prod_Rl31jB7usSbY7L"
},
"type": "price_details",
"unit_amount_decimal": "5000"
},
"proration": false,
"proration_details": {
"credited_items": null
},
"quantity": 1,
"subscription": "sub_1RMmLWJuOsru2y4Lt4U9idVy",
"subscription_item": "si_SHL1zTmnQXenzL",
"tax_amounts": [
],
"tax_rates": [
],
"taxes": [
],
"type": "subscription",
"unit_amount_excluding_tax": "5000"
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/invoices/in_1RMmLWJuOsru2y4LDFGrCeyH/lines"
},
"metadata": {
},
"next_payment_attempt": null,
"number": "SHXIHWVB-0001",
"on_behalf_of": null,
"paid": true,
"paid_out_of_band": false,
"parent": {
"quote_details": null,
"subscription_details": {
"metadata": {
},
"subscription": "sub_1RMmLWJuOsru2y4Lt4U9idVy"
},
"type": "subscription_details"
},
"payment_settings": {
"default_mandate": null,
"payment_method_options": {
"acss_debit": null,
"bancontact": null,
"card": {
"request_three_d_secure": "automatic"
},
"customer_balance": null,
"konbini": null,
"sepa_debit": null,
"us_bank_account": null
},
"payment_method_types": null
},
"period_end": 1746779510,
"period_start": 1746779510,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
"receipt_number": null,
"rendering": null,
"shipping_cost": null,
"shipping_details": null,
"starting_balance": 0,
"statement_descriptor": null,
"status_transitions": {
"finalized_at": 1746779510,
"marked_uncollectible_at": null,
"paid_at": 1746779513,
"voided_at": null
},
"subscription": "sub_1RMmLWJuOsru2y4Lt4U9idVy",
"subscription_details": {
"metadata": {
}
},
"subtotal": 5000,
"subtotal_excluding_tax": 5000,
"tax": null,
"test_clock": null,
"total": 4500,
"total_discount_amounts": [
{
"amount": 500,
"discount": "di_1RMmLSJuOsru2y4LmObZPqZk"
}
],
"total_excluding_tax": 4500,
"total_pretax_credit_amounts": [
{
"amount": 500,
"discount": "di_1RMmLSJuOsru2y4LmObZPqZk",
"type": "discount"
}
],
"total_tax_amounts": [
],
"total_taxes": [
],
"transfer_data": null,
"webhooks_delivered_at": null
}
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response