#michi_api

1 messages ยท Page 1 of 1 (latest)

winter kestrelBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1324700871166263306

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

versed chasm
ancient maple
#

I need the payment date and the amount of each payments to one invoice

versed chasm
#

well the date I would say is invoice->payment_intent->latest_charge->created and as for the 'each payments', an Invoice can only have one (successful) payment

ancient maple
#

But I do not get this information via /v1/invoices endpoint?
I only receive an id that I need to put in the /v1/invoice_intention, correct?

#

Is this maybe a permission problem?

#

Because I have no permission to call the invoice_intention

versed chasm
#

It's nothing to do with permissions no. It's how the API is designed, the information on the payments themselves is in the PaymentIntent and Charge objects. There's a link from the Invoice to the PaymentIntent for that Invoice and you can retrieve the objects that way for your code to inspect.

There's no such thing as "invoice_intention" so I don't know what you mean by that.

ancient maple
#

Sorry, I meant "invoice_intent". Here I receive not a object (via /invoices) but an id:
"payment_intent": "pi_XYZ",

versed chasm
#

yes. Look into the 'expand' feature I mentioned earlier. You can also call the Retrieve PaymentIntent API with that ID.

ancient maple
#

Ahh, okay. But I receive the following error:
So I think that this is a permission problem

versed chasm
#

well that is a permissions error yes. Where did you get the API key from?

ancient maple
#

From my customer but I can ask to grant me the permission

#

Thank you very much! Oh, I am sorry: I wish you a happy new year ๐Ÿ™‚

versed chasm
#

thanks, you too

ancient maple
#

Oh, maybe another question, if allowed: Does the customers have no customer ids in stripe?

winter kestrelBOT
ancient maple
#

@versed chasm - I have not seen that the picture (that I deleted now) has the account informations -> Do you see still this picture?