Discounts (User)
Operations related to discounts from a user viewpoint.
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.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageintegerOptionalDefault:
The page number to retrieve.
1max_pageintegerOptionalDefault:
The maximum number of elements per page. This number must be between 5 and 50.
50Responses
200
Successful operation
application/json
giftcard_countintegerRequiredExample:
2401
Missing or invalid user token
application/json
500
Internal server error
application/json
get/user/discount/giftcards
GET /v1/user/discount/giftcards HTTP/1.1
Host: api.tip4serv.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"giftcards": [
{
"id": 334,
"name": "£50 Gift Card",
"creation_date": 1758563356951,
"code": "0M35-HYBA-IYWT-Y280",
"initial_credit": 50,
"remaining_credit": 43.47,
"currency": "EUR",
"payment_id": 30689,
"expiration": 1758563356951
}
],
"giftcard_count": 2
}Last updated
