POST
stripe_invoices_update.py
from charter.packs import stripe
result = await stripe.invoices_update.ainvoke({"invoice": ...})
Path parameters
| Field | Type | Description |
|---|---|---|
invoice * | string | The ID of the invoice. |
Body
| Field | Type | Description |
|---|---|---|
description | string | An arbitrary string attached to the invoice. Shown as the memo in the Dashboard. |
metadata | map of string | Set of key-value pairs attached to the invoice. |
autoAdvance | boolean | Whether Stripe collects the invoice automatically. False leaves the invoice where it is until you act on it. |
collectionMethod | CollectionMethod | How to collect payment. Absent, Stripe charges the customer’s default payment method. |
daysUntilDue | integer | Days until the invoice is due. Valid only when collection_method is ‘send_invoice’. ≥ 0 |
dueDate | integer | Unix timestamp when payment is due. Valid only when collection_method is ‘send_invoice’. Seconds, not milliseconds: 1700000000, not 1700000000000. |
defaultPaymentMethod | string | The payment method to charge. It must belong to the invoice’s customer. |
footer | string | Footer text displayed on the invoice. |
statementDescriptor | string | What the customer sees on their card statement. Must contain at least one letter. |
onBehalfOf | string | The connected account the funds are intended for. Its branding and support information appear on the invoice. |
discounts | SubscriptionDiscount[] | Coupons and promotion codes. A populated array replaces the invoice’s existing discounts. Absent, they are left alone. |