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

Checkout

Create a checkout url

POST https://plugin.tebex.io/checkout

Creates a URL which will redirect the player to the webstore and add the package to their basket.

Headers

Name
Type
Description

X-Tebex-Secret

string

The secret key of a server.

Request Body

Name
Type
Description

package_id

string

The ID of the package the players want to purchase.

username

string

The username of the player.

{
  "url": "http://example.tebex.io/buy/gj48f",
  "expires": "2015-11-30T18:10:18+0000"
}

PreviousPaymentsNextGift Cards

Last updated 1 year ago

Was this helpful?