> ## Documentation Index
> Fetch the complete documentation index at: https://dev.smile.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get earning rules

> `Smile.earningRules.get()`

This async method retrieves a list of all earning rules for the account. This method always makes an API call to fetch the latest data.

<Tip>
  For the best performance, we suggest [preloading](/js/concepts/preloading) earning rules and then using the [`Smile.earningRules.preloaded()`](/js/resources/earning-rules/preloaded) method.
</Tip>

## Returns

This method returns a `Promise` that:

* On success, resolves with an array of [earning rule objects](/js/resources/earning-rules/object).
* On failure, rejects with an [error object](/js/concepts/error-handling).

If the method is improperly invoked, the `Promise` will be rejected.

<Panel>
  ```javascript JavaScript lines theme={null}
  Smile.earningRules.get().then(
    (earningRules) => {
      // Handle the earning rules collection
    }
  );
  ```
</Panel>
