#hieu-do_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1262221860251107420
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you try login again with stripe login -i?
Of couse. I logged in using your command & try to upload application. Stripe is validating my schema.
It will takes several minutes.
Still getting merchant_id error. This is the request req_crWFv1V4zLZaIR?t=1721008124
Could you share the list of commands that you've run and their response?
This looks like Stripe CLI didn't pick up the login account correctly
stripe apps upload
To continue, please accept Stripe Apps terms and conditions for Son Test Platform.
Press Enter to open the browser or visit https://dashboard.stripe.com/apps/accept-terms (^C to quit)
Waiting for confirmation...
⬆ You are about to upload your app to Son Test Platform
Name: CollectMate
ID: xxxxxxxxxxxxx
Version: 0.0.1
Would you like to proceed: Y
✔ Built files for production
✔ Packaged files for upload
× Failed to upload CollectMate
Request failed, status=400, body={
"error": {
"code": "parameter_missing",
"doc_url": "https://stripe.com/docs/error-codes/parameter-missing",
"message": "Missing required param: merchant_id.",
"param": "merchant_id",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_crWFv1V4zLZaIR?t=1721008124",
"type": "invalid_request_error"
}
}
FYI: I redacted the ID and I tested in both CLI version 1.20.0, 1.21.0
How about the login command and its response?
stripe login -i
Enter your API key:
Your API key is: rk_test_***********************************************************************************************vS5C
How would you like to identify this device in the Stripe Dashboard? [default: 192.168.1.27]
> Done! The Stripe CLI is configured for with account id acct_xxxxxxxxxxx
I checked my restricted api key. It allows to write in almost operations except Climate & Reports resources.
Can you try expire this key and create the new one?
Of couse. Let me try it.
Created new key & deleted the old one. Im trying to uplaod app.
stripe apps upload
To continue, please accept Stripe Apps terms and conditions for Son Test Platform.
Press Enter to open the browser or visit https://dashboard.stripe.com/apps/accept-terms (^C to quit)
Waiting for confirmation...
Request failed, status=403, body={
"error": {
"message": "The provided key 'rk_test_*********************************************************************************************GA2iyV' does not have the required permissions for this endpoint on account 'acct_1O7dFrCd9j9wwZhc'. 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_TFzgAt5BLFsgSP?t=1721009220",
"type": "invalid_request_error"
}
}
I'm getting another error. The restricted key permissions are write for all resources.
The new key doesn't have Stripe apps write permission
Checking how to add Stripe Apps write permission onto the key
I don't remember how to add the permission to this key. Waiting for your suggestion.
Still checking!
For the credential you logged in to an account, are you the admin or have the developer role access?
I'm admin and owner of this project.
Thanks for waiting! I'm afraid we are unable to find out what cause of the issue is. Can I suggest you writing to Support https://support.stripe.com/contact/email, so that we can check with the relevant team and follow up with you?
Oh I fixed this error here: #1262221860251107420 message
stripe login
Your pairing code is: fav-goood-quaint-solace
This pairing code verifies your authentication with Stripe.
Press Enter to open the browser or visit https://dashboard.stripe.com/stripecli/confirm_auth?t=vJgM7px1yCRa8sp0mMkFWLiIC4ilJq0O (^C to quit)
⣻ Waiting for confirmation...unexpected http status code: 400 {"error":{"message":"The livemode of the authorization key you provided does not match that of the key provided in the Stripe-Account header.","message_code":"stripe_account_livemode_mismatch"}}
By trying to login without interactive flag. Above error was returned but Stripe still creates a restricted key A for me with an expired time.
I roll new key B from A and use B for interactive login.
For now, the Missing merchant_id error is apreared
Could you help me or I will create support ticket as your mention before?
The livemode of the authorization key you provided does not match that of the key provided in the Stripe-Account header.
Did you log in live or test mode?
Actually it's a test mode account.
I don't complete Stripe onboarding, no card, no bussiness detail therefore it's a test mode account.
Thanks for sharing! I'm afraid we are unable to find out the reason.
Could you help me or I will create support ticket as your mention before?
I'd recommend writing in yourself as they will be authenticating your account and following up with you