Balance
The balance is returned in cents
GET
https://getnude.app/api/mch/balance
Name
Type
Required
Description
Response
{
"code": 0,
"message": "",
"data": {
"balance": 79
}
}
{
"code": 50,
"message": "AccountNotAllowedUseApiErr",
"data": null
}
const axios = require('axios');
let data = JSON.stringify({
"timestamp": "xxxx",
"sign": "xxxx",
"merchant_no": "xxx"
});
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://getnude.app/api/mch/balance',
headers: {
'Content-Type': 'application/json'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import http.client
import json
conn = http.client.HTTPSConnection("getnude.app")
payload = json.dumps({
"timestamp": "xxx",
"sign": "xxx",
"merchant_no": "xxx"
})
headers = {
'Content-Type': 'application/json'
}
conn.request("GET", "/api/mch/balance", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location --request GET 'https://getnude.app/api/mch/balance' \
--header 'Content-Type: application/json' \
--data '{
"timestamp": "xxx",
"sign": "xxx",
"merchant_no": "xxx"
}'