Update Prepaid Subscription Configuration
Built with APIMatic
Updates a subscription's prepaid configuration.
The username is a Maxio Chargify API key and the password is x. Basic authentication works only with the US and EU environments, which connect to chargify.com directly. The Maxio API Gateway environment does not accept Basic authentication.
In: header
The Chargify id of the subscription.
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST \ --url 'https://subdomain.chargify.com/subscriptions/1/prepaid_configurations.json' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ --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 }}'