Sales

get
Get all sales

https://plugin.tebex.io/sales
Return an array of all active sales on your account.
Request
Response
Headers
X-Tebex-Secret
required
string
The secret key of a server.
200: OK
{
"data": [
{
"id": 2,
"effective": {
"type": "package",
"packages": [
1234
],
"categories": []
},
"discount": {
"type": "percentage",
"percentage": 20,
"value": 0
},
"start": 1528791000,
"expire": 1546593000,
"order": 0
},
{
"id": 1,
"effective": {
"type": "category",
"packages": [],
"categories": [
123,
456
]
},
"discount": {
"type": "percentage",
"percentage": 50,
"value": 0
},
"start": 1528705560,
"expire": 1539937560,
"order": 1
}
]
}