Tip4Serv Subscriptions API

Operations related to subscriptions

GitHub OpenAPI

Operations 5

GET /store/subscription/{subscription_id} Get subscription #
GET /store/subscriptions Get subscriptions #
PATCH /store/subscription/{subscription_id}/customer Update customer identifiers for a subscription #
POST /store/subscription/{subscription_id}/resend Resend subscription commands #
PATCH /store/subscription/{id}/unsubscribe Unsubscribe #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tip4serv-com:tip4serv-com-subscriptions-api"
All apis
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.

Get an API 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 Specification

tip4serv-com-subscriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tip4Serv Subscriptions 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
  description: Operations related to subscriptions
paths:
  /store/subscription/{subscription_id}:
    get:
      tags:
      - Subscriptions
      summary: Get subscription
      description: 'Retrieves information about a subscription.


        **Authorization:**

        - Requires a valid JWT Bearer token.

        - The token must include the permission: `read-subscriptions`.'
      operationId: getSubscription
      parameters:
      - name: subscription_id
        in: path
        description: The subscription ID to retrieve.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionGeneral'
        '403':
          description: Missing permission to read subscriptions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: Subscription not found in the current store.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
  /store/subscriptions:
    get:
      tags:
      - Subscriptions
      summary: Get subscriptions
      description: 'Retrieves information about your subscriptions. Use the `page` parameter

        to paginate results. Set `only_recurring_subscription` to `true` to

        retrieve only recurring subscriptions. Optionally, filter by a specific

        user using the `identifier` parameter.


        **Accepted identifiers:**

        `email`, `username`, `eosid`, `ue4_id`, `steam_username`, `steam_id`, `player_id`,

        `minecraft_uuid`, `discord_id`, `discord_username`,

        `fivem_xPlayer_id`, `fivem_citizen_id`, `minecraft_username`.


        **Authorization:**

        - Requires a valid JWT Bearer token.

        - The token must include the permission: `read-subscriptions`.'
      operationId: getSubscriptions
      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-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
      - name: identifier
        in: query
        description: "Specify an identifier for a user to filter subscriptions. If omitted, \nsubscriptions for all users will be included.\n"
        schema:
          type: string
          example: ''
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  subscriptions:
                    type: array
                    items:
                      $ref: '#/components/schemas/SubscriptionGeneral'
                  subscription_count:
                    type: number
                    example: 120
        '403':
          description: Missing or invalid Tip4Serv API Key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized access. Please provide a valid Tip4Serv API Key.
                  status:
                    type: number
                    example: 403
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unexpected server error
                  status:
                    type: number
                    example: 500
  /store/subscription/{subscription_id}/customer:
    patch:
      tags:
      - Subscriptions
      summary: Update customer identifiers for a subscription
      description: 'Updates customer identifiers that are present on the subscription. Identifiers unavailable in the subscription context cannot be changed.


        **Authorization:**

        - Requires a valid JWT Bearer token.

        - The token must include the permission: `update-subscriptions`.'
      operationId: updateSubscriptionCustomer
      parameters:
      - name: subscription_id
        in: path
        description: The subscription ID.
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerIdentifiersUpdate'
            example:
              player_id: C84A567
      responses:
        '200':
          description: Returns the updated identifiers directly at the response root.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerIdentifiersUpdate'
              example:
                player_id: palworld_uid:C84A567
                minecraft_username: Notch
                discord_id: '123456789012345678'
        '400':
          description: Invalid or unsupported identifier payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '403':
          description: Missing permission to update subscriptions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: Subscription not found in the current store.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
        '409':
          description: The requested identifier is unavailable in this subscription context.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictError'
  /store/subscription/{subscription_id}/resend:
    post:
      tags:
      - Subscriptions
      summary: Resend subscription commands
      description: 'Queues eligible original commands and dashboard webhook events for one event family per request. Multiple command/action types from that same family may be selected. Only commands in `Processed`, `Error`, `Waiting for server response or player connection`, or `Canceled` status can be resent; resend copies cannot be selected.


        Use the command IDs returned by `/v1/store/subscription/{subscription_id}`, not IDs from `/server/{server_id}/commands`.


        **Authorization:**

        - Requires a valid JWT Bearer token.

        - The token must include the permission: `update-subscriptions`.'
      operationId: resendSubscriptionCommands
      parameters:
      - name: subscription_id
        in: path
        description: The subscription ID whose commands are being resent.
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResendCommandsRequest'
            example:
              servers:
                '12345':
                  renewal:
                  - 1
      responses:
        '200':
          description: Commands queued for resend.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResendCommandsResponse'
              example:
                event: renewal
                commands_queued: 1
                servers:
                - 12345
        '400':
          description: Invalid request, event, or command ID list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '403':
          description: Missing permission to update subscriptions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: Subscription not found in the current store.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
        '409':
          description: The selected server, event, or command is unavailable or not eligible for resend.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictError'
  /store/subscription/{id}/unsubscribe:
    patch:
      tags:
      - Subscriptions
      summary: Unsubscribe
      description: 'Unsubscribes a user from a subscription identified by `id`.


        **Authorization:**

        - Requires a valid JWT Bearer token.

        - The token must include the permission: `update-subscriptions`.'
      operationId: unsubscribe
      parameters:
      - name: id
        in: path
        required: true
        description: The ID of the subscription.
        schema:
          type: number
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    example: 200
                  message:
                    type: string
                    example: You have successfully unsubscribed from your subscription.
        '400':
          description: Error in your request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: One of the parameters is missing or is in the wrong format.
                  status:
                    type: integer
                    example: 400
        '403':
          description: Didn't provide a valid Tip4Serv API Key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized Access, Please submit a valid Tip4Serv API Key
                  status:
                    type: integer
                    example: 403
        '404':
          description: Active subscription was not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Active subscription was not found.
                  status:
                    type: integer
                    example: 404
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unexpected server error
                  code:
                    type: integer
                    example: 500
