API Testing Guide
Welcome to the BITXpay API testing documentation. This guide will help you quickly set up and test our merchant-facing APIs using various tools.
Quick Start
Choose your preferred testing method:
- Postman Setup - Complete guide for Postman with Ed25519 signature automation
- Other API Tools - Test with Insomnia, cURL, HTTPie, and more
- Troubleshooting - Common issues and solutions
Prerequisites
Before testing, you'll need:
- Merchant API Key - Your unique API key (format:
btxm_xxxxxxxx) - Merchant Private Key - Ed25519 private key in PKCS#8 PEM format
- API Testing Tool - Postman, Insomnia, cURL, etc.
Getting Your API Keys
Sandbox Environment
For testing, use the sandbox environment:
Base URL: https://sandboxapi.bitxpay.com/api/v1
To obtain your sandbox credentials:
- Log in to your BITXpay Dashboard
- Navigate to Settings → API Keys
- Click Generate Sandbox Keys
- Save both your API Key and Private Key securely
WARNING
Keep your private key secure! Never commit it to version control or share it publicly.
Production Environment
Base URL: https://api.bitxpay.com/api/v1
Production keys are available after account verification:
- Complete KYB verification in the dashboard
- Navigate to Settings → API Keys → Production
- Generate and securely store your production keys
Authentication Overview
BITXpay merchant APIs use Ed25519 signature authentication for enhanced security:
- Each request includes an API key, timestamp, and signature
- The signature is generated using Ed25519 (EdDSA) — no separate hash needed
- Signatures are valid for 5 minutes from the timestamp
- Ed25519 provides smaller signatures and faster signing compared to RSA
For detailed authentication information, see the Authentication Reference.
Testing Workflow
graph LR
A[Get API Keys] --> B[Configure Tool]
B --> C[Set Up Authentication]
C --> D[Make Test Request]
D --> E{Success?}
E -->|Yes| F[Test Other Endpoints]
E -->|No| G[Check Troubleshooting]
G --> DAvailable Endpoints for Testing
Payment Links API
- List Payment Links -
GET /payment_links - Create Payment Link -
POST /payment_links - Get Payment Link by ID -
GET /payment_links/{id} - Delete Payment Link -
DELETE /payment_links/{id}
See the Payment Links API Reference for detailed endpoint documentation.
Next Steps
- Set up Postman - Recommended for beginners
- Explore API endpoints - Learn about available APIs
- Review authentication - Understand security requirements
Support
Need help with testing?
- Email: api-support@bitxpay.com
- Documentation: https://docs.bitxpay.com/