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.
openapi: 3.2.0
info:
title: Tip4Serv 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: User
description: Operations related to the user account from a user viewpoint.
paths:
/user/whoami:
get:
tags:
- User
summary: Get general information about the user
description: 'Retrieves general information about the user, including the username, profile picture and other basic settings.
**Authorization:**
- Requires a valid JWT Bearer token.
- The token must identify an authenticated end user.'
operationId: userWhoami
responses:
'200':
description: Succesful operation
content:
application/json:
schema:
type: object
properties:
user:
$ref: '#/components/schemas/User'
'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
UnauthorizedError:
type: object
properties:
error:
type: string
example: Unauthorized access. Please provide a valid user token.
status:
type: integer
example: 401
required:
- error
- status
User:
type: object
properties:
id:
type: integer
example: 15421
description: The ID of the user.
username:
type: string
example: Duster
description: The username of the user.
email:
type: string
example: duster@tip4serv.com
description: The e-mail of the user.
language:
type: string
example: English_en
description: The primary language of the user.
timezone:
type: string
example: Europe/Paris
description: The timezone of the user.
registration_date:
type: integer
example: 1676373212
description: The registration date expressed in the user timezone.
profile_picture:
type: string
example: https://cdn.tip4serv.com/user-data/avatars/f7b64cc1f38ad584f0a31bdcbb8a4452.png
description: The profile picture of the user.
loyalty_points:
type: integer
example: 360
description: Loyalty points posessed by the user. Is displayed only if loyalty points are set up on the targeted store.
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.