Skip to main content
GET
/
v1
/
subscriptions
/
{id}
/
activities
Get subscription activities
curl --request GET \
  --url https://external.pleo.io/v1/subscriptions/{id}/activities \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "actorUrn": "urn:pleo:organisation:12345678-1234-1234-1234-123456789012",
      "createdAt": "2022-01-01T00:00:00Z",
      "description": "Subscription deleted",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "operationType": "CREATE",
      "subscriptionId": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "pagination": {
    "currentRequestPagination": {
      "parameters": {},
      "after": "<string>",
      "before": "<string>",
      "limit": 123,
      "offset": 123,
      "sortingKeys": [
        "<string>"
      ],
      "sortingOrder": [
        "ASC"
      ]
    },
    "hasNextPage": true,
    "hasPreviousPage": true,
    "endCursor": "<string>",
    "startCursor": "<string>",
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

The unique identifier of the subscription

Query Parameters

operation_types
enum<string>[]

Filters subscriptions by operationTypes. If the value is null, all subscription activities for the specified subscriptionId are returned.

Available options:
CREATE,
UPDATE,
DELETE
before
string

Lower bound of the page of data to return (cannot be used together with [after] or [offset]).

after
string

Upper bound of the page of data to return (cannot be used together with [before] or [offset]).

offset
integer<int64>

Offset of the page of data to return (cannot be used together with [before] or [after]).

limit
integer<int32>

The maximum amount of items to return.

sorting_keys
string[]

The keys to sort the results by.

sorting_order
enum<string>[]

The order to sort the results by. Must be the same length as [sortingKeys]; one order per key.

Available options:
ASC,
ASC_NULLS_FIRST,
ASC_NULLS_LAST,
DESC,
DESC_NULLS_FIRST,
DESC_NULLS_LAST

Response

The subscription activities are returned.

data
object[]
required
pagination
object
required