For the complete documentation index, see llms.txt. This page is also available as Markdown.

Discounts (User)

Operations related to discounts from a user viewpoint.

Get the authenticated user's giftcards

get

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
pageintegerOptional

The page number to retrieve.

Default: 1
max_pageintegerOptional

The maximum number of elements per page. This number must be between 5 and 50.

Default: 50
Responses
200

Successful operation

application/json
giftcard_countintegerRequiredExample: 2
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