> ## 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.

# Reload the customer

> `Smile.fetchCustomer(options?)`

<Danger>
  This method is deprecated and will be removed on August 1, 2026. Specify `includeSdk: true` when [initializing Smile UI](/ui/initializing), then use the appropriate method from the JavaScript SDK:

  * [`Smile.customer.current()`](/js/resources/customer/current) for basic customer info (like name, referral URL, and email address)
  * [`Smile.customerPointsWallet.get()`](/js/resources/customer-points-wallet/get) for up-to-date points balance
  * [`Smile.customerVipStatus.get()`](/js/resources/customer-vip-status/get) for up-to-date VIP tier information
</Danger>

This method fetches the latest information for the currently logged-in customer. It is useful when it's expected that the customer information has changed since the page loaded. A common example of this is right after a customer has spent points, since their points balance will have been updated in Smile. Reloading the customer object allows you to immediately render the customer's new points balance.

## Parameters

<ParamField path="options" type="object">
  <Expandable title="properties">
    <ParamField path="include" type="string" default="">
      A comma-separated list of related objects to include in the response. The only permitted value is: `vip_tier`
    </ParamField>
  </Expandable>
</ParamField>

## Returns

This method returns a `Promise` that:

* On success, resolves with a [customer](/ui/objects/customer) object.
* On failure, resolves with an error object.

If the method is improperly invoked (e.g. invalid parameters) or no customer is currently logged-in, the `Promise` will be rejected.

<Panel>
  ```javascript JavaScript theme={null}
  Smile.fetchCustomer().then(
    (customer) => {
      // Handle the customer object
    }
  );

  // Reload the customer with VIP tier
  Smile.fetchCustomer(
    { include: "vip_tier" }
  ).then((customer) => {
    // Use customer.vip_tier.name
  });
  ```
</Panel>
