Subscription Cancellation with Cancellation Reason via API

Subscription Cancellation with Cancellation Reason via API

I tried cancelling subscription using this and its working fine

curl --request POST \
  --url https://www.zohoapis.com/billing/v1/subscriptions/5482717000000142015/cancel?cancel_at_end=false \
  --header 'Authorization: Zoho-oauthtoken 1000.bc3af671b45fexxxxxxxxxxxxxxxxxx3e03eab90ed' \
  --header 'X-com-zoho-subscriptions-organizationid: yyyyyyyy'

Now i want to add "cancel_reason" value,
i tried to pass it as part of the URL parameters and put as json object but both only cancelling the subscription but the cancel reason not updated.

Json:
curl --request POST \
  --url https://www.zohoapis.com/billing/v1/subscriptions/5482717000000142015/cancel?cancel_at_end=false \
  --header 'Authorization: Zoho-oauthtoken 1000.bc3af671b45fe75a6xxxxxxxxxxxxxxxxxxxxxxxxxxxe3e03eab90ed' \
  --header 'X-com-zoho-subscriptions-organizationid: yyyyy' \
  --header 'Content-Type: application/json' \
  --data '{
    "cancel_reason": "cancellation reason ZZZZZ"
}'


URL param:
curl --request POST \
  --url "https://www.zohoapis.com/billing/v1/subscriptions/5482717000000142015/cancel?cancel_at_end=false&cancel_reason=ZZZZZ" \
  --header 'Authorization: Zoho-oauthtoken 1000.bc3af671b45fe75a6419xxxxxxxxxxxxxxxxxxxxxxxxx3e03eab90ed' \
  --header 'X-com-zoho-subscriptions-organizationid: yyyyyyyyyy'


Thank you.
    • Sticky Posts

    • Zoho Billing will discontinue support for older browser versions soon

      Hello users, Starting from May 15, 2024, Zoho Billing will no longer support the following browser versions: Browsers Version Restrictions Firefox Browser Versions older than 100 Google Chrome Versions older than 100 Microsoft Edge Versions older than
    • Introducing Developer Space in Zoho Subscriptions

      Hello devs! At Zoho Subscriptions, we're constantly looking for ways to empower the developer community. Our goal is to provide you with the tools you need to integrate Zoho Subscriptions with your other platforms, and we also want to make it easy to