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

# goals

> Something to achieve with a customer.

## goals.create

```ts theme={null}
const [goal, error] = await crm.goals.create({
  partyId: contact.id,
  desiredOutcome: "Upgrade to the team plan",
  valueAmount: 120000,
  valueCurrency: "USD",
  targetDate: "2026-12-31",
});
```

**partyId** `string` *required*

The CRM's id for the customer, from [`contacts.upsert`](https://docs.revenuebee.ai/sdk/upsert-contact) or
[`contacts.resolve`](https://docs.revenuebee.ai/sdk/resolve-contact).

**desiredOutcome** `string` *required*

What success is, up to 120 characters.

**description** `string`

**valueAmount** `number`

What it is worth, in minor units.

**valueCurrency** `string`

Three letters, such as `USD`.

**targetDate** `string`

A date, `YYYY-MM-DD`.

## goals.list

```ts theme={null}
const [goals, error] = await crm.goals.list({ partyId: contact.id });
```

## goals.complete

Marks the goal achieved.

```ts theme={null}
await crm.goals.complete({ goalId: goal.id });
```

**goalId** `string` *required*

The goal's `id`, from `goals.create` or `goals.list`.


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