components:
  schemas:
    NotFoundError:
      type: object
      properties:
        error:
          type: string
          example: Active subscription was not found.
        status:
          type: integer
          example: 404
      required:
      - error
      - status
    ConflictError:
      type: object
      description: Standard JSON error response returned when the request conflicts with the current resource state.
      properties:
        error:
          type: string
          example: The request conflicts with the current resource state.
        status:
          type: integer
          example: 409
      required:
      - error
      - status
      example:
        error: The request conflicts with the current resource state.
        status: 409
    CustomerIdentifiersUpdate:
      type: object
      description: A map of non-empty classic customer identifiers known for a payment or subscription. In PATCH requests, provide only the identifiers to change; successful responses include all known non-empty identifiers.
      example:
        email: player@example.com
        steam_id: '76561198000000000'
        player_id: C84A567
      minProperties: 1
      properties:
        email:
          type: string
          description: Customer email address.
          example: player@example.com
        username:
          type: string
          description: Customer username.
          example: PlayerOne
        player_id:
          type: string
          description: Customer's in-game player identifier. Send the raw value or prefix it with the existing game identifier type; the current type is retained and the value is validated against that game's configuration.
          example: C84A567
        steam_id:
          type: string
          description: Customer's SteamID64.
          example: '76561198000000000'
        steam_username:
          type: string
          description: Customer's Steam username.
          example: steam_player
        hytale_uuid:
          type: string
          description: Customer's Hytale account UUID.
          example: 550e8400-e29b-41d4-a716-446655440000
        minecraft_uuid:
          type: string
          description: Customer's Minecraft account UUID.
          example: 069a79f4-44e9-4726-a5be-fca90e38aaf5
        minecraft_username:
          type: string
          description: Customer's Minecraft username.
          example: Notch
        ig_username:
          type: string
          description: Customer's in-game username.
          example: SurvivorOne
        eosid:
          type: string
          description: Customer's Epic Online Services account ID.
          example: 0123456789abcdef0123456789abcdef
        fivem_citizen_id:
          type: string
          description: Customer's FiveM citizen ID.
          example: '12345'
        discord_id:
          type: string
          description: Customer's Discord user ID.
          example: '123456789012345678'
        discord_username:
          type: string
          description: Customer's Discord username.
          example: example_user
        fivem_xPlayer_id:
          type: string
          description: Customer's FiveM xPlayer identifier.
          example: license:0123456789abcdef
        ue4_id:
          type: string
          description: Customer's Unreal Engine 4 player identifier.
          example: '1234567890'
      additionalProperties: false
    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
    ForbiddenError:
      type: object
      description: Standard JSON error response returned when access is denied.
      properties:
        error:
          type: string
          example: Access denied.
        status:
          type: integer
          example: 403
      required:
      - error
      - status
      example:
        error: Access denied.
        status: 403
    ResendCommandsRequest:
      type: object
      description: Request to resend one event family. For each server, provide the event (`payment`, `renewal`, `expire`, or `refund`) and the command IDs returned by `/v1/store/payment/{id}` or `/v1/store/subscription/{subscription_id}`. Do not use IDs from `/server/{server_id}/commands`. The API resolves each ID to its stored command, message, or role action.
      required:
      - servers
      example:
        servers:
          '12345':
            payment:
            - 0
            - 1
            - 2
      properties:
        servers:
          type: object
          description: Map of numeric server IDs to event names and command ID lists. Use IDs from `/v1/store/payment/{id}` or `/v1/store/subscription/{subscription_id}`, not `/server/{server_id}/commands`.
          minProperties: 1
          example:
            '12345':
              payment:
              - 0
              - 1
              - 2
          additionalProperties:
            type: object
            minProperties: 1
            properties:
              payment:
                $ref: '#/components/schemas/ResendActionIds'
              renewal:
                $ref: '#/components/schemas/ResendActionIds'
              expire:
                $ref: '#/components/schemas/ResendActionIds'
              refund:
                $ref: '#/components/schemas/ResendActionIds'
            additionalProperties: false
      additionalProperties: false
    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
    ResendActionIds:
      type: array
      minItems: 1
      items:
        type: integer
        minimum: 0
    ResendCommandsResponse:
      type: object
      properties:
        event:
          type: string
          description: The single event family queued for resend.
          enum:
          - payment
          - renewal
          - refund
          - expire
          example: payment
        commands_queued:
          type: integer
          description: Number of resend copies created.
          example: 2
        servers:
          type: array
          description: Server IDs included in the resend selection.
          items:
            type: integer
          example:
          - 12345
      required:
      - event
      - commands_queued
      - servers
  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.