API Documentation

Everything you need to integrate crypto payments into your application. From simple checkout to advanced treasury management.

Quick Start Guide

Get up and running with crypto payments in under 10 minutes

1

Create Account

Sign up for your intrXn developer account

Visit business.intrxn.com to create your account and access the API integration tab.

2

Generate API Keys

Get your API and secret keys

Provide your website URL, add webhook callback URL, and generate your API credentials.

3

Make First Request

Create your first payment

Use our REST API to create a crypto payment with just a few lines of code.

4

Handle Webhooks

Process payment notifications

Set up webhook endpoints to receive real-time payment status updates.

Code Examples

Ready-to-use code snippets for common integration patterns

Create Payment
// Create a crypto payment
const timestamp = Math.floor(new Date() / 1000);

const headers = new Headers();
headers.append("X-intrXn-key", "your_api_key_here");
headers.append("X-intrXn-Timestamp", timestamp);
headers.append("Content-Type", "application/json");

const paymentData = {
  "orderId": "order_12345",
  "amount": 100,
  "currency": "$",
  "isFiat": false,
  "network": "polygon",
  "tokenAddress": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f", // USDT
  "redirectUrl": "https://yourstore.com/success"
};

const response = await fetch("https://api.intrxn.com/v1/payment", {
  method: 'POST',
  headers: headers,
  body: JSON.stringify(paymentData)
});

const result = await response.json();
if (result.result.status) {
  window.location = result.result.redirectUrl;
}

API Reference

Complete API endpoints and parameters reference

Create Payment

POST https://api.intrxn.com/v1/payment

Headers

X-intrXn-keyYour API key
X-intrXn-TimestampUnix timestamp
Content-Typeapplication/json

Parameters

orderIdstring

Unique order identifier

amountnumber

Payment amount

currencystring

Currency symbol (e.g., "$")

networkstring

Blockchain network (polygon, ethereum, etc.)

tokenAddressstring

Token contract address

redirectUrlstring

Success redirect URL

isFiatboolean

Whether payment is in fiat (default: false)

Webhook Events

POST {your_webhook_url}

Headers

x-intrxn-wh-signatureHMAC signature

Payload

paymentStatusstring

SUCCESS or FAILED

orderIdstring

Original order ID

paymentIdstring

intrXn payment ID

Expected Response

{ "status": true }

Supported Networks & Tokens

Accept payments across multiple blockchain networks

Polygon

USDCUSDTMATIC
0xc2132d05d31c914a87c6611c10748aeb04b58e8f

Ethereum

USDCUSDTETH
0xa0b86a33e6c3b3c4c6c4c4c4c4c4c4c4c4c4c4c4

BSC

USDCUSDTBNB
0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d

Arbitrum

USDCUSDTARB
0xff970a61a04b1ca14834a43f5de4533ebddb5cc8

Optimism

USDCUSDTOP
0x7f5c764cbc14f9669b88837ca1490cca17c31607

Avalanche

USDCUSDTAVAX
0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664

Ready to Start Building?

Get your API keys and start accepting crypto payments today