Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The recharge settings to update.
the amount to recharge to
x >= 0
the threshold at which to recharge
x >= 0
the name of the credit grant as it will appear on invoices
the duration (in months) for which the credits will be granted
the Metronome ID of the credit type to recharge
Options for prepaid credits. If specified, the credits will not be released until payment is received.
If true, a recharge will be triggered immediately if the credit balance is under the recharge_threshold and the result of the recharge will be returned in the response. The settings will be updated regardless of the result of the recharge but the settings will have enabled set to 'false' if the recharge fails. An requires action result will be considered a failure for the purposes of this flag.
Reason for the credit grant. This may be shown to your users.
Internal-only identifier used to categorize your credit grant. Your users won't see this.
The product(s) which these credits will be applied to. (If unspecified, the credits will be applied to charges for all products.). The array ordering specified here will be used to determine the order in which credits will be applied to invoice line items
Response
Success