Create a grant directly for a metered entitlement, crediting the customer’s balance immediately. The entitlement must belong to an active v1 subscription.
API key authentication
The unique identifier of the entitlement
^ent_[a-zA-Z0-9]+$The number of credits to grant.
Idempotency key to prevent duplicate grants. Must be unique per entitlement.
255When the grant becomes effective. Defaults to now.
When the grant expires. If omitted, the grant does not expire.
Grant successfully created.
grant Unique identifier for the grant.
^grt_[a-zA-Z0-9]+$The entitlement this grant belongs to.
^ent_[a-zA-Z0-9]+$The number of credits granted.
When the grant becomes effective.
When the grant was created.
The recurrence interval (ISO 8601 duration) if this is a recurring grant. Null for one-time grants.
The idempotency key used when creating this grant. Null if not provided.
When the grant expires. Null means no expiration.
When the grant was voided. Null means the grant is active.