API Reference for Crypto PayX

·

Overview

Crypto PayX is a comprehensive cryptocurrency payment solution designed for Payment Aggregators and Merchants. It enables secure deposits and payments using digital currencies, offering features like:

Base URL

The base URL for all API endpoints is:
https://api.cryptopayx.tech

HTTP Methods

The API follows RESTful design patterns using these methods:

Request Parameters

Arguments can be passed via:

Time Formats

All timestamps use milliseconds since UNIX epoch.

Response Data

Postman Integration

We provide Postman collections for easy testing:

HTTP Status Codes

CodeDescription
200Successful request
201Resource created
400Bad request
401Unauthorized
404Resource not found
500Server error

Authentication

API Keys

Access requires API key/secret pairs generated through the Client Area (Security settings). Key management includes:

// C# Authentication Example
using System.Security.Cryptography;
using System.Text;
using Newtonsoft.Json;

var apiKey = "YOUR_API_KEY";
var apiSecret = "YOUR_API_SECRET";

var client = new HttpClient {
    BaseAddress = new Uri("https://api.cryptopayx.tech")
};

// Request setup
var path = "/v1/test-api";
var requestBody = JsonConvert.SerializeObject(new { test = "value" });
var request = new HttpRequestMessage() {
    Method = HttpMethod.Post,
    Content = new StringContent(requestBody, Encoding.UTF8, "application/json"),
    RequestUri = new Uri(path, UriKind.Relative)
};

// Generate signature
using HMACSHA256 hmac = new HMACSHA256(Convert.FromBase64String(apiSecret));
using var sha256 = SHA256.Create();
var contentHash = Convert.ToBase64String(sha256.ComputeHash(Encoding.UTF8.GetBytes(requestBody)));
var timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
var signatureString = $"{timestamp}{request.Method}{path}{contentHash}";
var signatureHash = hmac.ComputeHash(Encoding.UTF8.GetBytes(signatureString));

// Add headers
request.Headers.Add("CRYPTO-PAY-API-KEY", apiKey);
request.Headers.Add("CRYPTO-PAY-API-SIGN", Convert.ToBase64String(signatureHash));
request.Headers.Add("CRYPTO-PAY-API-TIMESTAMP", timestamp.ToString());

// Execute request
var response = await client.SendAsync(request);

Sandbox Environment

For testing purposes, use:
https://api.sandbox.cryptopayx.tech

Sandbox Features

Payment Intents

Payment intents facilitate crypto deposits with these key features:

Payment Intent Statuses

StatusDescriptionThresholdConversion
PendingAwaiting depositN/AN/A
CompletedSuccessful completionSatisfiedN/A
Partially CompletedPartial amount receivedSatisfiedN/A
Manual Action RequiredAction neededNot satisfiedVaries
FailedUnsuccessful completionN/AN/A

Payment Methods

1. API Integration

Direct integration using REST endpoints for maximum flexibility.

2. Iframe Integration

Embeddable payment interface for quick implementation.

3. Payment Links

Shareable links for one-time payments (valid for 5 days).

Conversion Options

Customizable conversion rules:

FAQ

How do I get API credentials?

Credentials can be generated in the Client Area under Security Settings. Contact support if you need Sandbox access.

What's the payment intent timeout?

Payment intents expire after 30 seconds with no deposit.

Can I reuse deposit addresses?

Single-address mode is available upon request for merchants needing permanent addresses.

How are refunds handled?

Failed payments can be refunded manually or via automated refund links valid for 120 hours.

What currencies are supported?

We support major cryptocurrencies and fiat currencies including virtual fiats for regional compliance.

👉 Explore Crypto PayX Documentation
👉 Get Started with Crypto Payments