Updates the expiration date for a prepaid usage allocation. This expiration date can be changed after the fact to allow for extending or shortening the allocation's active window.
In order to change a prepaid usage allocation's expiration date, a PUT call must be made to the allocation's endpoint with a new expiration date.
A few limitations exist when changing an allocation's expiration date:
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.
The Advanced Billing id of the component
The Advanced Billing id of the allocation
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
curl -X PUT \ --url 'https://subdomain.chargify.com/subscriptions/1/components/1/allocations/1.json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ --data-raw '{ "allocation": { "expires_at": "2024-01-31T23:59:59Z" }}'