Tip4Serv Checkout API

Operations related to checkout

GitHub OpenAPI

Operations 2

GET /store/checkout/identifiers Get necessary identifiers for basket #
POST /store/checkout Generate a checkout link #

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-checkout-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-checkout-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tip4Serv Checkout 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: Checkout
  description: Operations related to checkout
paths:
  /store/checkout/identifiers:
    get:
      tags:
      - Checkout
      summary: Get necessary identifiers for basket
      description: 'Get all the necessary user identifiers to purchase the requested basket.

        Some products require specific user identifiers in order to be purchased.

        For example, a product that grants a Discord role will require a discord_id, and a product that provides perks in Ark: Survival Ascended will require an eos_id.

        This route returns all the necessary information before proceeding with a purchase.


        No API key is required.'
      operationId: checkoutAuth
      parameters:
      - name: store
        in: query
        required: true
        description: Store ID. This ID is required in order to identify to which store you want to checkout. If you have an API key, you can request the /whoami route in order to figure out your store ID.
        schema:
          type: integer
          example: 762
      - name: products
        in: query
        required: true
        description: An array of product id to be purchased.
        schema:
          type: array
          example:
          - 12
          - 123
          items:
            type: integer
      responses:
        '200':
          description: Array of required user identifiers.
          content:
            application/json:
              schema:
                type: array
                example:
                - discord_id
                - eos_id
                items:
                  type: string
        '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
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unexpected server error
                  status:
                    type: integer
                    example: 500
  /store/checkout:
    post:
      tags:
      - Checkout
      summary: Generate a checkout link
      description: 'Generate an checkout link, provide a basket of what you want to checkout,

        and the endpoint will return you an URL to which to redirect.


        No API key is required.'
      operationId: checkout
      parameters:
      - name: store
        in: query
        required: true
        description: Store ID. This ID is required in order to identify to which store you want to checkout. If you have an API key, you can request the /whoami route in order to figure out your store ID.
        schema:
          type: integer
          example: 762
      - name: currency
        in: query
        description: 'Display currency code (optional). Supported currencies: GBP, USD, EUR, CAD, AUD, CHF. If omitted, prices are displayed in store currency. Converts all product prices (price, old_price, min_donation) and custom field prices.'
        required: false
        schema:
          type: string
          example: USD
      - name: redirect
        in: query
        required: false
        description: If enabled, the endpoint will send a 302 Redirection instead of an JSON.
        schema:
          type: boolean
          example: false
          default: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
      responses:
        '200':
          description: Checkout link generated successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    example: https://fivem.tip4serv.com/checkout?key=eyJwcm9kdWN0cyI6IFt7InByb2R1Y3RfaWQiOjEyLCJ0eXBlIjoiYWRkdG9jYXJ0In1dfQ%3D%3D
        '302':
          description: Checkout link generated successfully. This redirect response has no JSON body.
          headers:
            Location:
              description: The generated checkout URL. Present when the `redirect` query parameter is enabled.
              required: true
              schema:
                type: string
                format: uri
        '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
        '404':
          description: User not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: This discord user 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
                  status:
                    type: integer
                    example: 500
components:
  schemas:
    CheckoutUser:
      type: object
      description: 'This parameter is optional, if you wish to handle User authentication you must submit this parameter. Otherwise we''ll handle it for you.



        User identifiers used to validate the purchase.

        If a field is required for a product, the API will return an error.

        Required fields can be found using the /checkout/identifiers route.

        '
      properties:
        email:
          type: string
          description: The customer email.
          example: duster@example.com
        minecraft_username:
          type: string
          description: The Minecraft username.
          example: Notch
        steam_id:
          type: string
          description: The SteamID64 (17 digits).
          example: '76561198000000000'
        discord_id:
          type: string
          description: The Discord ID of the user.
          example: 274785054121525250
        epic_id:
          type: string
          description: The Epic ID.
          example: '1234567890123456789'
        player_id:
          type: string
          description: Raw generic player identifier.
          example: C84A567
        eos_id:
          type: string
          description: The EOSID.
          example: 0123456789abcdef0123456789abcdef
        fivem_citizen_id:
          type: string
          description: The FiveM citizen id.
          example: abc123
        ingame_username:
          type: string
          description: The in-game username.
          example: PlayerOne
        rust_username:
          type: string
          description: The Rust username.
          example: RustPlayer
      required:
      - email
    CheckoutProduct:
      type: object
      properties:
        product_id:
          type: integer
          description: The product ID. Make sure that at least `product_id` is defined or `product_slug`.
          example: 12
        product_slug:
          type: string
          description: Slug of the product. Make sure that at least `product_id` is defined or `product_slug`.
          example: product-1
        type:
          type: string
          description: 'The product purchase type. Can take the following values: `addtocart`, `subscribe`.

            (If you specify `addtocart` for a subscription-based product, the subscription will be bought as a one-time payment instead of a recurring subscription).


            If no type is specified, here are the default values:

            - Simple products: `addtocart`

            - Subscriptions: `subscribe`

            '
          example: addtocart
        quantity:
          type: integer
          description: The quantity to purchase.
          example: 1
          default: 1
        donation_amount:
          type: number
          description: The donation amount for "free_price" products, expressed in the store currency.
          example: 10.5
        server_selection:
          type: integer
          description: The selected server ID (if required by the product).
          example: 12
        custom_fields:
          type: object
          description: 'The custom fields values.

            Format: custom_field_id: selected_value.

            '
          additionalProperties: true
          example:
            '2': 1
            '3': 3
            '4': wooden_sword
    CheckoutRequest:
      type: object
      required:
      - products
      properties:
        products:
          type: array
          description: The list of products to purchase.
          items:
            $ref: '#/components/schemas/CheckoutProduct'
        currency:
          type: string
          description: 'Display currency code (optional). Supported currencies: GBP, USD, EUR, CAD, AUD, CHF. If omitted, prices are displayed in store currency. Converts all product prices (price, old_price, min_donation) and custom field prices.'
          example: USD
        user:
          $ref: '#/components/schemas/CheckoutUser'
        redirect_success_checkout:
          type: string
          description: 'This optional parameter allows you to redirect your users to a specific URL after the payment was processed successfully.

            '
          example: https://mywebsite.com/page/success
        redirect_canceled_checkout:
          type: string
          description: 'This optional parameter allows you to redirect your users to a specific URL if the user want to return back.

            '
          example: https://mywebsite.com/page/cancel
        redirect_pending_checkout:
          type: string
          description: 'This optional parameter allows you to redirect your users to a specific URL after the payment was processed successfully but is still being verified.

            '
          example: https://mywebsite.com/page/pending
  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.