Using the Public API for public wallet
You can integrate CPAY in your system as payment method. After you've signed up you should to create a merchant and get API keys for client(public) wallet creation in your system.
Client wallet creating
Endpoint POST /api/public/wallet/{currencyId}
Path Parameters
Name
Type
Description
{
"data": {
"id": "string",
"address": "string",
"balance": 0,
"balanceUSD": 0,
"passphrase": "string"
}
}{
"message": "This currency is not supported."
}{
"status": "fail",
"data": {
"message": "Unauthorized"
}
}Wallet login
Endpoint POST /api/public/auth
Request Body
Name
Type
Description
Withdrawal from public wallet
Endpoint POST /api/public/withdrawal
Request Body
Name
Type
Description
Get wallet ballance
Endpoint GET /api/public/wallet
Last updated