> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Enable Subscribers to View Available Credits

You can enable subscribers to view any available credits they have been granted through your self-care portal. To support this functionality, you must use the Subscribe APIs.

* **Use Case Number:** 2-4-05
* **Completed By:** Software Developer
* **Estimated Completion Time:** \<1 Day

## Basic Scenario

The subscriber logs into your self-care portal and selects to view their available credits.

## Design Approach

As shown in the following diagram, you must use the merchantAccountId to GET the credits associated with the account or subscription.

Credits are available at the account level and at the subscription level. When at the account level, a credit can be consumed by any subscription on the account. When at the subscription level, credits can only be consumed by the subscription they are associated with.

**Note:** If a credit does not exist on an account or a subscription, then there is no credit object returned with the account or subscription object.

After you GET the account object or subscription object, you must extract the relevant credit details to display to the user.

<img src="https://mintcdn.com/amdocs-slm/ifa3y22T11JlqvtT/portal/vindiciaSubscribeAndNewRetain/subscribeUseCases/images/2405_viewCredits.png?fit=max&auto=format&n=ifa3y22T11JlqvtT&q=85&s=9c84c17ba232dd9b86ca04d4f8122709" alt="" width="746" height="411" data-path="portal/vindiciaSubscribeAndNewRetain/subscribeUseCases/images/2405_viewCredits.png" />

* **[Retrieve Available Credits Using Subscribe APIs](../topics/2405_r_viewAvailableCredits#)**

**Parent topic:**[Subscriber Self-Care Access to Account Information](../topics/r_subscriberSelfCareAccessAccountInformation)

## Retrieve Available Credits Using Subscribe APIs

To enable your self-care portal to retrieve available subscriber credits, use the Subscribe APIs as follows:

1. GET the account or the subscription related to the account.

2. Extract the account level or subscription level credits to display them to the end subscriber.

   **Sample Code:**

   Get account level credits from the accounts endpoint:

   [https://github.com/Vindicia/CashBoxRESTCodeSamples/blob/master/Account/getAccountWithCredits.txt](https://github.com/Vindicia/CashBoxRESTCodeSamples/blob/master/Account/getAccountWithCredits.txt)

   Get subscription level credits from the subscriptions endpoint:

   [https://github.com/Vindicia/CashBoxRESTCodeSamples/blob/master/Autobill/getSubscriptionWithCredits.txt](https://github.com/Vindicia/CashBoxRESTCodeSamples/blob/master/Autobill/getSubscriptionWithCredits.txt)

**Parent topic:**[Enable Subscribers to View Available Credits](../topics/2405_r_viewAvailableCredits#)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.