Endpoints

Fetch a webstore by its identifier

get

Gets the webstore associated with the provided identifier.

Path parameters
tokenstringRequired

The webstore identifier.

Example: some-uuid
Responses
200

Successful response returns the webstore's information.

application/json
get
/accounts/{token}
200

Successful response returns the webstore's information.

Fetch the custom pages associated with the store.

get

Gets a list of custom pages associated with the webstore. These contain a content variable with the HTML content of the page.

Path parameters
tokenstringRequired

The webstore identifier.

Example: some-uuid
Responses
200

Successful response returns the webstore's pages.

application/json
get
/accounts/{token}/pages
200

Successful response returns the webstore's pages.

Baskets

Fetch a basket from a webstore by its identifier

get

Gets a basket associated with the provided identifier.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Responses
200

Successful response returns the basket information.

application/json
get
/accounts/{token}/baskets/{basketIdent}
200

Successful response returns the basket information.

Create a new basket

post

Creates a new basket for use during checkout.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
Body
complete_urlstringOptional

A URL the user can return to when checkout is completed.

Example: https://example.tebex.io/thank-you
cancel_urlstringOptional

A URL the user can return to when cancelling checkout.

Example: https://tebex.io/
customobjectOptional

Custom data you wish to associate with the basket. This data will be included with webhook responses and GET requests associated with the Basket.

Example: {"foo":"bar"}
complete_auto_redirectbooleanOptional

True if the user should automatically be redirected to the relevant complete/cancel URL

Example: true
Responses
200

Successful response returns the basket information.

application/json
post
/accounts/{token}/baskets

Get authentication links for a basket.

get

Fetches a basket's auth URL.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
returnUrlstringRequired

The URL you would like to redirect the user to after successful basket authentication.

Example: https://example.tebex.io/
Responses
200

Successful response returns the basket auth information.

application/json
get
/accounts/{token}/baskets/{basketIdent}/auth?returnUrl={returnUrl}

Category and Package Retrieval

Gets all categories available in the webstore.

get

Gets all categories from a webstore. This does not include package information. To include package information, add ?includePackages=1 to the URL.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
Responses
200

Successful response returns a list of category information.

application/json
get
/accounts/{token}/categories
200

Successful response returns a list of category information.

Gets a store's categories including all package information with them.

get

Gets all categories from a webstore including packages.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
Responses
200

Successful response returns a list of category information.

application/json
get
/accounts/{token}/categories?includePackages=1
200

Successful response returns a list of category information.

Gets a store's categories including all package information with them.

get

Gets all categories from the webstore, returning active tier information for the given player.

Authorizations
AuthorizationstringRequired
Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
usernameIdintegerRequiredExample: 76561198042467020
Responses
200

Successful response returns a list of category information.

application/json
get
/accounts/{token}/categories?usernameId={usernameId}&includePackages=1
200

Successful response returns a list of category information.

Gets information about a specific category

get

Gets information about a category and returns the packages in that category.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
categoryIdstringRequired

The ID of the category to fetch.

Example: 127244343
Responses
200

Successful response returns the category without package information.

application/json
get
/accounts/{token}/categories/{categoryId}
200

Successful response returns the category without package information.

Gets information about a specific category, including all the packages in the category

get

Gets information about a category and returns the packages in that category.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
categoryIdstringRequired

The ID of the category to fetch.

Example: 127244343
Responses
200

Successful response returns the category with package information.

application/json
get
/accounts/{token}/categories/{categoryId}?includePackages=1
200

Successful response returns the category with package information.

Fetch a package from a webstore by its identifier

get

Gets a package from a webstore by ID.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
packageIdintegerRequired

The package's ID.

Example: 1272441812
Responses
200

Successful response returns the package information.

application/json
get
/accounts/{token}/packages/{packageId}
200

Successful response returns the package information.

Fetch all packages from a webstore

get

Gets all packages from a webstore.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
Responses
200

Successful response returns a list of package information.

application/json
get
/accounts/{token}/packages
200

Successful response returns a list of package information.

Fetch a package from a webstore by its identifier

get

Gets all packages from a webstore.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
ipAddressstringRequired

