Skip to main content

Not getting app_subscription object in response

  • March 31, 2023
  • 10 replies
  • 572 views

Forum|alt.badge.img

Hi there,

We recently got our application for monetization approved, and I am integrating the monetization SDK on our app - https://monday.com/marketplace/10000012

The SDK documentation says that I should be expecting a app_subscription object as response to the context query, but I am not getting it

Here is the response to monday.context

{"method":"get","type":"context","data":{"theme":"light","account":{"id":"7403972"},"user":{"id":"17067431","isAdmin":true,"isGuest":false,"isViewOnly":false,"countryCode":"IN","currentLanguage":"en","timeFormat":"12H","timeZoneOffset":5},"region":"use1","app":{"id":40223,"clientId":"9949c485aeae833d90caf2d0c56edb43"},"appVersion":{"id":10093649,"name":"Mind Mapping","status":"draft","type":"minor","versionData":{"major":1,"minor":6,"patch":0,"type":"minor"}},"boardIds":[],"viewMode":"fullscreen","editMode":true,"instanceId":-1,"instanceType":"board_view"},"requestId":"xke2t2e"}

Here is the response to app_subscription and app_monetization_status queries

{"data":{"me":{"id":17067431,"name":"Kranthi Kiran","email":"kranthi@thoughtflow.io","account":{"id":7403972,"name":"ThoughtFlow"}},"app_subscription":[],"apps_monetization_status":{"is_supported":true}},"account_id":7403972}

What am I doing wrong?
Would appreciate your help in getting this to work. Thank you.

10 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 3, 2023

Hello there @kranthi_thoughtflow,

Did you create a mock subscription before testing this?


Forum|alt.badge.img

Thanks @Matias.Monday .
I haven’t created that yet. Will give it a try.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 4, 2023

Sounds good!

Let me know what happens!

Cheers,
Matias


Forum|alt.badge.img

Hey @Matias.Monday ,
I ran the query from the preview section of the mind map view in the app screen, but I am getting a 403 error


image

Any idea what could I be doing wrong?


  • April 6, 2023

Hi @kranthi_thoughtflow,

Did you select a board from the corner button “Boards”?

I recommend getting context while viewing your application from a board, as opposed to the preview.

Let me know how that goes!


Forum|alt.badge.img

HI @alessandra ,
I hadn’t selected the board earlier, but even after selecting the board, I am getting the same error.

The reason I am using the developer preview is that I want to make these changes on my local machine on a draft version before making them live so that it does not disrupt the workflow of current users.
If I want view my app from a board, I would have to publish it, and any existing users may not be able to see their mind maps.

Is there a work around that would allow to use the draft version? Also, would it be possible to get some 1-1 help from any developers at monday who can help? It’s been more than a week that I’m struggling with this. 😦


rachelatmonday
Forum|alt.badge.img
  • monday.com Team Member
  • April 7, 2023

Hi @kranthi_thoughtflow,

You can reach out to our team at appsupport@monday.com!

Best,
Rachel


Forum|alt.badge.img

Hi @rachelatmonday - Sent an email . Hoping to connect with someone soon.

@alessandra - I tried this out from the board directly. Still getting the same error 😦


Forum|alt.badge.img

Hi @alessandra , @Matias.Monday - I tried this from by creating a test monday account with a dummy email address. Now I get a subscription object in the context response, but the mock subscription endpoint still returns a unauthorized exception.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 9, 2023

Hello @kranthi_thoughtflow,

Would you be able to please send an email to appsupport@monday.com so we can take a closer look from there?

Looking forward to hearing from you!

Cheers,
Matias