#gab gab-api-error

1 messages · Page 1 of 1 (latest)

mighty delta
bleak gazelle
#

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?

mighty delta
#

Can you share your account ID?

bleak gazelle
#

Here it is acct_1IT7WdJZXToOOk0Q

mighty delta
#

Can you share the code you're using the create the API request?

bleak gazelle
#

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

mighty delta
#

Why are you using multipart/form-data? Likely the issue

bleak gazelle
mighty delta
#

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

bleak gazelle
#

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