Plugin API
HomeGitHub
  • Welcome
  • Rate Limits
  • Authentication
  • Error Handling
  • Official Plugins
  • RPC
  • Endpoints
    • Information
    • Command Queue
    • Listing
    • Packages
    • Community Goals
    • Payments
    • Checkout
    • Gift Cards
    • Coupons
    • Bans
    • Sales
    • Player Lookup
    • Customer Purchases
Powered by GitBook
On this page

Was this helpful?

  1. Endpoints

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
      }
  ]
}
PreviousBansNextPlayer Lookup

Last updated 2 years ago

Was this helpful?