Enable or update automatic prepaid refills

When authenticated with an API key, this operation requires api-admin.

Authentication

AuthorizationBearer
Console user session or Mixlayer API key supplied as a Bearer token.

Path parameters

billing_account_idstringRequired
Billing account ID

Request

This endpoint expects an object.
recharge_to_centslongRequired<=50000

Target balance after auto-refill. Must be at least 1,000 cents greater than threshold_cents and no more than 50,000.

threshold_centslongRequired>=500

Balance threshold in cents that triggers auto-refill. Must be at least 500.

Response

Automatic refill configuration
dataobject
Result of enabling, updating, or disabling automatic refills.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
500
Internal Server Error