Error when trying to create mock app subscription

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
  }
}

cc: @dipro @Matias.Monday

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!

1 Like

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

Thanks.

1 Like

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