GET /api/userinfo/{hcid}

const url = 'https://client.example.com/api/userinfo/0446';
    const options = {
        method: 'GET',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `hcla_ssiFTXhBkCurmomIsGaYqlMx58vBByGM`
        },
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

GET /api/package/{hcid}

const url = 'https://client.example.com/api/package/0446';
    const options = {
        method: 'GET',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
    };    
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

POST /api/coins/add

const url = 'https://client.example.com/api/coins/add';
    const options = {
        method: 'POST',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
        body: JSON.stringify({
            coins: 100,
            user: '0446'
        })
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

POST /api/coins/set

const url = 'https://client.example.com/api/coins/set';
    const options = {
        method: 'POST',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
        body: JSON.stringify({
            coins: 100,
            user: '0446'
        })
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

POST /api/coins/remove

const url = 'https://client.example.com/api/coins/remove';
    const options = {
        method: 'POST',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
        body: JSON.stringify({
            coins: 100,
            user: '0446'
        })
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

POST /api/coupons/create

const url = 'https://client.example.com/api/coins/remove';
    const options = {
        method: 'POST',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
        body: JSON.stringify({
            "code": "COUPON_CODE", // Specify the coupon name
            "coins": 100,          // Specify the number of coins for the coupon
            "ram": 2048,           // Specify the amount of RAM for the coupon (in MB)
            "disk": 3072           // Specify the disk space for the coupon (in MB)
            "cpu": 2,              // Specify the CPU limit for the coupon (percentage)
            "servers": 3,          // Specify the number of servers for the coupon
            "backups": 5,          // Specify the number of backups for the coupon
            "allocations": 6,      // Specify the number of allocations for the coupon
            "databases": 2,        // Specify the number of databases for the coupon
            "uses": 2              // Specify the number of times this coupon can be claimed
          })
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

GET /api/coupons/revoke/{code}

const url = 'https://client.example.com/api/coupons/revoke/{code}';
    const options = {
        method: 'GET',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

GET /api/coupons

const url = 'https://client.example.com/api/coupons';
    const options = {
        method: 'GET',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

POST /api/resources/set

const url = 'https://client.example.com/api/resources/set';
    const options = {
        method: 'POST',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
        body: JSON.stringify({
            "user": '1234',
            "ram": '1',
            "disk": '1',
            "cpu": '1',
            "servers": '1',
            "backups": '1',
            "allocations": '1',
            "databases": '1'
          })
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

POST /api/package/set

const url = 'https://client.example.com/api/package/set';
    const options = {
        method: 'POST',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
        body: JSON.stringify({
            "user": '1234',
            "package": 'default'
          })
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);

GET /api/[total/used]/[disk/ram]

const url = 'https://client.example.com/api/[total/used]/[disk/ram]';
    const options = {
        method: 'GET',
        headers: {
            "Content-Type": "application/json",
            "Authorization": `YOUR_API_KEY`
        },
    };
    const response = await fetch(url, options);
    const data = await response.json();
    console.log(data);