Enable or disable opt-in pay-as-you-go overage
POST
/v1/billing/overage
const url = 'https://api.emite.cr/v1/billing/overage';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.emite.cr/v1/billing/overage \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true }'When enabled, production emissions past the monthly quota + prepaid balance keep succeeding and accrue at the per-document overage rate (billed monthly via Onvo) instead of returning 402. Requires a recurring subscription (a card to bill). Off by default.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
enabled
required
Enable (true) or disable (false) opt-in pay-as-you-go overage.
boolean
Examplegenerated
{ "enabled": true}Responses
Section titled “Responses”Media typeapplication/json
object
overageEnabled
required
The resulting overage state.
boolean
Examplegenerated
{ "overageEnabled": true}