> 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-requests/next-renewal-price/retrieve-next-renewal-price.md).

# Retrieve next renewal price

Use the **getNextRenewalPrice** method to retrieve information on the costs customers incur on the next renewal for a subscription, per the recurring billing configuration.

For a subscription that has addons, the method returns the combined price of the main subscription and its addons, together with a price breakdown for each of them. By default, 2Checkout includes all active addon subscriptions that have automatic renewal enabled. Use AddonReferences to price only specific addons. The price breakdown is available when the add-on renewal pricing feature is enabled for your account.

## Request parameters

| Parameters              | Type / Description                                                                                                                                                                                                                   |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `sessionID`             | **Required (string).** Session identifier, the output of the **Login** method. Include **sessionID** into all your requests. 2Checkout throws an exception if the values are incorrect. The **sessionID** expires in **10 minutes**. |
| `SubscriptionReference` | **Required (string).** Unique, system-generated subscription identifier.                                                                                                                                                             |
| `Currency`              | **Required (string).** ISO 4217 code.                                                                                                                                                                                                |
| `AddonReferences`       | <p><strong>Optional (array of strings)</strong></p><p>The references of the addon subscriptions to include in the price. When you omit it, 2Checkout includes all active addon subscriptions with automatic renewal enabled.</p>     |

### Request sample

```php
<?php

$vendorCode = 'YOUR_VENDOR_CODE';
$apiKey     = 'YOUR_API_KEY';
$date       = gmdate('Y-m-d H:i:s');
$hash       = hash_hmac(
    'md5',
    strlen($vendorCode) . $vendorCode . strlen($date) . $date,
    $apiKey
);

try {
    $client = new SoapClient(
        'https://api.2checkout.com/soap/6.0?wsdl',
        ['cache_wsdl' => WSDL_CACHE_NONE]
    );

    $sessionID = $client->login($vendorCode, $date, $hash);

    $subscriptionReference = 'YOUR_SUBSCRIPTION_REFERENCE';
    $Currency = 'eur';
    $AddonReferences = array('YOUR_ADDON_SUBSCRIPTION_REFERENCE'); //optional

    $result = $client->getNextRenewalPrice(
        $sessionID,
        $subscriptionReference,
        $Currency,
        $AddonReferences
    );
    var_dump($result);

} catch (SoapFault $e) {
    echo 'SoapFault: ' . $e->getMessage() . PHP_EOL;
}

```

## Response parameters

| Parameters                                                                                                                    | Type / Description |
| ----------------------------------------------------------------------------------------------------------------------------- | ------------------ |
| [Next renewal price](https://verifone.cloud/docs/2checkout/API-Integration/SOAP_API_6.0/API-Responses/011Next_renewal_price/) | Object             |

## Response sample

```php
{
  "NetPrice": 209.14,
  "NetCurrency": "USD",
  "FinalPrice": 209.14,
  "FinalCurrency": "USD",
  "PriceBreakdown": {
    "SubscriptionReference": "OFJMJ6PIC4",
    "NetPrice": 100,
    "NetCurrency": "USD",
    "FinalPrice": 100,
    "FinalCurrency": "USD",
    "DiscountValue": 0,
    "AppliedDiscountDetails": null,
    "Addons": [
      {
        "SubscriptionReference": "TLWHMXTZ5B",
        "NetPrice": 109.14,
        "NetCurrency": "USD",
        "FinalPrice": 109.14,
        "FinalCurrency": "USD",
        "DiscountValue": 0,
        "AppliedDiscountDetails": null
      }
    ]
  }
}

```


---

# 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-requests/next-renewal-price/retrieve-next-renewal-price.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.
