Create a customer credit grant
Create a one-off cash credit grant held by a customer directly, outside any billing schedule. Its credit is issued after this request returns, so the response shows the grant as it stands at that moment: usually state.issuance PENDING with a zero availableBalance, becoming ISSUED with the full balance once funded. Credit with a costOfCredit of at least the currency’s smallest unit also raises a draft invoice for that amount, which you can review and send; the credit does not wait for it to be paid. Retrying with the same Idempotency-Key returns the original grant without creating another. Keys never expire within your account, and a key reused with different terms is rejected.
Body
Amount the customer pays for the credit, in the grant's currency. From the currency's smallest unit up (0.01 for GBP), a draft invoice is raised for it. Zero for free credit, which raises no invoice. Cannot be negative or exceed the amount granted. At most 15 digits before the decimal point and 10 after it.
400
Response
Created