#ChibiDragoon
1 messages ยท Page 1 of 1 (latest)
in the api it says that i should link the invoice to the line item
That's optional
You can create invoice items prior to creating the invoice
Then they'll get pulled in automatically
will i still have access to them even if i create them on the connected account?
on the line item and the invoice afterwards i presume?
Yes
Doing that on an api request tells Stripe that you want the api request run on the Connect account
ok so i create 1 line item and then i create a invoice and the line item will like itself to it from what i understood. I will try that right now thank you
Yeah as long as you pass the same customer
ok
if i say that the payment is instant on the invoice, there wont be an issue?
it mentionned in the api that it was supposed to be in draft mode when i link it initially
That's if you want to create invoice items after creating the invoice
It needs to be in draft mode
If you create items prior to the invoice it won't matter
ah ok
i see i see so adding it would be like editing the draft
Yeah
getting it now haha ๐
Cool glad to help
and to create the line item its it the invoice items endpoint?
Yeah
ok good wanted to make sure since i couldnt find the create line item haha
figured afterwards that it's seperated for invoice and subscription
both line items but for different object types
Wait sorry I don't understand. What's the question?
i was just wondering if the endpoint to create a line item for my invoice https://api.stripe.com/v1/invoiceitems
Yes that's correct
ok good
since i am here, on a payment intent, i was able to give a token of my user payment method to make a payment.
When i look at the invoice api, all i can see is default source.
Can i put the payment method token on that parameter to make the payment since i just want the connected account to have a copy of my customer but not the card
If you are passing the stripe account header to make a payment on your connect account, all associated object id's you pass must also exist on that connect account (including customer and payment method)
but i was able to make a token and give it directly as the payment method and it worked ๐ค
here's my example
here's the customer on my connected account
cus_NnXbGPHOPCHJ43
he has payment that have succeded but no payment method
because the payment method comes from the main plateform
Can you share a request ID so I can see what you're doing?