cURL
curl --request PATCH \ --url https://api.fungies.io/v0/subscriptions/{subscriptionIdOrNumber}/cancel \ --header 'Content-Type: application/json' \ --header 'x-fngs-public-key: <api-key>' \ --header 'x-fngs-secret-key: <api-key>' \ --data ' { "cancelAtIntervalEnd": false, "cancelOption": "immediately" } '
{ "status": "<string>", "data": { "success": true } }
Cancel a Subscription with specified options for timing and refunds.
Subscription ID or order number
PATCH /v0/subscriptions/:subscriptionIdOrNumber/cancel Request body
Whether to cancel the Subscription at the end of the current billing period: - false: Cancel immediately (default) - true: Cancel at the end of current billing period
immediately
endInterval
PATCH /v0/subscriptions/:subscriptionIdOrNumber/cancel Positive response
"success"
Show child attributes