#michi_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
hi! depends what exact information you're looking for but inspecting invoice.payment_intent and expanding it should be a good starting point.
https://docs.stripe.com/api/invoices/object#invoice_object-payment_intent
https://docs.stripe.com/expand
I need the payment date and the amount of each payments to one invoice
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
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
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.
Sorry, I meant "invoice_intent". Here I receive not a object (via /invoices) but an id:
"payment_intent": "pi_XYZ",
yes. Look into the 'expand' feature I mentioned earlier. You can also call the Retrieve PaymentIntent API with that ID.
Ahh, okay. But I receive the following error:
So I think that this is a permission problem
well that is a permissions error yes. Where did you get the API key from?
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 ๐
thanks, you too
Oh, maybe another question, if allowed: Does the customers have no customer ids in stripe?
@versed chasm - I have not seen that the picture (that I deleted now) has the account informations -> Do you see still this picture?