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}
POST
https://api.cpay.world/api/public/wallet/{currencyId}
You need to log in to the merchant.
Path Parameters
currencyId*
String
You can login to wallet and get wallet access token necessary for witdrawal from wallet and for getting wallet ballance. You need to get api keys for your merchant, also you need wallet Id and wallet passphrase.
Wallet login
Endpoint POST /api/public/auth
POST
https://api.cpay.world/api/public/auth
Request Body
walletId*
String
passphrase*
String
publicKey*
String
privateKey*
String
Withdrawal from public wallet
Endpoint POST /api/public/withdrawal
POST
https://api.cpay.world/api/public/withdrawal
Endpoint allows you to withdraw funds to another wallet outside the system. The header contains the Bearer token, which can be obtained upon authorization under the merchant in conjunction with the wallet. You need to log in with the wallet in conjunction with the merchant.
Request Body
to*
String
amount*
Number
Get wallet ballance
Endpoint GET /api/public/wallet
GET
https://api.cpay.world/api/public/wallet
The endpoint allows you to get the current balance of the wallet. You need to log in with the wallet in conjunction with the merchant.
Last updated
Was this helpful?