younifyd
Menu

List Account Subscriptions

List an account's subscriptions

GET/accounts/{account_id}/subscriptions

Use it in a workflow

  1. Add a step and choose the Recurly connector.
  2. Pick the List Account Subscriptions action (under subscription).
  3. Fill in the fields below, then reference the result from later steps as {{listAccountSubscriptions.response.data}}.

Request

Path parameters

account_idstringrequired

Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.

Query parameters

idsarray<string>

Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`. **Important notes:** * The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc) * Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request. * Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself.

limitinteger

Limit number of records 1-200.

Default 20

orderstring

Sort order.

One ofascdescDefault "desc"

sortstring

Sort field. You *really* only want to sort by `updated_at` in ascending order. In descending order updated records will move behind the cursor and could prevent some records from being returned.

One ofcreated_atupdated_atDefault "created_at"

begin_timestring (date-time)

Inclusively filter by begin_time when `sort=created_at` or `sort=updated_at`. **Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.

end_timestring (date-time)

Inclusively filter by end_time when `sort=created_at` or `sort=updated_at`. **Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.

statestring

Filter by state. - When `state=active`, `state=canceled`, `state=expired`, or `state=future`, subscriptions with states that match the query and only those subscriptions will be returned. - When `state=in_trial`, only subscriptions that have a trial_started_at date earlier than now and a trial_ends_at date later than now will be returned. - When `state=live`, only subscriptions that are in an active, canceled, or future state or are in trial will be returned.

One ofactivecanceledexpiredfuturein_triallive

Response

Returns 200 with an object. Read it in later steps with {{listAccountSubscriptions.response.data.<field>}}.

objectstring

Will always be List.

has_moreboolean

Indicates there are more results on subsequent pages.

nextstring

Path to subsequent page of results.

dataarray<object>
idstring
objectstring
uuidstring

The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

accountobject10 fields
planobject4 fields

Just the important parts.

statestring

One ofactivecanceledexpiredfailedfuturepaused

shippingobject4 fields
coupon_redemptionsarray<object>7 fields

Returns subscription level coupon redemptions that are tied to this subscription.

pending_changeobject21 fields
current_period_started_atstring (date-time)
current_period_ends_atstring (date-time)
current_term_started_atstring (date-time)

The start date of the term when the first billing period starts. The subscription term is the length of time that a customer will be committed to a subscription. A term can span multiple billing periods.

current_term_ends_atstring (date-time)

When the term ends. This is calculated by a plan's interval and `total_billing_cycles` in a term. Subscription changes with a `timeframe=renewal` will be applied on this date.

trial_started_atstring (date-time)
trial_ends_atstring (date-time)
remaining_billing_cyclesinteger

The remaining billing cycles in the current term.

total_billing_cyclesinteger

The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.

renewal_billing_cyclesinteger

If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

auto_renewboolean

Whether the subscription renews at the end of its term.

Default true

ramp_intervalsarray<object>5 fields

The ramp intervals representing the pricing schedule for the subscription.

paused_atstring (date-time)

Null unless subscription is paused or will pause at the end of the current billing period.

remaining_pause_cyclesinteger

Null unless subscription is paused or will pause at the end of the current billing period.

resume_atstring (date-time)

The date the subscription billing resumes following a pause. Null unless the subscription is paused or scheduled to be paused.

currencystring

3-letter ISO 4217 currency code.

revenue_schedule_typestring

One ofat_range_endat_range_startevenlynever

unit_amountnumber (float)
tax_inclusiveboolean

Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to utilize this flag.

quantityinteger
add_onsarray<object>18 fields
add_ons_totalnumber (float)
subtotalnumber (float)
taxnumber (float)

Only for merchants using Recurly's In-The-Box taxes.

tax_infoobject4 fields

Only for merchants using Recurly's In-The-Box taxes.

price_segment_idstring

The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.

totalnumber (float)
collection_methodstring

One ofautomaticmanualDefault "automatic"

po_numberstring

For manual invoicing, this identifies the PO number associated with the subscription.

net_termsinteger

Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For `manual` collection method, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms) or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.

Default 0

net_terms_typestring

Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month.

One ofneteomDefault "net"

credit_application_policyobject2 fields

Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied.

json
{
  "object": "string",
  "has_more": false,
  "next": "string",
  "data": [
    {
      "id": "string",
      "object": "string",
      "uuid": "string",
      "account": {
        "id": "string",
        "object": "string",
        "code": "string",
        "email": "name@example.com",
        "first_name": "string",
        "last_name": "string",
        "company": "string",
        "parent_account_id": "string",
        "bill_to": "string",
        "dunning_campaign_id": "string"
      },
      "plan": {
        "id": "string",
        "object": "string",
        "code": "string",
        "name": "string"
      },
      "state": "active",
      "shipping": {
        "object": "string",
        "address": {
          "id": "string",
          "object": "string",
          "account_id": "string",
          "nickname": "string",
          "first_name": "string",
          "last_name": "string",
          "company": "string",
          "email": "string",
          "vat_number": "string",
          "phone": "string",
          "street1": "string",
          "street2": "string"
        },
        "method": {
          "id": "string",
          "object": "string",
          "code": "string",
          "name": "string"
        },
        "amount": 0
      },
      "coupon_redemptions": [
        {
          "id": "string",
          "object": "string",
          "coupon": {
            "id": "string",
            "object": "string",
            "code": "string",
            "name": "string",
            "state": "expired",
            "discount": {
              "type": null,
              "percent": null,
              "currencies": null,
              "trial": null
            },
            "coupon_type": "bulk",
            "expired_at": "2025-01-01T00:00:00Z"
          },
          "state": "active",
          "remaining_duration": {
            "type": "forever",
            "expires_at": "2025-01-01T00:00:00Z",
            "redemptions_remaining": 0
          },
          "discounted": 0,
          "created_at": "2025-01-01T00:00:00Z"
        }
      ],
      "pending_change": {
        "id": "string",
        "object": "string",
        "subscription_id": "string",
        "plan": {
          "id": "string",
          "object": "string",
          "code": "string",
          "name": "string"
        },
        "add_ons": [
          {
            "id": "string",
            "object": "string",
            "subscription_id": "string",
            "add_on": {
              "id": null,
              "object": null,
              "code": null,
              "name": null,
              "add_on_type": null,
              "usage_type": null,
              "usage_percentage": null,
              "measured_unit_id": null,
              "item_id": null,
              "external_sku": null,
              "accounting_code": null
            },
            "add_on_source": "plan_add_on",
            "quantity": 0,
            "unit_amount": 0,
            "unit_amount_decimal": "string",
            "revenue_schedule_type": "at_range_end",
            "tier_type": "flat",
            "usage_calculation_type": "cumulative",
            "usage_timeframe": "billing_period"
          }
        ],
        "unit_amount": 0,
        "tax_inclusive": false,
        "quantity": 0,
        "shipping": {
          "object": "string",
          "address": {
            "id": "string",
            "object": "string",
            "account_id": "string",
            "nickname": "string",
            "first_name": "string",
            "last_name": "string",
            "company": "string",
            "email": "string",
            "vat_number": "string",
            "phone": "string",
            "street1": "string",
            "street2": "string"
          },
          "method": {
            "id": "string",
            "object": "string",
            "code": "string",
            "name": "string"
          },
          "amount": 0
        },
        "activate_at": "2025-01-01T00:00:00Z",
        "activated": false,
        "revenue_schedule_type": "at_range_end"
      },
      "current_period_started_at": "2025-01-01T00:00:00Z",
      "current_period_ends_at": "2025-01-01T00:00:00Z",
      "current_term_started_at": "2025-01-01T00:00:00Z"
    }
  ]
}

Need more? See the Recurly guide for connection setup and behaviour shared by every action.