Integration Flow:
- Fetch available assets (fiat, crypto, and payment methods).
- Use those to fetch real-time quotes.
- Create a transaction using preferred assets.
- Redirect users to the checkout URL.
- Handle transaction updates through webhooks or via long polling our transaction endpoints.
1. Get Supported Crypto Currencies
Endpoint:GET /crypto-currencies
Description: Returns a list of all supported cryptocurrencies and their networks.
Response Example:
2. Get Supported Fiat Currencies
Endpoint:GET /fiat-currencies
Description: Lists our supported fiat currencies for transactions.
Response Example:
3. Get Payment Methods
Endpoint:GET /payment-methods
Description: Returns all supported payment methods for buying or selling crypto.
Response Example:
4. Get Quotes
Endpoint:GET /quotes
Description: Fetches exchange rate quotes from all supported providers.
Required Query Parameters:
| Parameter | Type | Example | Description |
|---|---|---|---|
fiat_currency | string | "USD" | The fiat currency to use. |
crypto_currency | string | "BTC" | The crypto currency to buy/sell. |
payment_method | string | "credit_debit_card" | Chosen payment method. |
network | string | "mainnet" | Blockchain network for crypto. |
amount | number | 900 | Fiat amount for the transaction. |
type | string | "BUY" | Transaction type — BUY or SELL. |
5. Create Transaction
Endpoint:POST /transactions
Description: Creates a new transaction and returns a checkout URL for the user to complete payment.
Required JSON Body:
| Parameter | Type | Example | Description |
|---|---|---|---|
fiat_currency | string | "USD" | Fiat currency code. |
crypto_currency | string | "BTC" | Crypto currency code. |
payment_method | string | "credit_debit_card" | Payment method identifier. |
network | string | "mainnet" | Crypto network. |
amount | number | 900 | Fiat amount. |
type | string | "BUY" | Transaction type (BUY or SELL). |
provider | string | "guardarian" | The provider to use for this transaction. |
partner_context | string | "abcd" | A unique string to identify transactions (useful for webhook correlation). |
redirect_url | string | https://website.com/success | URL to redirect to after a successful transaction. |
6. Handle Webhooks
Description: Receive updates for transaction status changes. Sample Payload:transaction.pendingtransaction.successtransaction.failed
✅ When to Use
- You want full control of UX and transaction logic.
- You’re integrating crypto buy/sell within your product flow.
- You need flexibility in pricing, routing, or KYC handling.
🚀 Next Steps
- Obtain your API key from the Partner Dashboard.
- Review the OpenAPI Reference for detailed request/response models.
- Set up Webhooks to monitor transaction lifecycle.