Skip to main content
A benefit is what a customer receives from you: credits on a meter, a feature flag, a shared Slack channel, a license key. You create a benefit once and attach it to any number of products. Polar grants it on purchase and revokes it when access ends. You can also grant a benefit to a customer directly, without a purchase. See Benefits for grants and their lifecycle. This page covers the tasks every benefit type shares. Code examples use API version 2026-10.

Benefit types

Create a benefit

Every benefit has a type, a description of 3 to 42 characters, and properties that depend on the type. The description is what customers see on the product, at checkout and in the Customer Portal.
  • Open Products → Benefits
  • Click Create Benefit
  • Pick a Type and fill in the Description
  • Fill in the type’s options and click Create
Each type page lists its properties. Discord, GitHub and Slack benefits need a connection made in the dashboard first.

Attach a benefit to a product

A product grants every benefit attached to it. Setting a product’s benefits replaces the whole list, so send every benefit the product should keep.
  • Open Products and select the product
  • Under Automated Benefits, select the benefit
  • Save the product
Existing customers of the product get the new benefit too. Removing a benefit from a product revokes it from the product’s customers.

Visibility

visibility decides whether customers see a benefit after purchase: in order confirmations, emails, the Customer Portal and the product’s public benefit list. Hidden benefits still appear in the customer’s granted_benefits in the customer state, so your application can read them. You can only change visibility on Custom, License Keys, Meter Credits and Feature Flag benefits. Feature flags default to hidden, the others to visible. Discord, GitHub, file download and Slack benefits are always visible, because the customer has to act in the portal to receive them.

Metadata

metadata is a key-value object on the benefit. It’s returned as benefit_metadata on each entry of the customer state’s granted_benefits, so your application can read configuration such as a plan tier or a limit without hardcoding benefit IDs. Feature flags rely on it. See Feature flags.

Update or delete a benefit

Updating a benefit’s properties updates existing grants: changing a Discord role, for example, moves every customer to the new role. Deleting a benefit revokes it from every customer who holds it. Detach it from products instead if existing customers should keep it.
Deleting a benefit can’t be undone, and customers lose access right away.
In the dashboard:
  • Open Products → Benefits and select the benefit
  • Click Edit Benefit to change it
  • Open the … menu and click Delete Benefit to delete it
The benefit’s page also lists its Benefit Grants: who holds it and each grant’s status.

Grant or revoke a benefit manually

Available from API version 2027-01.
Benefits aren’t tied to orders. You can grant a benefit to any customer without a purchase: to unlock a feature for a trial, compensate a customer, or deliver a deal agreed outside checkout. A manual grant lasts until you revoke it. You can also revoke any grant, including one from a purchase, and undo a manual revocation. Meter Credits benefits can’t be granted this way. Credit the meter directly instead, see Credits.
To grant a benefit:
  • Open Customers and select the customer
  • Under Benefit Grants, click Grant benefit
  • Search for and select the benefit
  • For a team customer, select the Member who gets it
  • Click Grant benefit
To revoke a grant, click Revoke on its row and confirm. To undo a manual revocation, click Unrevoke. Both buttons appear under Benefit Grants on the customer’s page and on the benefit’s page in Products → Benefits.
Through the API, use POST /v1/benefit-grants/ to grant, DELETE /v1/benefit-grants/{id} to revoke and PATCH /v1/benefit-grants/{id} to undo a revocation. Granting and revoking are asynchronous. The returned grant may not be granted yet. A manually revoked grant stays revoked through renewals until you undo the revocation.

Grant errors

When Polar can’t deliver a benefit, for example because the GitHub App lost access to the repository, the grant’s error field holds the reason. Find failed grants under Benefit Grants on the benefit’s page in Products → Benefits, or list them with polar benefits grants <id>.

Webhooks

Each grant change also fires customer.state_changed, which is usually all you need. See Webhook events.

Learn more