hellotimi
(David Kalu)
1
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
}
}
hellotimi
(David Kalu)
2
dipro
(Dipro Bhowmik)
3
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
hellotimi
(David Kalu)
4
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!