Overview
Tebex Headless API allows integration of your store directly into your own frontend or in-game.
Headless API Flow
Packages & Listings
Gets all categories from a webstore. This does not include package information. To include package information, add ?includePackages=1 to the URL.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbSuccessful response returns a list of category information.
Successful response returns a list of category information.
Gets all categories from a webstore including packages.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbSuccessful response returns a list of category information.
Successful response returns a list of category information.
Gets information about a category and returns the packages in that category.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe ID of the category to fetch.
127244343Successful response returns the category without package information.
Successful response returns the category without package information.
Gets information about a category and returns the packages in that category.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe ID of the category to fetch.
127244343Successful response returns the category with package information.
Successful response returns the category with package information.
Gets a package from a webstore by ID.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe package's ID.
1272441812Successful response returns the package information.
Successful response returns the package information.
Gets all packages from a webstore.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbSuccessful response returns a list of package information.
Successful response returns a list of package information.
Creating Baskets
Creates a new basket for use during checkout.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbA URL the user can return to when checkout is completed.
https://example.tebex.io/thank-youA URL the user can return to when cancelling checkout.
https://tebex.io/Custom data you wish to associate with the basket. This data will be included with webhook responses and GET requests associated with the Basket.
{"foo":"bar"}True if the user should automatically be redirected to the relevant complete/cancel URL
trueSuccessful response returns the basket information.
The provided webstore ID is invalid.
Fetches a basket's auth URL.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2cThe URL you would like to redirect the user to after successful basket authentication.
https://example.tebex.io/Successful response returns the basket auth information.
The provided webstore ID or basket ID is invalid.
Adding and Removing Packages
Add a package with the given ID to the basket.
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c62763161Successful response.
The provided request is invalid. The error response will include detail as to which parameter failed validation.
Remove the given package ID from the basket.
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c6276316Successful response returns the basket.
The provided request is invalid. The error response will include detail as to which parameter failed validation.
Coupons, Gift Cards, and Creator Codes
Applies a creator code to a basket.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2cAcademy10Successful response returns the basket.
The provided request is invalid. The error response will include detail as to which parameter failed validation.
Applies a creator code to a basket.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2cCreator code removed successfully.
The provided request is invalid. The error response will include detail as to which parameter failed validation.
No content
Applies a creator code to a basket.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c0127 0244 7210 1111Successful response returns the basket.
Successful response returns the basket.
Removes a gift card from the basket.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c0127 0244 7210 1111Gift card removed successfully.
The provided request is invalid. The error response will include detail as to which parameter failed validation.
No content
Applies a creator code to a basket.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2cAcademy10Successful response returns the basket.
Successful response returns the basket.
Removes a coupon code from a basket
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2cSuccessful response.
The provided request is invalid. The error response will include detail as to which parameter failed validation.
No content
Checkout
Gets a basket associated with the provided identifier.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cbThe basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2cSuccessful response returns the basket information.
Successful response returns the basket information.
Starter Template
Examples
Last updated

