Overview

Develop advanced custom checkout experiences.

The Checkout API is designed to allow creators to use Tebex's Merchant of Record platform without the need to use a Tebex-powered webstore.

If you haven't already done so, we recommend having a read of our quick start guide before beginning integration.

This means creators can create baskets with custom products (as opposed to pre-created products on our webstore platform), and send customers directly to the checkout flow to proceed with payment.

The Checkout API can be used with Tebex.js for a fully embedded checkout experience without the user ever leaving your own website.

Terminology

TermDescription

Basket

To start a transaction, a basket must be created. The basket, similar to a standard eCommerce basket will contain the items that the customer is purchasing

Ident

A string identifier representing the basket

Checkout API Flow

Below is the expected flow your application should follow when implementing the Checkout API. This should be considered a general guideline. For a full list of endpoints available, see the Endpoints page.

You have two options for implementing Checkout API. We include a Checkout request where all data about the customer and their desired packages can be provided in one request.

Option 1. Using the Checkout Request

If your app has existing basket functionality, we recommend using a Checkout request. You can send the details of your customer, basket, and sale information all in one request:

Option 2. Using the Tebex Basket

If you do not have existing basket functionality in your app, you can use the Checkout API to fully manage the customer's basket on Tebex:

  1. Create a basket for the customer.

    • Your app should save the ident value for reference later, as this is the identifier for this customer's basket.

  1. Add or remove packages from the customer's basket as desired.

  1. Add any desired sales / discounts to the basket

  1. Direct the user to the basket's links.checkout URL in order to complete payment.

  1. After payment is complete, you may verify payment if you wish by checking the links.payment URL associated with the customer's basket.

Recurring Payments

Tebex Checkout supports recurring payments in addition to single, one-time payments. Below are the endpoints you can use for managing a customer's recurring payments.

OpenAPI Schema and SDKs

Tebex Checkout is documented with OpenAPI. To view the schema and available SDKs, see our releases on GitHub.

Postman Schema

An importable Postman collection can always be downloaded from Tebex Checkout's repository on GitHub.

Examples

The following websites are integrated using the Checkout API.

Last updated