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

# polar benefit_grants

> Arguments and flags for every polar benefit_grants command

```bash theme={null}
polar benefit_grants <subcommand> [flags]
```

**Subcommands**

* [`polar benefit_grants create`](#polar-benefit_grants-create) Manually grant a benefit to a customer or one of their members. (preview, API 2027-01)
* [`polar benefit_grants list`](#polar-benefit_grants-list) List benefit grants across all benefits accessible to the authenticated subject.
* [`polar benefit_grants revoke`](#polar-benefit_grants-revoke) Manually revoke a benefit grant, including grants from purchases. (preview, API 2027-01)
* [`polar benefit_grants update`](#polar-benefit_grants-update) Undo a manual revocation by setting `manually_revoked_at` to `None`. (preview, API 2027-01)

## polar benefit\_grants create

Manually grant a benefit to a customer or one of their members. (preview, API 2027-01)

```bash theme={null}
polar benefit_grants create [flags]
```

**Flags**

| Flag | Type | Description |
| - | - | - |
| `--fields` | `string` | Only print these fields, comma-separated; use dots for nested ones, e.g. id,name,prices.price\_amount |
| `--data`, `-d` | `string` | JSON object; explicitly supplied flags override its top-level keys |
| `--customer-id` | `string` | The ID of the customer. |
| `--benefit-id` | `string` | The ID of the benefit. |
| `--member-id` | `string` | The ID of the member receiving the benefit. If not provided, the benefit is granted to the customer's owner. |
| `--external-customer-id` | `string` | The ID of the customer in your system. |
| `--external-benefit-id` | `string` | The ID of the benefit in your system. Resolves to the current version of the benefit. |
| `--external-member-id` | `string` | The ID of the member in your system, scoped to the customer. If not provided, the benefit is granted to the customer's owner. |
| `--organization-id`, `--org` | `string` | The ID of the organization owning the customer and benefit. Omit this field when using an organization token. Defaults to the active organization. |

## polar benefit\_grants list

List benefit grants across all benefits accessible to the authenticated subject.

```bash theme={null}
polar benefit_grants list [flags]
```

**Flags**

| Flag | Type | Description |
| - | - | - |
| `--fields` | `string` | Only print these fields, comma-separated; use dots for nested ones, e.g. id,name,prices.price\_amount |
| `--data`, `-d` | `string` | JSON object; explicitly supplied flags override its top-level keys |
| `--organization-id`, `--org` | `string` | Filter by organization ID. Defaults to the active organization. |
| `--customer-id` | `string` | Filter by customer ID. |
| `--external-customer-id` | `string` | Filter by customer external ID. |
| `--is-granted` | `boolean` | Filter by granted status. If `true`, only granted benefits will be returned. If `false`, only revoked benefits will be returned. |
| `--page` | `integer` | Page number, defaults to 1. |
| `--limit` | `integer` | Size of a page, defaults to 10. Maximum is 100. |
| `--sorting` | `choice` | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. (choices: created\_at, -created\_at, granted\_at, -granted\_at, revoked\_at, -revoked\_at) |

## polar benefit\_grants revoke

Manually revoke a benefit grant, including grants from purchases. (preview, API 2027-01)

```bash theme={null}
polar benefit_grants revoke [flags] <id>
```

**Arguments**

| Argument | Type | Description |
| - | - | - |
| `id` | `string` | |

**Flags**

| Flag | Type | Description |
| - | - | - |
| `--confirm`, `-c` | `boolean` | Skip the confirmation prompt for destructive requests |
| `--fields` | `string` | Only print these fields, comma-separated; use dots for nested ones, e.g. id,name,prices.price\_amount |
| `--org` | `string` | Organization ID or slug for this invocation only |

## polar benefit\_grants update

Undo a manual revocation by setting `manually_revoked_at` to `None`. (preview, API 2027-01)

```bash theme={null}
polar benefit_grants update [flags] <id>
```

**Arguments**

| Argument | Type | Description |
| - | - | - |
| `id` | `string` | |

**Flags**

| Flag | Type | Description |
| - | - | - |
| `--fields` | `string` | Only print these fields, comma-separated; use dots for nested ones, e.g. id,name,prices.price\_amount |
| `--org` | `string` | Organization ID or slug for this invocation only |
| `--data`, `-d` | `string` | JSON object; explicitly supplied flags override its top-level keys |
| `--manually-revoked-at` | `string` | Set to None to undo a manual revocation. JSON: null |


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