Skip to main content

Quickstart

This guide takes you from an API key to a customer you can use in a payment request. It uses the sandbox, so you can integrate without moving real money.

Before you begin

You need an Inflow organization with an API key. Create or copy the key from the Inflow Dashboard, then store it in an environment variable—never expose it in browser or mobile-app code.
API keys are scoped to one organization. Requests made with a key can access only that organization’s customers, payments, and wallets.

Authenticate requests

Send the key in the Authorization header as a Bearer token. Inflow also accepts the X-API-Key header, but use one method consistently.
A successful response confirms that the key is valid:

Create a customer

Create a customer before creating a payment. Save the returned data.id; it is the customerId required by the payment API.

Use the right environment

Keep sandbox and production keys separate. When you are ready to go live, switch both the base URL and the API key.

Next step

You now have a customer ID. Follow Collect a payment to create a payment request and direct the payer to checkout.