> 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/soap-api-reference/soap-api-6.0/api-responses/subscription-history.md).

# Subscription history

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

<a href="https://docs.2checkout.com/soap-api-reference/soap-api-6.0/api-requests/subscription-history/retrieve-a-subscriptions-order-history.md" class="button primary" data-icon="folder-check">Retrieve subscription history</a>

## Subscription history object

<table><thead><tr><th width="214">Parameter</th><th>Type / Description</th></tr></thead><tbody><tr><td><code>ReferenceNo</code></td><td><strong>String</strong><br>Unique, system-generated order reference number.</td></tr><tr><td><code>Type</code></td><td><p><strong>String</strong></p><p>Purchase type:</p><ul><li>SALE</li><li>RENEWAL</li><li>UPGRADE</li></ul></td></tr><tr><td><code>SubscriptionReference</code></td><td><strong>String</strong><br>Unique, system-generated subscription reference.</td></tr><tr><td><code>StartDate</code></td><td><strong>String</strong><br>Subscription start date (YYYY-MM-DD) - <code>StartDate</code> is mandatory when importing subscription data. If you changed the time zone for the 2Checkout API by editing system settings under Account settings, then the <code>StartDate</code> you provide must be in accordance with your custom configuration.</td></tr><tr><td><code>ExpirationDate</code></td><td><strong>String</strong><br>Subscription expiration date(YYYY-MM-DD) - <code>ExpirationDate</code> is mandatory when importing subscription data. If you changed the time zone for the 2Checkout API by editing system settings under Account settings, then the <code>ExpirationDate</code> you provide must be in accordance with your custom configuration.</td></tr><tr><td><code>Lifetime</code></td><td><p><strong>Boolean</strong><br>Possible values:</p><ul><li>True – the subscription is evergreen</li><li>False – the subscription has a recurring billing cycle less than or equal to three years.</li></ul></td></tr><tr><td><code>SKU</code></td><td><strong>String</strong><br>Stock keeping unit you defined.</td></tr><tr><td><code>DeliveryInfo</code></td><td><strong>Object</strong><br>Object with information about the delivery made to the customer - structure described below</td></tr><tr><td><code>PartnerCode</code></td><td><p><strong>String</strong></p><p>Possible values:</p><ul><li>Empty = ecommerce order</li><li>Partner Code</li></ul></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/soap-api-reference/soap-api-6.0/api-responses/subscription-history.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.
