Amount Converter
You must have the Authorization to use this API
Amount converter
POST
{{baseUrl}}/wp-json/rimplenet-wallet-addon/v1/amount-converter
Request Body
Name
Type
Description
amount_to_convert*
int
Enter the amount to be converted
conversion_rate*
int
Conversion rate
wallet_from*
String
Wallet address of user
{
"status_code": 200,
"status": true,
"message": "Amount conversion",
"data": {
"converted_amount": 3000
},
"submitted": {
"rate": 600,
"amount": "5",
"wallet_to": "usd",
"wallet_from": "ngn"
}
}
{
"status_code": 400,
"status": false,
"message": "invalid input",
"error": {
"wallet_to": "Field Cannot be empty"
}
}
To view request params, click on the arrow (>) at the right-hand side of the endpoint URL to expand or collapse
{
"status_code": 200,
"status": true,
"message": "Amount conversion",
"data": {
"converted_amount": 3000
},
"submitted": {
"rate": 600,
"amount": "5",
"wallet_to": "usd",
"wallet_from": "ngn"
}
}
{
"status_code": 400,
"status": false,
"message": "invalid input",
"error": {
"wallet_to": "Field Cannot be empty"
}
}
Amount Converter Multi Live
Amount Converter Multi Live
POST
{{baseUrl}}/wp-json/rimplenet-wallet-addon/v1/amount-converter-multi
Request Body
Name
Type
Description
conversions
String
wallet_to
String
{
"status_code": 200,
"status": true,
"message": "Amount Conversion",
"data": {
"converted_amount": {
"usd": 32000,
"btc": 630,
"eth": 2700
}
},
"submitted": {
"rate": {
"usd": {
"amount": 40,
"rate": 800
},
"btc": {
"amount": 90,
"rate": 7
},
"eth": {
"amount": 4,
"rate": 675
}
},
"wallet_to": "ngn"
}
}
{
"status_code": 400,
"status": false,
"message": "",
"error": {
"usd": {
"msg_amount": "invalid_amount_conversion",
"amount": -40
},
"btc": {
"msg_rate": "invalid_conversion_rate",
"rate": -7
}
},
"submitted": {
"rate": {
"usd": {
"amount": -40,
"rate": 800
},
"btc": {
"amount": 0,
"rate": -7
},
"eth": {
"amount": 4,
"rate": 675
}
},
"wallet_to": "ngn"
}
}
{
"status_code": 400,
"status": false,
"message": "invalid input",
"error": {
"rate": "Field Cannot be empty"
},
"submitted": {
"rate": null,
"wallet_to": "ngn"
}
}
To view request params, click on the arrow (>) at the right-hand side of the endpoint URL to expand or collapse
{
"status_code": 200,
"status": true,
"message": "Amount Conversion",
"data": {
"converted_amount": {
"usd": 32000,
"btc": 630,
"eth": 2700
}
},
"submitted": {
"rate": {
"usd": {
"amount": 40,
"rate": 800
},
"btc": {
"amount": 90,
"rate": 7
},
"eth": {
"amount": 4,
"rate": 675
}
},
"wallet_to": "ngn"
}
}
{
"status_code": 400,
"status": false,
"message": "",
"error": {
"usd": {
"msg_amount": "invalid_amount_conversion",
"amount": -40
},
"btc": {
"msg_rate": "invalid_conversion_rate",
"rate": -7
}
},
"submitted": {
"rate": {
"usd": {
"amount": -40,
"rate": 800
},
"btc": {
"amount": 0,
"rate": -7
},
"eth": {
"amount": 4,
"rate": 675
}
},
"wallet_to": "ngn"
}
}
{
"status_code": 400,
"status": false,
"message": "invalid input",
"error": {
"rate": "Field Cannot be empty"
},
"submitted": {
"rate": null,
"wallet_to": "ngn"
}
}
Last updated