POST /accounts/{account_id}/ai-gateway/billing/topup/eligibility

Determine whether an account can self-serve a credit top-up, and if not, why. The dashboard forwards the account's payment-method list in the body; the reason logic is owned here.

Servers

Path parameters

Name Type Required Description
account_id String Yes

Cloudflare account ID.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
payment_methods[] Array No

Account-level payment methods, forwarded by the dashboard.

payment_methods[].default Boolean No

Whether this is the account default payment method.

payment_methods[].type String No

Payment-method type. Absent or unrecognized is treated as non-card (does not error). Known values: PAYPAL, CREDIT_CARD, APPLE_PAY, GOOGLE_PAY, ACH_DIRECT_DEBIT, SEPA_DEBIT, CASHAPP, LINK, CRYPTO.

payment_methods[].last_four String No

Last 4 digits, for display copy only.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.