created_at desc ordering.
All routes require an authenticated Medusa Admin user. Unauthenticated requests return
401.Actor type values
Event type groups
Events are namespaced by domain:subscription.*, renewal.*, dunning.*, cancellation.*.
The subscription.* group includes the initial subscription.created event written when a subscription is first created through storefront checkout.
GET /admin/subscription-logs
Returns the paginated global activity log for Admin DataTable views.Query parameters
number
Number of results per page.
number
Zero-based result offset for pagination.
string
Free-text search.
string
Field to sort by. Database-backed:
created_at, event_type, actor_type. In-memory: subscription_reference, customer_name, reason.string
Sort direction. One of
asc or desc. Defaults to desc.string
Filter to events for a specific subscription.
string
Filter to events for a specific customer.
string | string[]
Filter by event type. Accepts a single value or an array.
string | string[]
Filter by actor type. Accepts a single value or an array.
string
ISO datetime lower bound for
created_at.string
ISO datetime upper bound for
created_at.Response
object[]
required
Array of activity log list items.
number
required
Total matching records.
number
required
Page size used.
number
required
Result offset used.
Response example
Errors
GET /admin/subscription-logs/:id
Returns the full detail payload for a single activity log event, including the previous state, new state, and a field-level diff.Path parameters
string
required
Activity log record ID.
Response
Returns asubscription_log object with all list fields plus:
object
required
Response example
Errors
GET /admin/subscriptions/:id/logs
Returns the paginated activity log timeline scoped to a single subscription. Accepts the same query parameters as the global list and appliessubscription_id = :id automatically.
Path parameters
string
required
Subscription ID.
Query parameters
Same asGET /admin/subscription-logs. Default sort is created_at desc.
Response
Same shape asGET /admin/subscription-logs.
Response example