API Reference

v1.0.0 • REST API

https://cryptomepay.com/api/v1

Authentication

The Cryptome Pay API uses API keys to authenticate requests. You can view and manage your API keys in the dashboard.

Headers
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Create Payment Order

Create a new transaction order to receive payment.

POST /order/create-transaction

Request Body

{
  "order_id": "ORDER_20260101_001",
  "amount": 100.00,
  "notify_url": "https://your-site.com/webhook",
  "chain_type": "TRC20" // Optional, default TRC20
}

Success Response

{
  "status_code": 200,
  "data": {
    "trade_id": "CP2026...",
    // The exact amount customer needs to pay
    "actual_amount": 15.6250, 
    "token": "0xYourWalletAddress...",
    "payment_url": "https://pay.cryptomepay.com/..."
  }
}

Embedded Integration (JS)

You can check payment status using our polling API or Webhooks.

// Example: Check payment status
const checkStatus = async (tradeId) => {
  const res = await fetch(`/api/v1/order/query?trade_id=${tradeId}`, {
    headers: { 'Authorization': 'Bearer YOUR_KEY' }
  });
  const data = await res.json();
  
  if (data.data.status === 2) {
    console.log("Payment Confirmed!");
  }
};

Full OpenAPI Specification

For complete endpoint details, schemas, and examples, please download our OpenAPI Spec (YAML).