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

# contacts.resolve

> Find a customer's partyId from one of your own handles on them.

Every call except `contacts.upsert` and `contacts.get` names the customer by the CRM's `partyId`. `contacts.upsert` returns it as `id`; when you only have your own id, an email or a Stripe customer id, resolve it.

```ts theme={null}
const [found, error] = await crm.contacts.resolve({ dbId: "user_42" });
// { partyId: "01a1f7c6-3a71-74f2-8a38-22909d8dc050" }
```

Send one of these:

**dbId** `string`

Your own id for the customer, as sent to `contacts.upsert`.

**email** `string`

An address. It resolves only when exactly one contact holds it.

**stripeCustomerId** `string`

The customer's id in your Stripe account.

**paddleCustomerId** `string`

The customer's id in your Paddle account, such as `ctm_01h8441jn5pcwrfhwh78jqt8hk`.

**shopifyCustomerId** `string`

The customer's numeric id in your Shopify store.

## Returns

**partyId** `string`

No contact matches: `not_found`.


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