Hooks
useSubscription
Fetch a single subscription by ID.| Name | Type | Description |
|---|---|---|
id | string | Subscription ID |
options | UseQueryOptions | TanStack Query options |
UseQueryResult<Subscription>
useSubscriptions
Fetch a paginated list of subscriptions.| Name | Type | Description |
|---|---|---|
params.customer_id | string | Filter by customer |
params.page | number | Page number |
params.page_size | number | Items per page |
UseQueryResult<PaginatedResponse<Subscription>>