Issues promotional credits to a subscription's credit balance.
API Behavior
- Credits the specified
amountto the subscription's provisioned balance for the givenunit_id. - Creates one or more grant blocks to track the credit lifecycle, including balance, holds, expiry, and rollover.
- Creates ledger operations to record the credit movement.
Use Cases
Reward subscribers with bonus credits as part of a promotional campaign.
Compensate a subscription for service disruptions or overcharges.
The response returns the created ledger_operations and grant_blocks arrays.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
A unique, immutable identifier for the subscription to which the promotional credits are applied.
The number of credits to issue as part of this promotional grant.
Pass this value as a decimal string. Maximum supported value: 9999999999999999999999999.9999999999 (up to 25 digits before the decimal and up to 10 digits after).
Behavior
- Must be a positive value greater than zero.
- Credited to the subscription's provisioned balance for the specified unit.
Unix timestamp (in seconds) at which the promotional credits expire and become unavailable for consumption.
Behavior
- Once expired, the remaining balance in the associated grant block moves to
expired_amount.
Constraints
expires_atmust be a future timestamp.