# Recurring Payments - REST API Endpoint

 [Recurring Payments](https://easydigitaldownloads.com/downloads/recurring-payments/) extends the [existing RESTful API](https://easydigitaldownloads.com/docs/edd-api-reference/) built into Easy Digital Downloads. It can be accessed at

```
https://example.com/edd-api/subscriptions/?key=YOUR_API_KEY&amp;token=YOUR_API_TOKEN
```

 **Note**: make sure to replace *example.com* with your own address and the [key and token values](https://easydigitaldownloads.com/docs/edd-rest-api-authentication/) with your own.

 The above example will return a list of all existing subscriptions in the store.

### Input

 The Recurring Payments REST API accepts 3 options besides key and token: `customer`, `number`, and `paged`.

#### Customer

 The input for a customer can either be an integer representing a customer\_id or an email address. The resulting URL will look similar to this:

```
https://example.com/edd-api/subscriptions/?key=YOUR_API_KEY&amp;token=YOUR_API_TOKEN&amp;customer=2
```

 or

```
https://example.com/edd-api/subscriptions/?key=YOUR_API_KEY&amp;token=YOUR_API_TOKEN&amp;customer=user@example.com
```

#### Number

 The number option accepts an integer and returns that many results. An example would look like this:

```
https://example.com/edd-api/subscriptions/?key=YOUR_API_KEY&amp;token=YOUR_API_TOKEN&amp;number=5
```

####  Paged

 The paged option allows you to choose a slice of a larger number. For example, if you have 100 entries, and you use number=10 you could pass paged=2 and you could get rows 11-20. That would look like this:

```
https://example.com/edd-api/subscriptions/?key=YOUR_API_KEY&amp;token=YOUR_API_TOKEN&amp;number=10&amp;paged=2
```

### Output

 The output for each subscription contains all information about that subscription as well as about the customer and each renewal (child) payment. Additionally, there&#039;s a value indicating the time spent getting the information for all results. Example:

```
{
    &quot;subscriptions&quot;: [
        {
            &quot;info&quot;: {
                &quot;u0000EDD_Subscriptionu0000subs_db&quot;: {
                    &quot;table_name&quot;: &quot;wp_edd_subscriptions&quot;,
                    &quot;version&quot;: &quot;1.0&quot;,
                    &quot;primary_key&quot;: &quot;id&quot;
                },
                &quot;id&quot;: &quot;1&quot;,
                &quot;customer_id&quot;: &quot;2&quot;,
                &quot;period&quot;: &quot;month&quot;,
                &quot;initial_amount&quot;: &quot;50.00&quot;,
                &quot;recurring_amount&quot;: &quot;50.00&quot;,
                &quot;bill_times&quot;: &quot;0&quot;,
                &quot;parent_payment_id&quot;: &quot;87&quot;,
                &quot;product_id&quot;: &quot;85&quot;,
                &quot;created&quot;: &quot;2016-03-15 15:36:30&quot;,
                &quot;expiration&quot;: &quot;2016-04-15 23:59:59&quot;,
                &quot;status&quot;: &quot;active&quot;,
                &quot;profile_id&quot;: &quot;paypal-363e3cc178dab152bb59b958024bce75&quot;,
                &quot;gateway&quot;: &quot;paypal&quot;,
                &quot;customer&quot;: {
                    &quot;id&quot;: &quot;2&quot;,
                    &quot;purchase_count&quot;: &quot;2&quot;,
                    &quot;purchase_value&quot;: &quot;20.000000&quot;,
                    &quot;email&quot;: &quot;support@easydigitaldownloads.com&quot;,
                    &quot;name&quot;: &quot;Jane Doe&quot;,
                    &quot;date_created&quot;: &quot;2016-03-07 22:33:44&quot;,
                    &quot;payment_ids&quot;: &quot;16&quot;,
                    &quot;user_id&quot;: &quot;3&quot;,
                    &quot;notes&quot;: [

                    ]
                }
            },
            &quot;payments&quot;: [
                {
                    &quot;id&quot;: 106,
                    &quot;amount&quot;: 10.36,
                    &quot;date&quot;: &quot;March 21, 2016&quot;,
                    &quot;status&quot;: &quot;Renewal&quot;
                },
                {
                    &quot;id&quot;: 105,
                    &quot;amount&quot;: 10,
                    &quot;date&quot;: &quot;March 21, 2016&quot;,
                    &quot;status&quot;: &quot;Renewal&quot;
                },
                {
                    &quot;id&quot;: 104,
                    &quot;amount&quot;: 10,
                    &quot;date&quot;: &quot;March 21, 2016&quot;,
                    &quot;status&quot;: &quot;Renewal&quot;
                }
            ]
        }
    ],
    &quot;request_speed&quot;: 0.076335906982422
}
```