Crypto2Cash API

Complete developer guide for integrating cryptocurrency exchange functionality

🚀

Easy Integration

RESTful API with JSON responses, comprehensive documentation, and interactive examples.

🔒

Secure & Reliable

API key authentication, webhook verification, and 99.9% uptime SLA guarantee.

Real-time Data

Live exchange rates, instant notifications, and real-time order status updates.

API Features

  • Real-time cryptocurrency exchange rates
  • Automated order processing and tracking
  • Webhook notifications for order updates
  • Support for Bitcoin, Ethereum, and 15+ cryptocurrencies
  • Comprehensive error handling and validation
  • Rate limiting and request throttling

Authentication

The Crypto2Cash API uses API keys to authenticate requests. All API requests must include your API key in the authorization header.

Authorization Header
Authorization: Bearer YOUR_API_KEY

🔑 Test Your API Key

Verify that your API key is working correctly

Base URL

All API requests should be made to the following base URL:

Production Base URL
https://api.crypto2cash.in.th/v1

Rate Limits

To ensure fair usage and system stability, our API implements the following rate limits:

Endpoint Type Rate Limit Window
General API calls 60 requests per minute
Exchange creation 10 requests per minute
Rate requests 100 requests per minute
💼

Need Higher Rate Limits?

If you require higher rate limits for your business needs, please contact your dedicated Account Manager that every partner receives. We'll take care of adjusting your limits to match your requirements.

Get Exchange Rates

Retrieve current exchange rates for supported cryptocurrency pairs.

GET /rates

Query Parameters

Parameter Type Required Description
from string required Source currency (e.g., "BTC", "ETH")
to string required Target currency (e.g., "THB", "USD")

🧪 Try It Out

Test this endpoint with live data

Example Response

200 OK
{ "success": true, "rate": 3250000.00, "currency_pair": "BTC/THB", "timestamp": 1703123456, "expires_at": 1703123756 }

Create Exchange

Create a new cryptocurrency exchange order.

POST /exchange

Request Body Parameters

Parameter Type Required Description
from_currency string required Source cryptocurrency (e.g., "BTC", "ETH")
to_currency string required Target currency (e.g., "THB", "USD")
amount number required Amount to exchange in source currency
recipient_wallet string required Recipient wallet address or bank account
webhook_url string optional URL to receive status updates

🧪 Try It Out

Test this endpoint with sample data

Example Request

POST /exchange
{ "from_currency": "BTC", "to_currency": "THB", "amount": 0.001, "recipient_wallet": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2", "webhook_url": "https://yoursite.com/webhook" }

Example Response

201 Created
{ "success": true, "exchange_id": "exch_7f3d9e2c4b8a", "status": "pending", "from_currency": "BTC", "to_currency": "THB", "amount": 0.001, "estimated_payout": 3250.00, "deposit_address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh", "expires_at": 1703127056, "created_at": 1703123456 }

Get Exchange Status

Retrieve the current status and details of an exchange order.

GET /exchange/{exchange_id}

Path Parameters

Parameter Type Required Description
exchange_id string required Unique identifier of the exchange order

🧪 Try It Out

Test this endpoint with a sample exchange ID

Possible Status Values

Status Description
pending Waiting for cryptocurrency deposit
confirming Transaction received, awaiting confirmations
processing Exchange in progress
completed Exchange completed successfully
failed Exchange failed or cancelled
expired Exchange expired (no deposit received)

Example Response

200 OK
{ "success": true, "exchange_id": "exch_7f3d9e2c4b8a", "status": "completed", "from_currency": "BTC", "to_currency": "THB", "amount_received": 0.001, "amount_sent": 3250.00, "final_rate": 3250000.00, "recipient_wallet": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2", "transaction_hash": "a1b2c3d4e5f6789...", "completed_at": 1703124256, "created_at": 1703123456 }

What Our Customers Say

4.5

Loading customer reviews...