Billing Auto Top Up Put

Turn on automatic credit top-ups and set (or update) their terms.

Requires a default payment method already on file: make a manual credit purchase first to save one. Returns the resolved config block, the same shape as the GET route. Errors: no_payment_method (409) when no default payment method is on file, invalid_amount (400) when the amount, threshold, or monthly cap falls outside the allowed range. Re-running this also clears any previously failed automatic top-up state, acting as a retry.

put/billing/auto-top-up

Request

  • Base URL: https://api.goodeye.dev/v1
  • URL: https://api.goodeye.dev/v1/billing/auto-top-up
  • Auth: none declared

Request body

amount_usdinteger required

Amount to add, in whole US dollars, each time your balance drops below the threshold.

threshold_usdinteger nullable

Balance, in whole US dollars, that triggers an automatic top-up. Defaults to the top-up amount when omitted.

monthly_cap_usdinteger nullable

Maximum total, in whole US dollars, automatic top-ups can spend in a calendar month. Defaults to four times the top-up amount when omitted.

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.