#Agathe

1 messages ยท Page 1 of 1 (latest)

molten nestBOT
hearty adder
#

Hi there!

frank cobalt
#

Hello

hearty adder
#

Pasting your messages here:

curl --location --request POST 'https://connect.stripe.com/oauth/token'
--header 'Authorization: Basic c2tfdGVzdF81MU1Rb2RpSEJyOHk1WXZJa2ljeUNsZDhKWFlWR0dTYmZKQTlmSXhyQ3JJRWpscnVEcDJYdjlCWFBvMUowSmNNTExsaDlFNFlJN3c5bmwzTVFMWXk1U3VvRTAwOHg4THYyMmo6'
--header 'Content-Type: application/x-www-form-urlencoded'
--header 'Cookie: __stripe_orig_props=%7B%22referrer%22%3A%22%22%2C%22landing%22%3A%22https%3A%2F%2Fconnect.stripe.com%2Foauth%2Ftoken%22%7D; machine_identifier=gp5DBucnU0iRRBG188jmozUQ%2F4Di%2FnwAIVIPCNjBduF%2B2%2FjTWgiSbPqUX8fjIQFPuPQ%3D; private_machine_identifier=aobNlIaaA%2Fpm7dEq7isUaoHxYA6P8UEMgQVi8zDGxwAwkDjTZNSL%2BJPxC9tJaSASCHM%3D; stripe.csrf=9cGDEb8OnqFCewvoEDbTCoUA0KrviPH9wmnwZscY6bYoY7LbEt9ZuWbZh6SaBntMTEZMVxLHosmpBHGSnJAadDw-AYTZVJzYjFak0Fu4V5G7Hw7Csmp3f6vAgY96Gq26PGLssjfaQw%3D%3D'
--data-urlencode 'code[]=ac_NBvIDBVZedTIpreFwA2caNROEgZ3rYGS'
--data-urlencode 'grant_type[]=authorization_code'

{
"error": "invalid_request",
"error_description": "code failed validation: Invalid string: ["ac_NBvIDBVZedTIpreFwA2caNROEgZ3rYGS"]"
}
if i remove the []
{
"error": "invalid_grant",
"error_description": "Authorization code expired"
}

#

Can you clarify what are you trying to do exactly?

frank cobalt
#

i want to create this token

hearty adder
#

And what happen if you just copy-past this curl command (and only change the YOUR_SECRET_KEY)?

frank cobalt
#

{
"error": "invalid_grant",
"error_description": "Authorization code expired"

hearty adder
frank cobalt
#

Can you re-try with a new expiration code?
Where can i find this new expiration code?

hearty adder
#

You would restart the OAuth process.

frank cobalt
#

Ok

#

thanks a lot it has work

#

๐Ÿ™‚

#

with the doc given

hearty adder
#

Great!

frank cobalt
#

the example in the end of the process needs to be update ๐Ÿ™‚