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

# newInstance

Get an instance of `Vault Manager`, which can be used to:

* [fetch a list](/sdk/android/v2.x.x/primer-headless-checkout/vault-manager/fetchVaultedPaymentMethods) of vaulted payment methods for the `customerId` attached to the [client session](/api-reference/v2.4/api-reference/client-session-api/create-a-client-session)
* [delete](/sdk/android/v2.x.x/primer-headless-checkout/vault-manager/deleteVaultedPaymentMethod) a vaulted payment method for the `customerId` attached to the [client session](/api-reference/v2.4/api-reference/client-session-api/create-a-client-session)
* [perform a payment](/sdk/android/v2.x.x/primer-headless-checkout/vault-manager/startPaymentFlow) using a vaulted payment method and additional data (e.g. CVV)
* [validate](/sdk/android/v2.x.x/primer-headless-checkout/vault-manager/validate) the additional data used to perform a payment (e.g. validate CVV)

```kotlin KOTLIN theme={"dark"}
@Throws(SdkUninitializedException::class, VaultManagerInitException::class)
@JvmStatic
fun newInstance(): PrimerHeadlessUniversalCheckoutVaultManagerInterface
```

## Throws

<Expandable title="Exceptions" defaultOpen>
  <ResponseField name="SdkUninitializedException">
    An exception that will be thrown in case the SDK was not initialized properly.
    Before calling any of the manager's method, the SDK must be initialized using [start](/sdk/android/v2.x.x/primer-headless-checkout/methods/start) method.
  </ResponseField>

  <ResponseField name="VaultManagerInitException">
    An exception that will be thrown in case the Vault Manager was not initialized properly.
    Before calling any of the manager's method, the client session must be created with valid customer id.
  </ResponseField>
</Expandable>
