#gab gab-api-error
1 messages · Page 1 of 1 (latest)
Hey, can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Hi,
I cannot find the ID in the logs from my dashboard.
My request error is 500, could it be the reason it is not listed?
Can you share your account ID?
Here it is acct_1IT7WdJZXToOOk0Q
Can you share the code you're using the create the API request?
POST https://api.stripe.com/v1/accounts/acct_1LCnOQQvUfr2nK65
`
Headers
POST /v1/accounts/acct_1LCnOQQvUfr2nK65 HTTP/2
Host: api.stripe.com
user-agent: insomnia/2022.4.1
content-type: multipart/form-data; boundary=X-INSOMNIA-BOUNDARY
authorization: Bearer sk_test_5
accept: /
{
"purpose":"identity_document",
"file": File
}
`
I tried with an image and with a pdf
Why are you using multipart/form-data? Likely the issue
I followed this https://stripe.com/docs/api/files/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Wait, your endpoint is wrong. It should be: https://files.stripe.com/v1/files
That will create the File object, and return the file_xxx you can pass to the account
Ah GOD
Thanks !
I'm sending this document to validate thoses verifications
additional_document & document
In case I want to send the same document for both verifications, am I forced to create 2 distinct files?
It seems I cannot assign 2 times the same document id
Ok My bad It seems fine to use the same file id for both