#Aditya Bhutani - Invoice Items
1 messages · Page 1 of 1 (latest)
Hi Aditya. Looking into this now
Can you also share the request ID where you try to add the invoice item to the invoice?
Can’t it be done without request I’d ? Because I’m never able to find the requests from logs.
I’m using stripe connect with stripe account Id - acct_1JzunAQ7Vcs0maxV
For all the requests.
I see some different failures to add invoice items in your logs. I'll try to see if I can find the right one
I think That won’t be a failure because it created an invoice item successfully. But it’s not coming under the invoice, even tho the customer is same.
Looking at the timestamp it seems the invoice item was created after the invoice was created
It won't show on the invoice in this case
The invoice is in draft state, we can add invoice items to it until it’s in draft.
@torpid finch 👋 pls need your help.
We were able to find the request ID for this and it was helpful. You will want to specify the ID of the draft invoice if you want to add the invoice item to it on creation https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-invoice
Are you sure. Asking Because from what I remember the invoice item is identified by the customer. And all invoice items for a customer come under a single invoice.
Yes, that is the purpose of that parameter
If you only specify customer, it will go on the next invoice created even if there is already a draft invoice
Wow. Thanks. One more silly thing. Can you tell me how to find stripe requests on logs. I’m unable to find requests.
Not silly at all, you can see your full logs in your dashboard or you can get them with your API library
https://dashboard.stripe.com/logs
https://stripe.com/docs/api/request_ids
Also if you use VS Code as an IDE we have a plugin that can record your logs as you run code that I find useful
Oh I think the plugin will be really helpful. Thanks Pompey. You have been really helpful.