Onramp
This endpoint calls the Pretium payment protocol to initiate cash collection from the user, confirm receipt via mobile money or bank transfer, and release the equivalent amount in stablecoins.
POST {{uri}}/v1/onramp/GHSBody Request
Name
Type
Description
shortcode
String
Customer's phone number
amount
Integer
Amount to collect
mobile_network
String
Mobile money network i.e MTN MoMo, AirtelTigo Money or Telecel Cash
chain
String
CELO, BASE ,STELLAR, TRON or SCROLL
asset
String
USDT, USDC or CUSD
address
String
0x3Eaab84B42F9fCf2A9B3f2FDB83572B4153eE958
callback_url
URL
URL to receive payment notification
{
"shortcode": "0525212418",
"amount": 50,
"mobile_network": "MTN MoMo",
"chain": "BASE",
"fee":10,
"asset": "USDC",
"address": "0x3Eaab84B42F9fCf2A9B3f2FDB83572B4153eE958",
"callback_url": "https://pretium.africa/b2c/log-test"
}{
"code": 200,
"message": "Prompt sent",
"data": {
"status": "PENDING",
"transaction_code": "DDM6D",
"message": "Success! Processing payment..."
}
}{
"code": 400,
"message": "Failed - Bad Request"
}Last updated