{
    "componentChunkName": "component---src-templates-post-js",
    "path": "/en/2.0.0/webhook/cancel-subscription-webhook/",
    "result": {"data":{"markdownRemark":{"htmlAst":{"type":"root","children":[{"type":"element","tagName":"h2","properties":{"id":"subscription-cancellation-event-version-swapperversion-swapper","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#subscription-cancellation-event-version-swapperversion-swapper","ariaLabel":"subscription cancellation event version swapperversion swapper permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Subscription cancellation event "},{"type":"element","tagName":"version-swapper","properties":{},"children":[]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"text","value":"You will receive "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"general cancellation data"}]},{"type":"text","value":", such as information on the subscriber, the date of cancellation, and more. Thus, every time someone cancels the subscription to your product, you will receive this information."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tab","properties":{},"children":[{"type":"text","value":"\n  "},{"type":"element","tagName":"tab-item","properties":{"title":"Creator","src":"cancel-subscription-webhook-v2"},"children":[{"type":"text","value":"\n  "},{"type":"element","tagName":"tab-description","properties":{},"children":[{"type":"text","value":"\n    It is the person with an account that has at least one product registered within Hotmart.\n  "}]},{"type":"text","value":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"element","tagName":"thead","properties":{},"children":[{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Parameter"}]},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Description"}]}]}]},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"hottok"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Each account has a unique token. It guarantees Hotmart is making the request and aims to prevent fraud and attacks. We recommend validating this field before processing the data received. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"This field will be sent with the name "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"X-HOTMART-HOTTOK"}]},{"type":"text","value":" in the HTTP header of all requests and we recommend validating it before processing the received data."}]},{"type":"text","value":" If you need to change this token, please contact our support team."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"id"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Shows the unique identification code of the received event."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"long"},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"creation_date"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Event creation date. This date is in milliseconds, starting from  1970-01-01 00:00:00 UTC."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"integer"},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"event"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Name of the received event, which in this case will be "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"SUBSCRIPTION_CANCELLATION"}]},{"type":"text","value":"."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"integer"},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"version"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Version of the received event. This version is chosen at the moment of creating a setting in Webhook. In this case, the value will always be "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"2.0.0"}]},{"type":"text","value":"."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"object"},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"data"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Data related to the subscription cancellation event."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"double"},"children":[{"type":"text","value":"data."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"actual_recurrence_value"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Amount paid by the buyer in the last processed payment."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"long"},"children":[{"type":"text","value":"data."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"cancellation_date"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Subscription cancellation date in milliseconds, starting from 1970-01-01 00:00:00 UTC."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"long"},"children":[{"type":"text","value":"data."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"date_next_charge"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Next payment attempt date, if this subscription is reactivated. No charge will be made in the period after cancellation, only if there is reactivation. This date is in milliseconds, starting from 1970-01-01 00:00:00 UTC. It can be used to terminate buyer access to a subscription product. For example, if the customer purchased a subscription product that is billed every 10th of the month. Thus, if on the 20th of this month the customer decides to cancel the subscription, the event will be sent on the 20th, however, the customer will have access until the 10th of the following month."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"object"},"children":[{"type":"text","value":"data."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"product"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Data of the subscription product that was canceled."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.product."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"name"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Name of the subscription product that was canceled."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"integer"},"children":[{"type":"text","value":"data.product."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"id"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Unique identification code of the subscription product that was canceled."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"object"},"children":[{"type":"text","value":"data."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"subscriber"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Subscriber data."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.subscriber."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"code"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"A subscriber's exclusive code. This field is used by external systems to identify a subscriber of a subscription. A single buyer can have 2 different subscriber codes if they subscribe to two different products.."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.subscriber."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"name"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Subscriber's full name."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.subscriber."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"email"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Subscriber's email."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"object"},"children":[{"type":"text","value":"data.subscriber."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"phone"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Subscriber phones."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.subscriber.phone."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"dddPhone"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Landline area code."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.subscriber.phone."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"phone"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Landline phone number."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.subscriber.phone."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"dddCell"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Mobile area code."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.subscriber.phone."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"cell"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Mobile phone number."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"object"},"children":[{"type":"text","value":"data."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"subscription"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Subscription data."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"integer"},"children":[{"type":"text","value":"data.subscription."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"id"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Unique identification code of the Hotmart subscription."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"object"},"children":[{"type":"text","value":"data.subscription."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"plan"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Subscription plan data."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"string"},"children":[{"type":"text","value":"data.subscription.plan."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"name"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Name of the subscription plan."}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"table-param","properties":{"type":"integer"},"children":[{"type":"text","value":"data.subscription.plan."},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"id"}]}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Unique identification code of the subscription plan."}]}]}]}]},{"type":"text","value":"\n  "}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Format to send data: JSON"}]}]}],"data":{"quirksMode":false}},"frontmatter":{"description":"Hotmart's notification tool can be integrated with any system to automate control of your products.","title":"Subscription Cancellation Event ","tags":["cancellation","subscription cancellation"],"category":"Webhook","categoryDescription":"Hotmart's notification tool can be integrated with any system to automate control of your products.","api":null,"buttonLink":"urlWebhook","buttonText":"Create a setting","buttonIcon":"external"},"fields":{"langKey":"en","verKey":["/2.0.0"],"slug":"/en/2.0.0/webhook/cancel-subscription-webhook/"}},"allMarkdownRemark":{"distinct":["en","es","pt-BR"]}},"pageContext":{"category":"webhook","slug":"/en/2.0.0/webhook/cancel-subscription-webhook/","pathNoLang":"/2.0.0/webhook/cancel-subscription-webhook/"}},
    "staticQueryHashes": ["1180253839","1927663127","2095688679","3367957584","3579948671","3996864857","4162568218","4285555676"]}