Skip to main content

List subscriptions

GET 

/clients/subscriptions

JSON-RPC

clients.subscriptions.search

Status vs Condition

Subscription status represents current state of the subscription. It is calculated according to package condition, start_dt and stop_dt of the package, and status of the last period.

Possible values:

  • active – subscription is activated and there is an active period at the current moment.
  • pending – subscription is not activated or doesn't have an active period at the current moment, but still not deactivated.
  • archive – subscription is deactivated, stop_dt of the package has passed or renew_due is already in the past.

Request​

Bodyrequired

    limitinteger

    Number of rows to return (for pagination).

    Default value: 20
    offsetinteger

    Number of rows to skip (for pagination).

    Default value: 0
    orderstring[]

    List of columns to order results by.

    Possible values: [clients_name, -clients_name, id, -id, packages_name, -packages_name, periods_start_dt, -periods_start_dt, start_dt, -start_dt, status, -status]

    Default value: []
    qstring

    Quick search (wildcards allowed).

    idinteger[]

    Subscription ID.

    clients_idinteger[]

    Client ID.

    accounts_idinteger[]

    Account ID.

    packages_idinteger[]

    Package ID.

    companies_idinteger[]

    Partition ID of the client.

    owner_users_idinteger

    Owner user ID of the client.

    statusstring[]

    Real status at the current moment.

    Possible values: [pending, active, archive]

    conditionstring

    Subscription condition. Check method description for more details on the difference between condition and status.

    Possible values: [new, activated, deactivated]

Responses​

List of subscription objects.

Schema
  • Array [
  • object
  • ]

Authorization: X-Api-Key

name: X-Api-Keytype: apiKeyin: headerdescription: Token for API access
curl -L 'https://docs.jerasoft.net/clients/subscriptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Api-Key: <X-Api-Key>'
Request Collapse all
Auth
Body required
{
  "limit": 20,
  "offset": 0,
  "order": [
    "clients_name"
  ],
  "q": "string",
  "id": [
    0
  ],
  "clients_id": [
    0
  ],
  "accounts_id": [
    0
  ],
  "packages_id": [
    0
  ],
  "companies_id": [
    0
  ],
  "owner_users_id": 0,
  "status": [
    "pending"
  ],
  "condition": "new"
}