Tip4Serv Subscriptions (User) API
Operations related to subscriptions from a user viewpoint.
Operations related to subscriptions from a user viewpoint.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tip4serv-com:tip4serv-com-subscriptions-user-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Tip4Serv Subscriptions (User) API
description: Tip4Serv API
termsOfService: https://tip4serv.com/terms-of-use
contact:
email: duster@tip4serv.com
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.12
servers:
- url: https://api.tip4serv.com/v1
security:
- bearerAuth: []
tags:
- name: Subscriptions (User)
description: Operations related to subscriptions from a user viewpoint.
paths:
/user/subscriptions:
get:
tags:
- Subscriptions (User)
summary: Get the authenticated user's subscriptions
description: '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.'
operationId: getUserSubscriptions
parameters:
- name: page
in: query
description: The page number to retrieve.
required: false
schema:
type: integer
default: 1
- name: max_page
in: query
description: The maximum number of elements per page. This number must be between 5 and 50.
required: false
schema:
type: integer
default: 50
- name: only_recurring_subscription
in: query
description: Include only recurring subscriptions.
required: false
schema:
type: boolean
default: false
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
properties:
subscriptions:
type: array
items:
$ref: '#/components/schemas/SubscriptionGeneral'
subscription_count:
type: integer
example: 3
required:
- subscriptions
- subscription_count
'401':
description: Missing or invalid user token
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedError'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerError'
/user/subscriptions/unsubscribe:
patch:
tags:
- Subscriptions (User)
summary: Unsubscribe the authenticated user from a subscription
description: '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.'
operationId: unsubscribeUserSubscription
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserUnsubscribeSubscriptionRequest'
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/UserSubscriptionActionResponse'
'400':
description: Error in your request
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
'401':
description: Missing or invalid user token
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedError'
'404':
description: Active subscription was not found
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerError'
components:
schemas:
NotFoundError:
type: object
properties:
error:
type: string
example: Active subscription was not found.
status:
type: integer
example: 404
required:
- error
- status
InternalServerError:
type: object
properties:
error:
type: string
example: Unexpected server error
status:
type: integer
example: 500
required:
- error
- status
ServerAction:
type: object
properties:
type:
type: string
description: 'Action kind: game server command, Discord message, Discord role addition, or Discord role removal.'
enum:
- server_command
- discord_message
- discord_role_add
- discord_role_remove
example: discord_message
id:
type: number
description: Action ID, unique within this event for this server.
example: 1
event:
type: string
description: Business event associated with this server action, distinct from its execution state.
enum:
- payment
- refund
- renewal
- expire
example: payment
state:
type: string
description: Execution condition configured for the command; distinct from the result in `status`.
enum:
- Execute
- Must be online
example: Execute
status:
type: string
description: Latest execution result reported for the command. Commands without a result are `Pending`.
enum:
- Pending
- Executed
- Error
- Waiting for server response or player connection
- In progress
- Canceled
- Duplicated
- Player must be linked on Discord
- Unknown
example: Executed
str:
type: string
description: "The command string to execute on the server. \n⚠ Not preprocessed, do not execute this command on a server. If you want to execute a command\nuse the /commands route.\n"
example: inventory.giveto 76561198380145423 scientist 5
message:
type: string
description: Discord message content, present for `discord_message` actions.
example: Thanks for your purchase
discord_channel:
type: string
description: Discord channel ID, or `private_message` when sent by direct message.
example: '123456789012345678'
role_id:
type: string
description: Discord role ID for this role action.
example: '932248461657857670'
role_name:
type: string
description: Discord role name, when available.
example: HI
date:
type: string
description: Execution date reported by the server, when available.
example: '2026-10-29 12:30:00'
confirmation_date:
type: string
description: UTC timestamp when the API received the execution result, when available.
example: '2026-10-29 12:30:05'
response:
type: string
description: Response text returned for the command, when available.
example: Executed successfully
error:
type: string
description: Execution error returned for the command, when available.
example: Missing permission in this channel.
product_id:
type: number
description: Unique Identifier of the product ID.
example: 14
server_id:
type: number
description: Unique Identifier of the product ID.
example: 23
required:
- id
- type
- event
- server_id
UserUnsubscribeSubscriptionRequest:
type: object
properties:
subscription_id:
type: integer
description: The ID of the subscription to unsubscribe from.
example: 1452
required:
- subscription_id
SubscriptionGeneral:
type: object
properties:
id:
type: integer
format: int64
description: Unique identifier of the subscription.
example: 1
name:
type: string
description: Name of the subscription.
example: VIP+ Subscription
status:
type: string
description: 'Status of the subscription. Accepted values: `Processed`, `Paid`, `Expired`, `Expiry`, `Pending`, `Renewal`, `Refused`
'
price:
type: integer
description: Subscription price in store currency.
example: 6.49
onetime:
type: boolean
description: Indicates if subscription is a one-time payment.
example: false
username:
type: string
description: Username of the subscriber.
example: Duster
start_date:
type: integer
description: Subscription start timestamp in store timezone.
example: 1760980455708
next_payment:
type: integer
description: If the subscription is a recurring one this indicate the next payment timestamp in store timezone.
example: 1761674734637
expire_date:
type: integer
description: If the subscription is a one-time payment this indicate the expire date timestamp in store timezone.
example: 1761674734637
unsubscribed:
type: boolean
description: Indicates if subscription has been cancelled.
example: false
duration_periodicity:
type: string
description: 'Time unit for subscription duration. Possible values: `day`, `week`, `month`, `year`'
example: month
period_num:
type: number
description: Number of time units before subscription expires or next charge.
example: 3
currency:
type: string
description: Currency of the subscription.
example: USD
details_page:
type: string
description: View more details about the subscription on this page.
example: https://tip4serv.com/dashboard/subscription-details?id=1
server_actions:
type: array
description: Server actions grouped by their payment, refund, renewal, expiry, or chargeback event.
items:
$ref: '#/components/schemas/ServerAction'
required:
- id
- name
- status
- price
- onetime
- username
- start_date
- currency
- unsubscribed
- details_page
- server_actions
BadRequestError:
type: object
properties:
error:
type: string
example: One of the parameters is missing or is in the wrong format.
status:
type: integer
example: 400
required:
- error
- status
UserSubscriptionActionResponse:
type: object
properties:
status:
type: integer
example: 200
message:
type: string
example: You have successfully unsubscribed from your subscription.
required:
- status
- message
UnauthorizedError:
type: object
properties:
error:
type: string
example: Unauthorized access. Please provide a valid user token.
status:
type: integer
example: 401
required:
- error
- status
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT or Partner API key
description: Use a Tip4Serv JWT for standard store access, or a Partner API key as a Bearer token for Partner Connect. Partner Connect operations also require the `store_id` and `integration_key` query parameters and the relevant seller-approved permission.