Can app_subscriptions be queried externally?

Hey everyone,

I’m building an app that will integrate with a third-party service. I’m currently testing subscription handling, and I’m trying to use the app_subscriptions query to retrieve subscription data.

Here’s the query I’m running (IDs anonymized):

query {
  app_subscriptions (app_id: 1234567, account_id: 1234567) {
    cursor
    total_count 
    subscriptions {
      account_id
      monthly_price
      currency
    }
  }
}

But the result is always empty:

{
  "data": {
    "app_subscriptions": {
      "cursor": null,
      "total_count": 0,
      "subscriptions": []
    }
  },
  "extensions": {
    "request_id": "f83cff6e-67a2-9d1f-8efa-751ffb2c3872"
  }
}

I also tried creating a mock subscription with set_mock_app_subscription:

mutation {
  set_mock_app_subscription (
    app_id: 1234567,
    partial_signing_secret: "****41a77",
    is_trial: false,
    plan_id: "basic_plan"
  ) {
    plan_id
  }
}

:green_circle: The mock subscription is visible under the Monday app context when queried inside the app.
:red_circle: But when I query it from an external call (using the API playground or third-party integration), I still get 0 results.

:pushpin: My questions:

  • Is this expected behavior until the app is submitted/published in the marketplace?

  • Or should mock subscriptions also be available externally for development/testing?

  • Is there any additional step required to link the subscription to the account when testing externally?

Would love to hear from anyone who’s tested this flow :folded_hands:

You can test mock subscription but you need to use the token to create all this stuff I uses short lived token and it works for me