PATCH https://api.cryptohopper.com/v1/subscription/{subscription_id}

Turns off auto-renewal of a subscription and cancels the recurring payment at the payment provider. The subscription stays active until its end date.

OAuth scope: read manage About scopes

Takes no request body. If cancelling at the payment provider fails, the endpoint returns HTTP 200 with the message "There was an error trying to cancel the subscription, please try again."

Example request

curl -X PATCH "https://api.cryptohopper.com/v1/subscription/SUBSCRIPTION_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Path parameters

NameTypeRequiredDescription
subscription_id string Required ID of the subscription.

Response

Example response (illustrative values)

{
    "data": "Subscription has been stopped, and will be deactivated after the end of the subscription."
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.