Skip to main content
GET
/
subscriptions
cURL
curl --request GET \
  --url https://api.juo.io/admin/v1/subscriptions \
  --header 'X-Juo-Admin-Api-Key: <api-key>' \
  --header 'X-Tenant-ID: <x-tenant-id>'
{
  "resource": "list",
  "hasNextPage": true,
  "hasPrevPage": true,
  "endCursor": "<unknown>",
  "startCursor": "<unknown>",
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "resource": "subscription",
      "serial": "<string>",
      "status": "active",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "canceledAt": "<unknown>",
      "customer": "<string>",
      "nextBillingDate": "<unknown>",
      "currentCycle": 1,
      "items": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "resource": "subscription-item",
          "title": "<string>",
          "subtitle": "<unknown>",
          "quantity": 2,
          "totalPrice": 1,
          "variant": "<string>",
          "recurringCycleLimit": "<unknown>",
          "canceledAt": "<unknown>"
        }
      ],
      "discounts": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "resource": "subscription-discount",
          "title": "<unknown>",
          "target": {
            "type": "shipping"
          },
          "value": {
            "amount": 123,
            "type": "fixed-amount",
            "appliesOnEachItem": true
          },
          "recurringCycleLimit": "<unknown>"
        }
      ],
      "paymentMethod": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "currencyCode": "<string>",
      "deliveryAddress": "<unknown>",
      "deliveryMethod": "<unknown>",
      "deliveryPrice": 1
    }
  ]
}

Authorizations

X-Juo-Admin-Api-Key
string
header
required

Headers

X-Tenant-ID
string
required

Unique identifier of the tenant in the system (usually a store identifier)

Query Parameters

query
string

The search query string. See search query language for information how to build the search query. Supported fields are listed here.

limit
integer
default:20

See pagination for more details on how to paginate the results.

Required range: 1 <= x <= 100
after
string

See pagination for more details on how to paginate the results.

Minimum string length: 1
before
string

See pagination for more details on how to paginate the results.

Minimum string length: 1
sort
string
default:createdAt:asc

See sorting for more details on how to sort the results.

expand
enum<string>[]
Available options:
customer
includeCanceledItems
boolean
default:false

Response

200 - application/json

Default Response

resource
enum<string>
required
Available options:
list
hasNextPage
boolean
required
hasPrevPage
boolean
required
endCursor
null | string
required
startCursor
null | string
required
data
Subscription · object[]
required