#louisram_
1 messages · Page 1 of 1 (latest)
Can you share some req_xxx IDs for the API requests?
SO you want the /v1/invoiceitems request to put onto the invoice you just created here: https://dashboard.stripe.com/logs/req_N6ITjzGuSPgVI2 ?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
that's correct yes
so the invoice pulls data from the invoice item
price being the main value
You should pass the invoice parameter when creating the Invoice Item: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
In your request, you're just adding the new Invoice Item to the customer
It'd be picked up on the next invoice you create
so the invoice must be created before the invoice item?
Not necessarily no. If you want to create Invoice Items first, and then the Invoice you'll need to pass this parameter: https://stripe.com/docs/api/invoices/create#create_invoice-pending_invoice_items_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
pending_invoice_items_behavior: 'include'. This behaviour changed in the recent API version release: https://stripe.com/docs/upgrades#api-versions:~:text=The pending_invoice_items_behavior parameter,now exclude.