Subscriptions
Preview addon cancellation
POST
Permission: billing.manage
apiTokenheader
AuthorizationBearer <token>An API token (mwp_…) from Settings → API tokens. Only accepted on this host.
sub_id*Sub IdFormat
uuidaddon_record_id*Addon Record IdFormat
uuidapplication/json- body
quantity*QuantityNumber of units to cancel
Range
1 <= valueSuccessful Response
application/json- response
success*booleandata*The result; on an error, details such as code and permission.
message*stringstatus_code*integertimestamp*stringFormat
date-timemeta?|nullcurl -X POST "https://example.com/v1/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/addons/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel/preview" \ -H "Content-Type: application/json" \ -d '{ "quantity": 1 }'{ "message": "string", "status_code": 0, "timestamp": "2019-08-24T14:15:22Z", "meta": {}, "success": true, "data": { "addon_name": "string", "current_quantity": 0, "cancel_quantity": 0, "remaining_quantity": 0, "resource_type": "none", "resource_removed": 0, "capacity_after_cancel": 0, "current_usage": 0, "can_cancel": true, "reason": null }}