Tip4Serv Store API

General operations related to the store

GitHub OpenAPI

Operations 11

GET /store/cart_fields List cart fields #
POST /store/cart_field Create a cart field #
PATCH /store/cart_field/{identifier} Update a cart field #
DELETE /store/cart_field/{identifier} Delete a cart field #
GET /store/whoami Get general information about the store #
PATCH /store/settings Update store settings #
GET /store/theme Get general information about the store theme #
GET /store/additional_css Get the store's additional CSS #
PATCH /store/additional_css Update the store's additional CSS #
GET /store/additional_css/{theme_id} Get additional CSS for a theme #
PATCH /store/additional_css/{theme_id} Update additional CSS for a theme #

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-store-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-store-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tip4Serv Store 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: Store
  description: General operations related to the store
paths:
  /store/cart_fields:
    get:
      tags:
      - Store
      summary: List cart fields
      description: Lists the cart fields configured for the authenticated store. Requires a valid JWT Bearer token.
      operationId: getCartFields
      responses:
        '200':
          description: Cart fields configured for the store
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CartField'
        '403':
          description: Invalid or unauthorized API token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
  /store/cart_field:
    post:
      tags:
      - Store
      summary: Create a cart field
      description: Creates a cart field using the same identifier types and product/category assignments as the store dashboard. assign defaults to ALL_PRODUCTS when omitted. Custom identifier options require identifier_name and identifier_label. Requires the `update-store` permission.
      operationId: createCartField
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CartFieldCreate'
      responses:
        '200':
          description: Created cart field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CartField'
        '400':
          description: Invalid cart field payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '403':
          description: Missing `update-store` permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '409':
          description: The field type or custom identifier already exists
  /store/cart_field/{identifier}:
    parameters:
    - name: identifier
      in: path
      required: true
      description: Numeric ID of the cart field record.
      schema:
        type: integer
        minimum: 1
    patch:
      tags:
      - Store
      summary: Update a cart field
      description: Partially updates a store cart field. The option and custom identifier_name are immutable. Requires the `update-store` permission.
      operationId: updateCartField
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CartFieldUpdate'
      responses:
        '200':
          description: Updated cart field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CartField'
        '400':
          description: Invalid cart field payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '403':
          description: Missing `update-store` permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: Cart field not found
    delete:
      tags:
      - Store
      summary: Delete a cart field
      description: Deletes a cart field from the authenticated store. Requires the `update-store` permission.
      operationId: deleteCartField
      responses:
        '200':
          description: Cart field deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CartFieldDeleteResponse'
        '403':
          description: Missing `update-store` permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: Cart field not found
  /store/whoami:
    get:
      tags:
      - Store
      summary: Get general information about the store
      description: 'Retrieves general information about the store, including store name, owner, and basic settings.


        **Authorization:**

        - Requires a valid JWT Bearer token.'
      operationId: whoami
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Store'
        '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/settings:
    patch:
      tags:
      - Store
      summary: Update store settings
      description: 'Partially updates the authenticated store settings.


        **Authorization:**

        - Requires a valid JWT Bearer token.

        - The token must include the permission: `update-store`.'
      operationId: updateStoreSettings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StoreSettingsUpdate'
      responses:
        '200':
          description: Updated store settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Store'
        '400':
          description: Invalid settings payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '403':
          description: Missing `update-store` permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '409':
          description: Store subdomain is already in use
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictError'
  /store/theme:
    get:
      tags:
      - Store
      summary: Get general information about the store theme
      description: 'Retrieves general information about the store''s theme, including the

        current active mode, colors, and associated images.


        **Authorization:**

        - Requires a valid JWT Bearer token.'
      operationId: getTheme
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Theme'
        '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/additional_css:
    get:
      tags:
      - Store
      summary: Get the store's additional CSS
      description: Returns the Additional CSS block from the active theme's style.css. Requires a valid Bearer token, the read-store permission, and a Pro store using a non-default theme.
      operationId: getAdditionalCss
      responses:
        '200':
          description: Additional CSS content
          content:
            application/json:
              schema:
                type: object
                properties:
                  content:
                    type: string
                    example: '.my-class { color: red; }'
                required:
                - content
        '400':
          description: The active theme is the default theme
        '403':
          description: Missing read-store permission or the store is not Pro
    patch:
      tags:
      - Store
      summary: Update the store's additional CSS
      description: Replaces the Additional CSS block in the active theme's style.css (maximum 500 KiB). SVG data URLs are sanitized before saving; scripts, event handlers and external references are removed. Requires a valid Bearer token, the update-store permission, and a Pro store using a non-default theme.
      operationId: updateAdditionalCss
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  example: '.my-class { color: red; }'
              required:
              - content
      responses:
        '200':
          description: Additional CSS updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  content:
                    type: string
                required:
                - content
        '400':
          description: Default theme, CSS size limit, @import, disallowed URL, or malformed/unsanitizable SVG data URL
        '403':
          description: Missing update-store permission or the store is not Pro
        '500':
          description: The theme stylesheet could not be written
        '503':
          description: The theme stylesheet could not be read from storage
  /store/additional_css/{theme_id}:
    parameters:
    - name: theme_id
      in: path
      description: ID of the theme to inspect or update. The default theme (ID 0) is not supported.
      required: true
      schema:
        type: integer
        minimum: 1
    get:
      tags:
      - Store
      summary: Get additional CSS for a theme
      description: Returns the Additional CSS block in the selected theme's style.css. Requires a valid Bearer token, the read-store permission, and a Pro store.
      operationId: getThemeAdditionalCss
      responses:
        '200':
          description: Additional CSS content
          content:
            application/json:
              schema:
                type: object
                properties:
                  content:
                    type: string
                required:
                - content
        '400':
          description: The default theme is not supported
        '403':
          description: Missing read-store permission or the store is not Pro
        '404':
          description: Theme not found
    patch:
      tags:
      - Store
      summary: Update additional CSS for a theme
      description: Replaces the Additional CSS block in the selected theme's style.css (maximum 500 KiB). SVG data URLs are sanitized before saving; scripts, event handlers and external references are removed. Requires a valid Bearer token, the update-store permission, and a Pro store.
      operationId: updateThemeAdditionalCss
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
              required:
              - content
      responses:
        '200':
          description: Additional CSS updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  content:
                    type: string
                required:
                - content
        '400':
          description: CSS size limit, @import, disallowed URL, or malformed/unsanitizable SVG data URL
        '403':
          description: Missing update-store permission or the store is not Pro
        '404':
          description: Theme not found
        '500':
          description: The theme stylesheet could not be written
        '503':
          description: The theme stylesheet could not be read from storage
