Subscriptions (User)
Operations related to subscriptions from a user viewpoint.
Retrieves subscriptions belonging to the authenticated user. Use the page parameter to paginate results. Set only_recurring_subscription to true to retrieve only recurring subscriptions.
Authorization:
Requires a valid JWT Bearer token.
The token must identify an authenticated end user.
The page number to retrieve.
1The maximum number of elements per page. This number must be between 5 and 50.
50Include only recurring subscriptions.
falseSuccessful operation
3Missing or invalid user token
Internal server error
GET /v1/user/subscriptions HTTP/1.1
Host: api.tip4serv.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"subscriptions": [
{
"id": 1,
"name": "VIP+ Subscription",
"status": "text",
"price": 6.49,
"onetime": false,
"username": "Duster",
"start_date": 1760980455708,
"next_payment": 1761674734637,
"expire_date": 1761674734637,
"unsubscribed": false,
"duration_periodicity": "month",
"period_num": 3,
"currency": "USD",
"details_page": "https://tip4serv.com/dashboard/subscription-details?id=1"
}
],
"subscription_count": 3
}Unsubscribes the authenticated user from one of their active subscriptions.
Authorization:
Requires a valid JWT Bearer token.
The token must identify an authenticated end user.
The ID of the subscription to unsubscribe from.
1452Successful operation
200You have successfully unsubscribed from your subscription.Error in your request
Missing or invalid user token
Active subscription was not found
Internal server error
PATCH /v1/user/subscriptions/unsubscribe HTTP/1.1
Host: api.tip4serv.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"subscription_id": 1452
}{
"status": 200,
"message": "You have successfully unsubscribed from your subscription."
}Last updated
