Sales

Get all sales

GET https://plugin.tebex.io/sales

Return an array of all active sales on your account.

Headers

Name
Type
Description

X-Tebex-Secret

string

The secret key of a server.

{
  "data": [
      {
          "id": 2,
          "name": "Test Sale",
          "effective": {
              "type": "package",
              "packages": [
                  1234
              ],
              "categories": []
          },
          "discount": {
              "type": "percentage",
              "percentage": 20,
              "value": 0
          },
          "start": 1528791000,
          "expire": 1546593000,
          "order": 0
      },
      {
          "id": 1,,
          "name": "Testing Sale",
          "effective": {
              "type": "category",
              "packages": [],
              "categories": [
                  123,
                  456
              ]
          },
          "discount": {
              "type": "percentage",
              "percentage": 50,
              "value": 0
          },
          "start": 1528705560,
          "expire": 1539937560,
          "order": 1
      }
  ]
}

Last updated