Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Credit and customer IDs and fields to update
ID of the customer whose credit is being edited
ID of the credit to edit
Which products the credit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the credit applies to all products.
Which tags the credit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the credit applies to all products.
List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids
or applicable_product_tags
. Instead, to target usage by product or product tag, pass those values in the body of specifiers
.
If multiple commits are applicable, the one with the lower priority will apply first.
If provided, updates the credit to use the specified rate type for current and future invoices. Previously finalized invoices will need to be voided and regenerated to reflect the rate type change.
LIST_RATE
, list_rate
, COMMIT_RATE
, commit_rate
Response
Success