GetNude v1.0 API Reference
  • Image generation
  • Position generation
  • Balance
  • Webhook
  • Sign
Powered by GitBook
On this page

Balance

The balance is returned in cents

GET https://getnude.app/api/mch/balance

Name
Type
Required
Description

timestamp

String

Yes

Current timestamp

sign

String

Yes

Refer to the sign page

merchant_no

String

Yes

Merchant no

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"
}'
PreviousPosition generationNextWebhook

Last updated 1 year ago