Use this endpoint to update a subscription's prepaid configuration.
POST /subscriptions/{subscription_id}/prepaid_configurations.json
This endpoint requires BasicAuth
OK
application/json
{
"prepaid_configuration": {
"id": 55,
"initial_funding_amount_in_cents": 2500,
"auto_replenish": true,
"replenish_to_amount_in_cents": 50000,
"replenish_threshold_amount_in_cents": 10000
}
}
curl -X POST \
--url 'https://subdomain.chargify.com/subscriptions/222/prepaid_configurations.json' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{
"prepaid_configuration": {
"initial_funding_amount_in_cents": 50000,
"replenish_to_amount_in_cents": 50000,
"auto_replenish": true,
"replenish_threshold_amount_in_cents": 10000
}
}'