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 theAuthorization header.
2. Create a customer
Response
id — you’ll need it for invoices.
3. Create a product and price
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:- Detects the transaction on the blockchain
- Looks up the historical price at the exact transaction time
- Converts the crypto amount to fiat (USD)
- Applies the slippage margin tolerance
- Allocates the payment to outstanding invoices
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.