Update a credit grant policy
Updates an automated credit grant policy. Only provided fields are changed.
Authentication
AuthorizationBearer
API key obtained from the Grant dashboard
Path parameters
id
policyId
Request
This endpoint expects an object.
account_type
Whether credits are granted in a custom pricing unit or in currency
pricing_unit_id
Pricing unit to grant (required when account_type is pricing_unit)
currency_code
Currency to grant (required when account_type is currency)
amount
Grant amount per cadence: minor currency units (e.g. cents) for currency grants, whole units for pricing_unit grants
cadence
How often the grant recurs; one_off_subscription_start grants once when a subscription starts
expiration_interval_count
How many expiration_interval_units granted credits live before expiring. Omit both fields for non-expiring credits.
expiration_interval_unit
Unit for expiration_interval_count
effective_from
ISO 8601 timestamp the policy becomes effective
effective_to
ISO 8601 timestamp the policy stops being effective
Response
Credit grant policy updated
success
credit_grant_policy
request_id
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error
