#DOMV
1 messages · Page 1 of 1 (latest)
hi good day
my question when i upload a file i get the file id
but when I want to get all the information of that file id it says that it does not exist
Can you provide me a request ID for the error stating it doesn't exist?
Okay and the request ID (https://support.stripe.com/questions/finding-the-id-for-an-api-request) where you attempt to retrieve that file?
but i need get this info id by api
Not exactly sure what you mean by that? You are asking how to get the file ID itself via the API?
Or you are attempting to retrieve that file and that request is failing?
i are attempting to retrieve that file and that request is failing
Right so can you provide that request ID? Where you are seeing the error?
It should look like req_xxxxx
lol no that is a file ID
Not a request ID
You should be able to see the failed request in your Dashboard here: https://dashboard.stripe.com/test/logs
[error] => Array
(
[code] => resource_missing
[doc_url] => https://stripe.com/docs/error-codes/resource-missing
[message] => No such file upload: 'file_1K47VFEU91PrJAeR81r5LAKs'
[param] => file
[type] => invalid_request_error
)
Okay I went and found it. You should be able to see the request here: https://dashboard.stripe.com/test/logs/req_gdfsjXjaZ3j9gf
So the issue is that the file is on a different account than where you are making the request
The file exists on acct_17lVMIEU91PrJAeR which is a Connected Account for acct_1zgTcWMe2ZTd1QZw5CeE
You are attempting to retrieve the file on your platform, via the above request, not the connected account
So you need to use the Stripe Account header: https://stripe.com/docs/connect/authentication#stripe-account-header
To retrieve the file on the Connected Account, instead of your platform
ooo thanks let me check