API Integration
Integrate iPint payment APIs for a custom checkout experience.
API Integration
For full control over the payment experience, integrate iPint's APIs directly. The core workflow uses four endpoints.
Workflow
List supported currencies
Call
GET /currenciesto get the list of cryptocurrencies your customers can pay with.Get an estimated price
Call
GET /priceswith the selected currency to get the current exchange rate and conversion limits.Create a payment
Call
POST /invoicewith the conversion details and amount to generate a QR code and deposit address for your customer.Check payment status
Call
GET /invoiceto verify the payment status. This is also triggered by the webhook callback when the status changes.
Endpoints at a glance
| Method | Endpoint | Description |
|---|---|---|
GET | /currencies | List supported cryptocurrencies |
GET | /prices | Get estimated price in selected crypto |
POST | /invoice | Create a payment (generates QR) |
GET | /invoice | Check payment status and details |
Example: create an invoice
// POST /invoice — Generate QR code
const response = await fetch(
"https://api.ipint.io:8003/invoice",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
conversion_id: "1xmKHnsJH23", // from /prices
amount_in_usd: "1250.00",
amount_in_crypto: "1250",
crypto_code: "USDTERC20"
}),
}
);
const {
invoice_id,
deposit_address,
qr_string,
invoice_amount_in_crypto
} = await response.json();
// Display the QR code to your customer for paymentBase URLs
| Environment | Base URL |
|---|---|
| Mainnet (Production) | https://api.ipint.io:8003 |
| Testnet (Development) | https://api.ipint.io:8002 |
The difference between Testnet and Mainnet is the port: 8002 for testnet, 8003 for production. Always test on testnet first.
Full API documentation
For the complete REST API reference with all endpoints, parameters, and response schemas, see:
- API Reference — detailed endpoint documentation
- Interactive Swagger docs — try endpoints live
- GitHub examples — integration code
Next steps
- Authentication — how to sign requests with HMAC
- Receive a payment — step-by-step guide
- Testing on Testnet — test before going live