The funding method describes how the customer receives or pays for the credits.
In the API, set it with funding_method: none for promotional credits, invoice for invoice-funded credits, or external for externally funded credits.
Use promotional credits when no payment workflow applies.
Common examples include onboarding credit, compensation credit, migration credit, or admin-created credit.
Promotional credits don’t involve any payment.
Use invoice-funded credits when a customer buys credits through Metering & Billing billing.
In this flow, the grant represents the credits the customer receives, and the invoice represents the payment workflow for those credits.
The credits are available as soon as the grant takes effect.
They don’t wait for the invoice to be paid.
The credit amount and the purchase amount are related but not necessarily identical.
For example, if a customer receives 100 credits with a cost basis of 0.50 USD per credit, the invoice amount is 50 USD.
credit amount: 100 credits
cost basis rate: 0.50 USD
purchase amount: 50.00 USD
This distinction is important for discounts, commitments, negotiated rates, and cases where the commercial price of a credit differs from its face value.
Invoice funding requires the customer to have an invoicing app that can calculate tax, invoice customers, and collect payments.
Use externally funded credits when the credits are paid for outside Metering & Billing, for example by wire transfer, an external invoice, or manual reconciliation.
The grant records the credits in Metering & Billing.
Your integration is responsible for updating Metering & Billing when the external payment state changes.
To do this, send a POST request to /openmeter/customers/{customerId}/credits/grants/{creditGrantId}/settlement/external with a status of pending, authorized, or settled.