#Arvind hariharan
1 messages ยท Page 1 of 1 (latest)
Hi
Can you please share more details about your ask ?
Hi I am getting access restricted error when i am trying to create a financial session
{
"error": {
"message": "The provided key 'rk_test_*********************************************************************************************k684TS' does not have the required permissions for this endpoint on account 'acct_1EmM09A9wKNWChx1'. This is a restricted API key, but the required permissions are not available for use by restricted keys.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_StlTWo4qHbgmYj?t=1685618691",
"type": "invalid_request_error"
}
}
Can u please help in how to get the required permissions?
Did you try to use a secret key and not restricted key ?
How to use secret key? do u have any example?
You can find your secret key following this guide:
https://stripe.com/docs/keys#reveal-an-api-secret-key-for-test-mode
I am using Stripe CLI and it is asscoiated with a restricted key
i am not able to edit the permssions and save it for that restricted key through the dashboard in test mode
You can authenticate the Stripe CLI using the secret key too.
how to do that?
i just did stripe login and got logged in to stripe CLI.
okay
i am able to connect with secret key now
one more query
I am trying to create a financial session using this API
stripe financial_connections sessions create -d "account_holder[type]"=customer -d "account_holder[customer]"=cus_O0AcfuKPub48ow -d "permissions[0]"=balances -d "prefetch[0]"=balances --api-key sk_test_7l2hSn3KdqfKleV0PDdh7xth00QLOYTTHO
and i am getting the below error
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: prefetch",
"param": "prefetch",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_r7OxJoB6XYXWSD?t=1685621425",
"type": "invalid_request_error"
}
}
Cant we use "Prefetch" param to prefetch the balances
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Where have you seen this option?
while creating financial connection session
can we have this param while creating a financial connection session?
Sorry for delay, let me check
okay
Nope, not a valid parameter: https://stripe.com/docs/api/financial_connections/sessions/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.
Not sure where you've seen prefetch referenced?
Ah, wait. I see it
So this is a gated/beta feature. You'll need to speak to support for access: https://support.stripe.com/support
Okay so they need to activate it for our account?
Correct your account needs to be granted access
okay let me check with them. But it can be used right. i mean it is available as a pram to pass correct
๐ stepping in as ynnoj needs to step away
okay i was asking param prefetch can be used while creating a financial session correct once we get the access