An IP address can be provided with authenticated requests.

Example: 127.0.0.1
Responses
200

Successful response returns a list of package information.

application/json
get
/accounts/{token}/packages?ipAddress={ipAddress}

Fetch a package from a webstore by its identifier

get

Gets all packages from a webstore.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Responses
200

Successful response returns a list of package information.

application/json
get
/accounts/{token}/packages?basketIdent={basketIdent}

Fetch a package from a webstore by its identifier

get

Gets all packages from a webstore.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
ipAddressstringRequired

An IP address can be provided with authenticated requests.

Example: 127.0.0.1
Responses
200

Successful response returns a list of package information.

application/json
get
/accounts/{token}/packages?ipAddress={ipAddress}&basketIdent={basketIdent}

Promotions and Discounts

Apply a creator code to a basket.

post

Applies a creator code to a basket.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Body
creator_codestringOptionalExample: Academy10
Responses
200

Successful response returns the basket.

application/json
post
/accounts/{token}/baskets/{basketIdent}/creator-codes

Remove a creator code from the basket.

post

Applies a creator code to a basket.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Responses
200

Creator code removed successfully.

No content

post
/accounts/{token}/baskets/{basketIdent}/creator-codes/remove

No content

Apply a gift card to a basket.

post

Applies a creator code to a basket.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Body
card_numberstringOptionalExample: 0127 0244 7210 1111
Responses
200

Successful response returns the basket.

application/json
post
/accounts/{token}/baskets/{basketIdent}/giftcards
200

Successful response returns the basket.

Remove a gift card from the basket.

post

Removes a gift card from the basket.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Body
card_numberstringOptionalExample: 0127 0244 7210 1111
Responses
200

Gift card removed successfully.

No content

post
/accounts/{token}/baskets/{basketIdent}/giftcards/remove

No content

Apply a coupon to a basket.

post

Applies a creator code to a basket.

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Body
coupon_codestringOptionalExample: Academy10
Responses
200

Successful response returns the basket.

application/json
post
/accounts/{token}/baskets/{basketIdent}/coupons
200

Successful response returns the basket.

Remove a coupon from the basket.

post

Removes a coupon code from a basket

Path parameters
tokenstringRequired

The webstore identifier.

Example: t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Responses
200

Successful response.

No content

post
/accounts/{token}/baskets/{basketIdent}/coupons/remove

No content

Adding and Removing Packages

Add a package to a basket

post

Add a package with the given ID to the basket.

Path parameters
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Body
package_idstringOptionalExample: 6276316
quantityintegerOptionalExample: 1
Responses
200

Successful response.

application/json
post
/baskets/{basketIdent}/packages

Remove a package from a basket

post

Remove the given package ID from the basket.

Path parameters
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Body
package_idstringOptionalExample: 6276316
Responses
200

Successful response returns the basket.

application/json
post
/baskets/{basketIdent}/packages/remove

Updates the quantity of the given package in the basket. The user must be logged in before the quantity can be changed.

put

Sets the quantity of the given item in the basket.

Path parameters
basketIdentstringRequired

The basket identifier.

Example: c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
packageIdintegerRequired

The package identifier.

Example: 6276316
Body
quantityintegerOptionalExample: 1
Responses
200

Successful response.

No content

put
/baskets/{basketIdent}/packages/{packageId}

No content

Updates the given tier to the provided package.

patch

Updates a tier to a new package. A recurring payment updated webhook is sent when an update is successful.

Authorizations
AuthorizationstringRequired
Path parameters
tokenstringRequired

The webstore identifier.

Example: some-uuid
tierIdintegerRequired

The tier identifier

Example: 6276316
Body
package_idintegerOptionalExample: 6834822
Responses
200

Successful response.

application/json
patch
/accounts/{token}/tiers/{tierId}
200

Successful response.

Retrieves the available sidebar modules.

get

Retrieves the available sidebar modules configured for the store.

Path parameters
tokenstringRequired

The webstore identifier.

Example: some-uuid
Responses
200

Successful response.

application/json
get
/accounts/{token}/sidebar
200

Successful response.

Last updated

Was this helpful?