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
Create Account
Sign up for your intrXn developer account
Visit business.intrxn.com to create your account and access the API integration tab.
Generate API Keys
Get your API and secret keys
Provide your website URL, add webhook callback URL, and generate your API credentials.
Make First Request
Create your first payment
Use our REST API to create a crypto payment with just a few lines of code.
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 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
Headers
X-intrXn-keyYour API keyX-intrXn-TimestampUnix timestampContent-Typeapplication/jsonParameters
orderIdstringUnique order identifier
amountnumberPayment amount
currencystringCurrency symbol (e.g., "$")
networkstringBlockchain network (polygon, ethereum, etc.)
tokenAddressstringToken contract address
redirectUrlstringSuccess redirect URL
isFiatbooleanWhether payment is in fiat (default: false)
Webhook Events
Headers
x-intrxn-wh-signatureHMAC signaturePayload
paymentStatusstringSUCCESS or FAILED
orderIdstringOriginal order ID
paymentIdstringintrXn payment ID
Expected Response
Supported Networks & Tokens
Accept payments across multiple blockchain networks
Polygon
Ethereum
BSC
Arbitrum
Optimism
Avalanche
Ready to Start Building?
Get your API keys and start accepting crypto payments today
