Tip4Serv Discounts (User) API

Operations related to discounts from a user viewpoint.

GitHub OpenAPI

Operations 1

GET /user/discount/giftcards Get the authenticated user's giftcards #

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-discounts-user-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-discounts-user-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tip4Serv Discounts (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: Discounts (User)
  description: Operations related to discounts from a user viewpoint.
paths:
  /user/discount/giftcards:
    get:
      tags:
      - Discounts (User)
      summary: Get the authenticated user's giftcards
      description: 'Retrieves giftcards purchased by the authenticated user. G

        Use the `page` parameter to paginate results.


        **Authorization:**

        - Requires a valid JWT Bearer token.

        - The token must identify an authenticated end user.'
      operationId: getUserGiftcards
      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
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  giftcards:
                    type: array
                    items:
                      $ref: '#/components/schemas/ResponseGiftCard'
                  giftcard_count:
                    type: integer
                    example: 2
                required:
                - giftcards
                - giftcard_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'
components:
  schemas:
    InternalServerError:
      type: object
      properties:
        error:
          type: string
          example: Unexpected server error
        status:
          type: integer
          example: 500
      required:
      - error
      - status
    ResponseGiftCard:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: Unique identifier of the gift card.
          example: 334
        name:
          type: string
          description: Name of the gift card.
          example: £50 Gift Card
        creation_date:
          type: integer
          description: Timestamp of gift card creation in the store's timezone.
          example: 1758563356951
        code:
          type: string
          description: Unique code of the gift card.
          example: 0M35-HYBA-IYWT-Y280
        initial_credit:
          type: integer
          description: Initial credit value of the gift card in its currency.
          example: 50
        remaining_credit:
          type: integer
          description: Remaining credit on the gift card in its currency.
          example: 43.47
        currency:
          type: string
          description: Currency of the gift card.
          example: EUR
        payment_id:
          type: integer
          format: int64
          description: Internal identifier of the payment used to purchase the gift card.
          example: 30689
        expiration:
          type: integer
          description: 'Timestamp of gift card expiration in the store''s timezone.

            '
          example: 1758563356951
      required:
      - id
      - name
      - creation_date
      - code
      - initial_credit
      - remaining_credit
      - currency
    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.