Prerequisites
Before you begin, make sure you have:- A Paycrest account with API access
- KYC verification completed (required for all participants)
- API credentials (API key and secret)
- Basic knowledge of REST APIs
Get API Credentials
Get API Credentials
Follow these steps to obtain your API credentials:
- Register an account at app.paycrest.io
- Complete KYC verification (required for compliance)
- Access your API key in your dashboard
Your API key should be kept secure and never shared publicly. It’s used to authenticate all API requests.
KYC Requirements
KYC Requirements
All participants must complete KYC verification before using the Paycrest protocol. This includes:
- Identity verification (government-issued ID)
- Address verification (utility bill or bank statement)
- Business verification (for corporate accounts)
- Compliance checks (sanctions screening)
Create Your First Payment Order
Let’s create a simple payment order to send USDT to a Nigerian bank account.Step 1: Get Exchange Rate
- cURL
- JavaScript
- Python
- Go
Always fetch the latest rate before creating a payment order. Rates can change frequently, and using an outdated rate may cause your order to be refunded.
1
Get Exchange Rate
Fetch the current exchange rate for your token and currency pair.
2
Prepare Your Request
Set up your API key and prepare the payment order data with recipient details.
3
Send the Request
Make a POST request to the orders endpoint with your payment details.
4
Handle the Response
Process the response to get your order ID and payment instructions.
5
Monitor Status
Track your order status and handle webhooks for real-time updates.
Step 2: Create Payment Order
- cURL
- JavaScript
- Python
- Go
Response
Check Order Status
- cURL
- JavaScript
- Python
- Go
Order Statuses
- pending: Order created, waiting for provider assignment
- processing: Provider assigned, fulfillment in progress
- fulfilled: Payment completed by provider
- validated: Payment validated and confirmed
- settled: Order fully completed on blockchain
- cancelled: Order cancelled (with reason)
- refunded: Funds refunded to sender
Response Time
- Order Processing: < 30 seconds (creation → validation)
- Settlement: +15 seconds (onchain settlement)
- Total Time: ~1-2 minutes
- Auto-Refund: If not completed within 5 minutes
Handle Webhooks (Optional)
Set up webhooks to receive real-time updates through your Sender dashboard:- Log into your Sender dashboard at app.paycrest.io
- Navigate to Settings → Webhooks
- Enter your webhook URL (e.g.,
https://your-domain.com/webhooks/paycrest
) - Save the configuration
Webhook Payload Example
Get Supported Currencies
Check available currencies and institutions:Code Examples
JavaScript/Node.js
JavaScript/Node.js
Python
Python
Go
Go
Next Steps
Explore the API
Dive deeper into the Paycrest API with interactive examples and detailed documentation
Learn About Architecture
Understand how the Paycrest protocol works under the hood
Check Supported Assets
See all supported stablecoins, networks, and fiat currencies
Get Support
Need help? Contact our support team for assistance
This quickstart guide covers the basics. For production integration, make sure to implement proper error handling, webhook verification, and security best practices.