Creating a Basket
Depending on the type of Tebex store you are integrating, additional parameters may be necessary before the basket can be successfully created.
Authorizing Baskets
For most stores, the user must authorize their account before checkout is completed. This is done via the /auth endpoint where we will return the authentication options available for your store.
Provide a returnUrl
, and after successful authentication the user will be directed back to your site.
Minecraft and Overwolf Stores
You must provide the username
parameter as part of the basket creation request so that the basket is attributed to the correct user:
If you are creating a basket on your backend server, you will need to provide us the ip_address
of the customer.
Currently we are unable to support IPv6 addresses being provided in the ip_address
property. While we work on enabling IPv6 support, please provide an IPv4 address for the customer.
If you are creating a basket from the user's browser, we will automatically determine the IP from the requesting device.
The Basket
which is returned will include the username_id
which may be required for certain endpoints.
You should save the username_id as part of the user's session for use later.
Universal Stores
No username
is required, but depending on your package Deliverables you may need to provide variable_data
so that the package is attributed to the correct user. See Adding Packages.
Last updated