> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/json-rpc-api-reference/json-rpc-api-6.0/api-responses/subscription-churn-prevention-campaigns.md).

# Subscription churn prevention campaigns

The object below is returned directly or within a successful response from the following API request:

* [Retrieve eligible churn campaigns](https://docs.2checkout.com/json-rpc-api-reference/json-rpc-api-6.0/api-requests/subscription-churn-prevention-campaigns/retrieve-eligible-churn-campaigns.md)

## Response parameters

<table><thead><tr><th width="394.2666015625">Parameter</th><th>Type / Description</th></tr></thead><tbody><tr><td><code>AvailableCancellationReasons</code></td><td><strong>Object with dynamic properties</strong> (as reasons number can change in time)</td></tr><tr><td><code>AvailableCancellationReasons.REASON_CODE_1</code></td><td><strong>Required (string)</strong></td></tr><tr><td><code>AvailableCancellationReasons.REASON_CODE_3</code></td><td><strong>Required (string)</strong></td></tr><tr><td><code>AvailableCancellationReasons.REASON_CODE_5</code></td><td><strong>Required (string)</strong></td></tr><tr><td><code>AvailableCancellationReasons.REASON_CODE_6</code></td><td><strong>Required (string)</strong></td></tr><tr><td><code>AvailableCancellationReasons.REASON_CODE_7</code></td><td><strong>Required (string)</strong></td></tr><tr><td><code>AvailableCancellationReasons.REASON_CODE_9</code></td><td><strong>Required (string)</strong></td></tr><tr><td><code>Campaigns</code></td><td><strong>Array of objects</strong></td></tr><tr><td><code>Campaigns.Code</code></td><td><p><strong>String</strong> </p><p>Unique, system-generated campaign identifier.</p></td></tr><tr><td><code>Campaigns.Name</code></td><td><p><strong>String</strong></p><p>Name of the campaign.</p></td></tr><tr><td><code>Campaigns.DefaultMessage</code></td><td><p><strong>String</strong></p><p>Default message of the campaign displayed to shoppers.</p></td></tr><tr><td><code>Campaigns.CancellationReasonRequired</code></td><td><p><strong>Boolean</strong></p><p>Indicates if collecting feedback from customers is required.</p></td></tr><tr><td><code>Campaigns.OfferPause</code></td><td><p><strong>Boolean</strong></p><p>Indicates if shoppers are allowed to pause the subscription.</p></td></tr><tr><td><code>Campaigns.OfferDiscount</code></td><td><strong>Object</strong> containing</td></tr><tr><td><code>Campaigns.OfferDiscount.Message</code> </td><td><p><strong>String</strong> </p><p>Discount message.</p></td></tr><tr><td><code>Campaigns.OfferDiscount.Discount</code></td><td><p><strong>String</strong></p><p>Discount value as a decimal number.</p></td></tr><tr><td><code>Campaigns.OfferDiscount.BillingCycles</code></td><td><p><strong>String</strong></p><p>Number of billing cycles.</p></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.2checkout.com/json-rpc-api-reference/json-rpc-api-6.0/api-responses/subscription-churn-prevention-campaigns.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
