Create a commit
Draft scaffold — not implemented or available in the API.
Adds a spend commitment to an active order. An invoicedMinimum adds a true-up line when eligible usage in scope falls short of amount; a prepaid commit is invoiced upfront and drawn down by usage. startsAt and endsAt default to the order’s term. To commit on a draft order, send commits with the order instead.
Authentication
Headers
This endpoint is in the commits=v1 beta. Send this header to use it.
Request
Lowercase ISO 4217 currency code, e.g. usd. Must be enabled on your account.
invoicedMinimum: Invoice the minimum shortfall. prepaid: Draw down prepaid money.
What your customers see on invoices, credit notes, checkout and the portal; null uses the resource name.
Commit end; defaults to the order.
Minimum commitment settings. Only when type is invoicedMinimum.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
Required when type is prepaid.
Commit start; defaults to the order.
Tax code for the commit’s own charges: a prepaid invoice taxed at purchase and an invoiced minimum’s true-up. Null uses the code every scoped product shares, else the account default.
Response
The type of object. Always commit.
Lowercase ISO 4217 currency code, e.g. usd.
What your customers see on invoices, credit notes, checkout and the portal; null uses the resource name.
Invoiced-minimum settings: {} on an invoicedMinimum commit, otherwise null.
true for an object on a live account, false on a test account.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
Prepaid settings on a prepaid commit, otherwise null.
The committed amount pro-rated by day after an amendment shortened the order, in minor units of currency, or null until one does. Shown to 15 decimal places, rounded half-up at the 15th ("22580.645161290322581"); the true-up and balance.remaining use the exact fraction. Read-only: amount keeps the integer that was committed.
Tax code for the commit’s own charges: a prepaid invoice taxed at purchase and an invoiced minimum’s true-up. Null uses the code every scoped product shares, else the account default.