API reference

Use the Bias API to accept payments, manage customers, and more.

Getting started

First, sign up for a Bias account. Your account includes a sandbox for testing your integration before going live. To make requests, create an API key in the dashboard.

To accept payments on your site, start with Checkout elements.

OpenAPI specification

Every resource, request and response in the Bias API is described in its OpenAPI specification.

Create a checkout session

const checkoutSession = await bias.checkoutSessions.create({
  customer: "cus_aB4DEXqbFGOlpEOxwp0Fx1",
  line_items: [
    {
      price: "price_dz1NVvl5CSogERkeA9Ng67",
      quantity: 2
    }
  ]
});

Resources

Payments

Charge a customer's card or bank account.

Checkout sessions

Collect a payment or start a subscription through checkout.

Subscriptions

Charge customers on a recurring schedule.

Customers

Store customer details and use them to create payments.

Payment methods

Save cards and bank accounts to charge later.

Products

Items and services you sell.

Prices

Commerical offering of a product.

Invoices

Bill customers and track what they owe and pay.