Skip to main content

Error when trying to create mock app subscription

  • October 22, 2024
  • 4 replies
  • 31 views

hellotimi

I get this error when I try to create a mock subscription through the graphql api playground. I’m working on an automation app:

{
  "error_message": "User unauthorized to perform action",
  "error_code": "UserUnauthorizedException",
  "error_data": {},
  "status_code": 403,
  "account_id": 24876002
}

Here is the mutation I’m trying to execute:

mutation {
  set_mock_app_subscription (
       app_id:123345,
       partial_signing_secret: "r6374e82h",
       is_trial: true,
       plan_id: "basic_plan_15_users"
  ) {
    plan_id
  }
}

4 replies

hellotimi
  • Author
  • Participating Frequently
  • October 22, 2024

dipro
Forum|alt.badge.img
  • Leader
  • October 22, 2024

Hmmm, check the following:

  • The app was created in the account (mock subscriptions only work for apps developed in the same account)
  • The user is a collaborator on the app
  • Signing secret is correct (should be last 10 digits, it’s 9 digits in your example)
  • You’re using the app ID and not version ID

Also - moving this to the monday Apps & Developers section!


hellotimi
  • Author
  • Participating Frequently
  • October 22, 2024

I just noticed the issue was coming from the partial signing secret. It had 9 characters instead of 10.

Thanks.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • November 3, 2024

I am glad you found that @hellotimi ! Let us know if you need anything else!