Skip to main content

Update a AutoRechargePreference

PUT 
/payment/auto_recharge_pref

Updates AutoRechargePreference with the values of the parameters passed. Any parameters not included in the request will be left unchanged.

Request

Body

required

Updated AutoRechargePreference object

    threshold_amount stringrequired

    US dollars and cents

    recharge_amount stringrequired

    US dollars and cents. Must be a minimum of $10.00

    enabled booleanrequired

    Indicates if auto recharge is enabled or not

Responses

200: AutoRechargePreference updated response

400: Bad request

401: Unauthorized

404: Record not found

Request samples


curl -L -X PUT 'https://api.telnyx.com/payment/auto_recharge_pref' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"threshold_amount": "0.00",
"recharge_amount": "10.00",
"enabled": false
}'

Response samples


{
"id": "string",
"threshold_amount": "0.00",
"recharge_amount": "10.00",
"enabled": false
}