Provides methods to list and manage benefit grants for customers within the Polar platform. Use this to retrieve access status for specific benefits.
// Source: https://github.com/polarsource/polar | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { ClientBase, RequestOptions } from "../../base";
import type { BenefitGrant, BenefitGrantSortProperty, ListResourceBenefitGrant } from "../models";
import { HTTPValidationError } from "../errors";
export const listBenefitGrants = (client: ClientBase) => {
/**
* List benefit grants across all benefits accessible to the authenticated subject.
*
* **Scopes**: `benefits:read` `benefits:write`
*
* @param query - Query parameters
* @param requestOptions - Request options
* @returns {ListResourceBenefitGrant}
* @throws {PolarNetworkError} When a network
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key