Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Create a credit
If multiple credits or commits are applicable, the one with the lower priority will apply first.
Schedule for distributing the credit to the customer.
displayed on invoices
1Used only in UI/API. It is not exposed to end customers.
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.
Which contract the credit applies to. If not provided, the credit applies to all contracts.
Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
COMMIT_RATE, commit_rate, LIST_RATE, list_rate Prevents the creation of duplicates. If a request to create a commit or credit is made with a uniqueness key that was previously used to create a commit or credit, a new record will not be created and the request will fail with a 409 error.
1 - 128Response
Success