Skip to main content
GET

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer

Page number.

Example:

1

per_page
integer

Number of records per page.

Example:

20

currency
string

Filter the results by currency, expressed as an ISO 4217 code.

Example:

"EUR"

external_customer_id
string

The customer external unique identifier (provided by your own application)

Example:

"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"

plan_code
string

The unique code representing the plan to be attached to the customer. This code must correspond to the code property of one of the active plans.

Example:

"premium"

status[]
enum<string>[]

If the field is not defined, Lago will return only active subscriptions. However, if you wish to fetch subscriptions by different status you can define them in a status[] query param. Available filter values: pending, canceled, terminated, active.

Available options:
active,
canceled,
pending,
terminated
Example:
billing_entity_codes[]
string[]

Filter subscriptions by billing entity codes.

Example:

Response

List of subscriptions

subscriptions
object[]
required
meta
object
required