Gift Cards
Last updated
Last updated
GET
https://plugin.tebex.io/gift-cards
Return an array of all gift cards on your account.
Name | Type | Description |
---|---|---|
GET
https://plugin.tebex.io/gift-cards/{id}
Retrieve a gift card by ID.
GET
https://plugin.tebex.io/gift-cards/lookup/{code}
Retrieve a gift card by its code.
POST
https://plugin.tebex.io/gift-cards
Create a gift card of a specified amount.
DELETE
https://plugin.tebex.io/gift-cards/{id}
Void a gift card to prevent it from being used.
PUT
https://plugin.tebex.io/gift-cards/{id}
Top-up (Add more credit) to an existing gift card.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
X-Tebex-Secret
string
The secret key of a server.
id
string
The ID of a gift card.
X-Tebex-Secret
string
The secret key of a server.
code
string
The code of a gift card.
X-Tebex-Secret
string
The secret key of a server.
X-Tebex-Secret
string
The secret key of a server.
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.
id
string
The ID of the gift card.
X-Tebex-Secret
string
The secret key of a server.
id
string
The ID of the gift card.
X-Tebex-Secret
string
The secret key of a server.
amount
string
The currency value the gift card should have added to it.