# Account Management API for Subscriptions is blank

**URL:** <https://community.dynatrace.com/t/account-management-api-for-subscriptions-is-blank/43027>\
**Category:** Dynatrace API\
**Tags:** account-management, dynatrace-api\
**Created:** [December 5, 2023, 7:50am UTC](https://community.dynatrace.com/t/account-management-api-for-subscriptions-is-blank/43027 "2023-12-05T07:50:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjay](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tjay](https://community.dynatrace.com/u/tjay)\
**Post date:** [December 5, 2023, 7:50am UTC](https://community.dynatrace.com/t/account-management-api-for-subscriptions-is-blank/43027/1 "2023-12-05T07:50:05Z")

</div>

I can list groups and environments, but subscriptions returns blank. The status code is 200 and there is no token error.

```auto
https://api.dynatrace.com/sub/v2/accounts/<uuid>/subscriptions

```

I used scope=account-uac-read to generate a token.

Does anyone know what is causing this?

The output shows { “data”: [] }.

---

<div class="post-metadata">

**Author:** ![LawrenceBarratt](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lawrencebarratt/32/26634_2.png) [@LawrenceBarratt](https://community.dynatrace.com/u/LawrenceBarratt)\
**Post date:** [December 14, 2023, 7:17pm UTC](https://community.dynatrace.com/t/account-management-api-for-subscriptions-is-blank/43027/2 "2023-12-14T19:17:49Z")

</div>

Hi&nbsp;[@tjay](https://community.dynatrace.com/user/68135)

What license are you currently on with your Dynatrace tenant?

Depending on your license currently, you can try the v1 api and see what the return is:

```auto
https://api.dynatrace.com/sub/v1/accounts/<uuid>/subscriptions

```

Thanks,

Lawrence

---

<div class="post-metadata">

**Author:** ![tjay](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tjay](https://community.dynatrace.com/u/tjay)\
**Post date:** [December 15, 2023, 2:53am UTC](https://community.dynatrace.com/t/account-management-api-for-subscriptions-is-blank/43027/3 "2023-12-15T02:53:03Z")

</div>

Hi&nbsp;[@LawrenceBarratt](https://community.dynatrace.com/user/47736)

Thank you for your comment.

We use Host Units, DDU, DEM and ASU.

I tried v1 and here is the result.

[https://api.dynatrace.com/sub/v1/accounts/\](https://api.dynatrace.com/sub/v1/accounts/%5C)/subscriptions

{“totalCount”:0,“records”:[]}

---

<div class="post-metadata">

**Author:** ![LawrenceBarratt](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lawrencebarratt/32/26634_2.png) [@LawrenceBarratt](https://community.dynatrace.com/u/LawrenceBarratt)\
**Post date:** [December 15, 2023, 8:23am UTC](https://community.dynatrace.com/t/account-management-api-for-subscriptions-is-blank/43027/4 "2023-12-15T08:23:19Z")

</div>

Hi&nbsp;[@tjay](https://community.dynatrace.com/user/68135),

Are you on full DPS or classic licensing?

I tested an account in postman and got this result:

 ![LawrenceBarratt_2-1702628466378.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/0/60b25117ad5b71c2ed786aa5a3c298e61cdac21d.png)

Have you input your bearer token&nbsp; for Authorization?

Thanks,

Lawrence

---

<div class="post-metadata">

**Author:** ![tjay](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tjay](https://community.dynatrace.com/u/tjay)\
**Post date:** [December 18, 2023, 12:05am UTC](https://community.dynatrace.com/t/account-management-api-for-subscriptions-is-blank/43027/5 "2023-12-18T00:05:13Z")

</div>

Hi&nbsp;[@LawrenceBarratt](https://community.dynatrace.com/user/47736)

Thank you for your reply.

I believe we use the DPS license. Regarding the bearer token, I do use it. Without it there is an error - Incorrect Authorization header in request.

I tired the GUI example to get the subscriptions.

[https://api.dynatrace.com/spec/#/Dynatrace%20Platform%20Subscription/SubscriptionsController\_listSubscriptions](https://api.dynatrace.com/spec/#/Dynatrace%20Platform%20Subscription/SubscriptionsController_listSubscription)

For v1 the curl command as follows. I tried v2 as well.

curl -X ‘GET’ &nbsp; ‘[https://api.dynatrace.com/sub/v1/accounts/\](https://api.dynatrace.com/sub/v1/accounts/%5C)/subscriptions’ &nbsp; -H ‘accept: application/json’ &nbsp; -H ‘Authorization: Bearer \<token\>’