components:
  schemas:
    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
    Store:
      type: object
      properties:
        id:
          type: number
          description: Unique identifier of the store.
          example: 762
        owner:
          type: number
          description: Unique ID of the store owner account.
          example: 10000
        title:
          type: string
          description: Title or name of the store.
          example: Epic store
        subtitle:
          type: string
          description: Subtitle of the store.
          example: The most epic store you will ever find.
        meta_description:
          type: string
          description: Plain-text description displayed in search engine results.
          example: Get exclusive in-game rewards and support your favorite server.
        description:
          type: string
          description: Description of the store.
          example: The best store in the world!
        domain:
          type: string
          description: 'Subdomain used for the store. Full URL: `<domain>.tip4serv.com`.'
          example: epicstore
        custom_domain:
          type: string
          description: Custom domain registered for the store, if any.
          example: shop.epicstore.com
        logo:
          type: string
          description: URL of the store logo.
          example: https://tip4serv.com/template/images/defaultLogo.jpg
        currency:
          type: string
          description: Currency used by the store.
          example: USD
        timezone:
          type: string
          description: Timezone in which timestamps for the store are expressed.
          example: Europe/Paris
        color:
          type: string
          description: Main theme color of the store.
          example: '#5990f1'
        mode:
          type: string
          description: Store operating mode. Live stores accept real payments; test stores do not.
          enum:
          - test
          - live
          example: live
        maintenance_msg:
          type: string
          description: Message shown to visitors while the store is in test mode.
          example: This store is being configured. Please check back soon.
        language:
          type: string
          description: Store display language.
          example: English_en
        country:
          type: string
          description: Two-letter ISO country code configured for the store.
          example: US
        account_required:
          type: boolean
          description: Whether visitors must sign in before checking out.
          example: false
        social_medias:
          description: Social media URLs configured for the store.
          allOf:
          - $ref: '#/components/schemas/SocialMedias'
          example:
            discord: https://discord.gg/example
            twitter: https://x.com/example
        menu_links:
          description: Custom links displayed in the store header and footer.
          type: array
          items:
            $ref: '#/components/schemas/MenuLink'
          example:
          - title: Home
            link: https://example.com
      required:
      - id
      - owner
      - title
      - description
      - domain
      - logo
      - currency
      - timezone
      - color
    CartField:
      type: object
      properties:
        id:
          type: integer
          example: 42
        assign:
          type: string
          enum:
          - ALL_PRODUCTS
          - ALL_PRODUCTS_EXCEPT_DONATION
          - SELECTED_CATEGORIES_OR_PRODUCTS
          description: ALL_PRODUCTS = all products; ALL_PRODUCTS_EXCEPT_DONATION = all products except donations; SELECTED_CATEGORIES_OR_PRODUCTS = selected products/categories.
        option:
          type: string
          enum:
          - discord_id
          - steam_id
          - minecraft_uuid
          - minecraft_username
          - ig_username
          - fivem_citizen_id
          - eosid
          - custom_id
        products_list:
          type: array
          description: Returned only when assign is SELECTED_CATEGORIES_OR_PRODUCTS.
          items:
            type: integer
            minimum: 0
        categories_list:
          type: array
          description: Returned only when assign is SELECTED_CATEGORIES_OR_PRODUCTS.
          items:
            type: integer
            minimum: 0
        identifier_name:
          type: string
          pattern: ^[a-z][a-z0-9_]{1,63}$
          example: purchase_code
        identifier_label:
          type: string
          maxLength: 100
          example: Purchase code
        identifier_min_length:
          type: integer
          minimum: 0
        identifier_max_length:
          type: integer
          minimum: 0
        identifier_placeholder:
          type: string
          maxLength: 255
        identifier_case:
          type: string
          enum:
          - keep_as_entered
          - upper
          - lower
          default: keep_as_entered
      required:
      - id
      - assign
      - option
    CartFieldCreate:
      type: object
      additionalProperties: false
      description: When option is custom_id, identifier_name and identifier_label are required.
      properties:
        assign:
          type: string
          enum:
          - ALL_PRODUCTS
          - ALL_PRODUCTS_EXCEPT_DONATION
          - SELECTED_CATEGORIES_OR_PRODUCTS
          default: ALL_PRODUCTS
        option:
          type: string
          enum:
          - discord_id
          - steam_id
          - minecraft_uuid
          - minecraft_username
          - ig_username
          - fivem_citizen_id
          - eosid
          - custom_id
        products_list:
          type: array
          items:
            type: integer
            minimum: 0
        categories_list:
          type: array
          items:
            type: integer
            minimum: 0
        identifier_name:
          type: string
          pattern: ^[a-z][a-z0-9_]{1,63}$
        identifier_label:
          type: string
          minLength: 1
          maxLength: 100
        identifier_min_length:
          type: integer
          minimum: 0
        identifier_max_length:
          type: integer
          minimum: 0
        identifier_placeholder:
          type: string
          maxLength: 255
        identifier_case:
          type: string
          enum:
          - keep_as_entered
          - upper
          - lower
          default: keep_as_entered
      required:
      - option
    Theme:
      type: object
      properties:
        id:
          type: number
          description: Unique identifier of the theme.
          example: 2
        short_name:
          type: string
          description: Short name of the theme.
          pattern: ^[a-z0-9_-]+$
          example: neon
        name:
          type: string
          description: Name of the theme publicly displayed.
          example: Neon Theme
        slug:
          type: object
          description: Sets of slugs, each being an object mapping between their section to their slug.
          additionalProperties:
            type: string
            pattern: ^[a-z0-9_-]+$
            description: Slug format.
          example:
            product: product
            category: category
        images:
          type: object
          description: 'Set of image references used in the theme.

            Contains a required `favicon`, and any number of modes (e.g., `light`, `dark`),

            each being an object mapping image identifiers to URLs.

            '
          required:
          - favicon
          properties:
            favicon:
              type: string
              description: Favicon image filename.
              example: 8651782c6c560e354f81a5e586939495.jpg
            light:
              type: object
              description: Light mode images.
              properties:
                logo_header:
                  type: string
                  example: 2613ab81ede1995cd1024b542962194a.png
                logo_footer:
                  type: string
                  example: logo2.png
                home_cover:
                  type: string
                  example: home_cover_inner.jpg
            dark:
              type: object
              description: Dark mode images.
              properties:
                logo_header:
                  type: string
                  example: 2613ab81ede1995cd1024b542962194a_dark.png
                logo_footer:
                  type: string
                  example: logo2_dark.png
                home_cover:
                  type: string
                  example: home_cover_inner_dark.jpg
        mode:
          type: string
          description: Default mode of the theme (e.g., `light`, `dark`, etc.).
          example: light
        widgets:
          type: object
          description: 'Arbitrary configuration options for widgets. Flexible key-value store where each entry represents a configurable parameter. Values can be strings, numbers, booleans, arrays, or nested objects.

            '
          additionalProperties:
            oneOf:
            - type: string
            - type: number
            - type: boolean
            - type: object
            - type: array
          example:
            description: below_categories_list
            top_customer: 1
            featured_product: 1
            top_product: 1
            show_banner: true
      required:
      - id
      - short_name
      - name
      - images
      - mode
    StoreSettingsUpdate:
      type: object
      additionalProperties: false
      properties:
        mode:
          type: string
          description: Store operating mode. Use `live` for real payments or `test` while configuring the store.
          enum:
          - test
          - live
          example: live
        maintenance_msg:
          type: string
          description: Message shown to visitors while the store is in test mode.
          example: This store is being configured. Please check back soon.
        title:
          type: string
          description: Plain-text store title. Double quotes are rejected.
          example: Epic store
        subtitle:
          type: string
          description: Optional plain-text subtitle displayed with the store title.
          example: Support the server and unlock rewards
        meta_description:
          type: string
          description: Plain-text description used for search engine previews. Double quotes are rejected.
          example: Get exclusive in-game rewards and support your favorite server.
        description:
          type: string
          description: Store description formatted with the supported rich-text HTML subset.
          example: <p>Welcome to our store.</p>
        domain:
          type: string
          description: Tip4Serv store subdomain using ASCII letters or digits; reserved names are rejected.
          pattern: ^[a-zA-Z0-9]+$
          example: epicstore
        currency:
          type: string
          description: Currency code supported by the store.
          enum:
          - AUD
          - BRL
          - CAD
          - CNY
          - CZK
          - DKK
          - EUR
          - HKD
          - HUF
          - INR
          - ILS
          - MYR
          - MXN
          - TWD
          - NZD
          - NOK
          - PHP
          - PLN
          - GBP
          - RUB
          - SGD
          - SEK
          - CHF
          - THB
          - USD
          example: USD
        country:
          type: string
          description: Supported ISO country code.
          pattern: ^[A-Z]{2}$
          example: US
        language:
          type: string
          description: Store display language identifier offered by the dashboard.
          enum:
          - Danish_da
          - Dutch_nl
          - English_en
          - French_fr
          - German_de
          - Hebrew_he
          - Hungarian_hu
          - Italian_it
          - Norwegian_no
          - Polish_pl
          - Portuguese_pt
          - Romanian_ro
          - Russian_ru
          - Spanish_es
          - Swedish_sv
          - Turkish_tr
          - Ukrainian_uk
          example: English_en
        timezone:
          type: string
          description: IANA timezone identifier used for store timestamps.
          example: Europe/Paris
        account_required:
          type: boolean
          description: Require visitors to sign in before checkout.
          example: false
        social_medias:
          description: Partial map of social network names to HTTP or HTTPS URLs.
          allOf:
          - $ref: '#/components/schemas/SocialMedias'
          example:
            discord: https://discord.gg/example
            twitter: https://x.com/example
        menu_links:
          description: Replace the store's custom header and footer links. Send an empty array to remove them.
          type: array
          items:
            $ref: '#/components/schemas/MenuLink'
          example:
          - title: Home
            link: https://example.com
    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
    SocialMedias:
      type: object
      description: Supported social network URLs configured for a store.
      properties:
        discord:
          type: string
          description: Discord server invite URL.
          example: https://discord.gg/example
        facebook:
          type: string
          description: Facebook page URL.
          example: https://www.facebook.com/zuck/
        instagram:
          type: string
          description: Instagram profile URL.
          example: https://www.instagram.com/zuck/
        tiktok:
          type: string
          description: TikTok profile URL.
          example: https://www.tiktok.com/@openai
        twitter:
          type: string
          description: X (formerly Twitter) profile URL.
          example: https://x.com/X
        youtube:
          type: string
          description: YouTube channel URL.
          example: https://www.youtube.com/user/PewDiePie
        twitch:
          type: string
          description: Twitch channel URL.
          example: https://www.twitch.tv/openai
        steam:
          type: string
          description: Steam community profile or group URL.
          example: https://steamcommunity.com/profiles/76561198380145423
    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
    MenuLink:
      type: object
      properties:
        title:
          type: string
          description: Title of the link to be displayed.
          example: Books
        link:
          type: string
          description: URL of the link.
          example: https://duster-books.com
      required:
      - title
      - link
    CartFieldDeleteResponse:
      type: object
      properties:
        message:
          type: string
          example: The cart field was successfully deleted.
        status:
          type: integer
          example: 200
      required:
      - message
      - status
    CartFieldUpdate:
      type: object
      additionalProperties: false
      description: Provide at least one property. option and identifier_name cannot be changed.
      properties:
        assign:
          type: string
          enum:
          - ALL_PRODUCTS
          - ALL_PRODUCTS_EXCEPT_DONATION
          - SELECTED_CATEGORIES_OR_PRODUCTS
        products_list:
          type: array
          items:
            type: integer
            minimum: 0
        categories_list:
          type: array
          items:
            type: integer
            minimum: 0
        identifier_label:
          type: string
          minLength: 1
          maxLength: 100
        identifier_min_length:
          type: integer
          minimum: 0
        identifier_max_length:
          type: integer
          minimum: 0
        identifier_placeholder:
          type: string
          maxLength: 255
        identifier_case:
          type: string
          enum:
          - keep_as_entered
          - upper
          - lower
  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.