#ChibiDragoon

1 messages ยท Page 1 of 1 (latest)

balmy cargoBOT
hoary cipher
#

2 steps

#

But you can create invoice items before creating the invoice too

hollow vine
#

in the api it says that i should link the invoice to the line item

hoary cipher
#

That's optional

#

You can create invoice items prior to creating the invoice

#

Then they'll get pulled in automatically

hollow vine
#

will i still have access to them even if i create them on the connected account?

hoary cipher
#

Yes

#

Just pass stripe account header

hollow vine
#

on the line item and the invoice afterwards i presume?

hoary cipher
#

Yes

#

Doing that on an api request tells Stripe that you want the api request run on the Connect account

hollow vine
#

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

hoary cipher
#

Yeah as long as you pass the same customer

hollow vine
#

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

hoary cipher
#

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

hollow vine
#

ah ok

hoary cipher
#

They'll get pulled in regardless

#

Draft mode is for editing the invoice. That's why

hollow vine
#

i see i see so adding it would be like editing the draft

hoary cipher
#

Yeah

hollow vine
#

getting it now haha ๐Ÿ˜„

hoary cipher
#

Cool glad to help

hollow vine
#

and to create the line item its it the invoice items endpoint?

hoary cipher
#

Yeah

hollow vine
#

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

hoary cipher
#

Wait sorry I don't understand. What's the question?

hollow vine
hoary cipher
#

Yes that's correct

hollow vine
#

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

hoary cipher
#

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)

hollow vine
#

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

hoary cipher
#

Can you share a request ID so I can see what you're doing?

hollow vine
#

sure 2 second

#

req_JnDEr1WLDGBUKp

hoary cipher
#

The payment method you passed there exists on the connect account: acct_1N1UfZR3ylUYYiIE

#

So that's expected

#

All objects are on the connect account

hollow vine
#

it exists but it isn't linked to the customer

#

is there a way for me to see that payment_method

#

i can search it