#hieu-do_api

1 messages · Page 1 of 1 (latest)

wintry quarryBOT
#

👋 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.

hidden orbit
#

Can you try login again with stripe login -i?

visual glade
#

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

hidden orbit
#

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

visual glade
#
 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

hidden orbit
#

How about the login command and its response?

visual glade
#
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.

hidden orbit
#

Can you try expire this key and create the new one?

visual glade
#

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.

hidden orbit
#

The new key doesn't have Stripe apps write permission

#

Checking how to add Stripe Apps write permission onto the key

visual glade
#

I don't remember how to add the permission to this key. Waiting for your suggestion.

hidden orbit
#

Still checking!

#

For the credential you logged in to an account, are you the admin or have the developer role access?

visual glade
#

I'm admin and owner of this project.

hidden orbit
#

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?

visual glade
#
 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?

hidden orbit
#

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?

visual glade
#

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.

hidden orbit
#

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