Skip to main content
This guide walks you through creating your first customer, product, and invoice using the TRXN API.

Prerequisites

  • A TRXN account (sign up)
  • An API token (create one in Settings > API Tokens)

1. Authenticate

All API requests require a Bearer token in the Authorization header.
Test your token:

2. Create a customer

Response
Save the id — you’ll need it for invoices.

3. Create a product and price

Then create a price for the product:
Amounts are in cents. 4900 = $49.00 USD.

4. Create an invoice

Response

5. Add a crypto address

Add a Bitcoin or Ethereum address to receive payments:

6. Receive and verify payments

When a customer sends crypto to your address, TRXN:
  1. Detects the transaction on the blockchain
  2. Looks up the historical price at the exact transaction time
  3. Converts the crypto amount to fiat (USD)
  4. Applies the slippage margin tolerance
  5. Allocates the payment to outstanding invoices
You can also set up webhooks to receive real-time notifications when payments are verified.

Next steps

Subscriptions

Set up recurring billing with multi-phase subscriptions.

Webhooks

Get notified when payments arrive, invoices change, and more.

Sandbox mode

Test your integration without affecting production data.

API reference

Explore the full API.