Gift Cards
Get all gift cards
GET https://plugin.tebex.io/gift-cards
Return an array of all gift cards on your account.
Headers
X-Tebex-Secret
string
The secret key of a server.
{
"data": [
{
"id": 38,
"code": "165261930219",
"balance": {
"starting": "25.00",
"remaining": "12.60",
"currency": "GBP"
},
"note": "Created for player ABC",
"void": false
}
]
}Retrieve a gift card
GET https://plugin.tebex.io/gift-cards/{id}
Retrieve a gift card by ID.
Path Parameters
id
string
The ID of a gift card.
Headers
X-Tebex-Secret
string
The secret key of a server.
Lookup a gift card by code
GET https://plugin.tebex.io/gift-cards/lookup/{code}
Retrieve a gift card by its code.
Path Parameters
code
string
The code of a gift card.
Headers
X-Tebex-Secret
string
The secret key of a server.
Create a gift card
POST https://plugin.tebex.io/gift-cards
Create a gift card of a specified amount.
Headers
X-Tebex-Secret
string
The secret key of a server.
Request Body
expires_at
string
The gift card's expiry date in the format yyyy-mm-dd hh:mm:ss.
note
string
The note that will be stored against the gift card.
amount
number
The currency value of the gift card should have upon creation.
Void a gift card
DELETE https://plugin.tebex.io/gift-cards/{id}
Void a gift card to prevent it from being used.
Path Parameters
id
string
The ID of the gift card.
Headers
X-Tebex-Secret
string
The secret key of a server.
Top-up a gift card
PUT https://plugin.tebex.io/gift-cards/{id}
Top-up (Add more credit) to an existing gift card.
Path Parameters
id
string
The ID of the gift card.
Headers
X-Tebex-Secret
string
The secret key of a server.
Request Body
amount
string
The currency value the gift card should have added to it.
Last updated
Was this helpful?