SPKZHub ActiveX™

Information from The State of Sarkhan Official Records
Public Debt Tabulation Central
Tech:ActiveX
Depiction of ActiveX™

SPKZHub ActiveX™ also known as the book of nutz is the Open Interest Account Receivables tracking system.

The contract listed in the following system is considered open and shall be redeemable.

OpenData API Documentation

SPKZHub ActiveX™ OpenData API Documentation
  • เป็นลูกหนี้ ❎
  • เป็นหนูทดลอง OpenData API ✅

Overview

The SPKZHub ActiveX™ OpenData API provides access to financial transaction data for specific user accounts. This documentation describes the endpoints available, their parameters, and usage. The API responses are JSON-encoded, making it easy to integrate with various applications, including DataTables for web-based data visualization.

Base URL

https://api.monolidthz.com/xPense/v1/ActiveX.php

Endpoints

Get Total and Transaction Details

Retrieve the total transaction amount and detailed transaction data for a specific user.

Request
  • Method: GET
  • Endpoint: /ActiveX.php
  • Query Parameters:
    • id (integer, required): The unique identifier of the ActiveX dataset. Only specific IDs are allowed.
Example Request
GET https://api.monolidthz.com/xPense/v1/ActiveX.php?id=364
Response
  • Status Codes:
    • 200 OK: Successfully retrieved data.
    • 400 Bad Request: Missing or invalid id.
    • 403 Forbidden: Access to the specified id is not allowed.
    • 500 Internal Server Error: A server-side error occurred.
  • Response Body:
    • sum (float): The total transaction amount.
    • transactions (array): An array of transaction details, each containing:
      • txid (string): Transaction ID.
      • tx_memo (string): Transaction memo.
      • tx_amount (float): Transaction amount.
      • tx_time (string): Transaction timestamp.
Example Response
["-55000.00",[[2450,"\u0e08\u0e31\u0e2a\u0e21\u0e34\u0e19","-2500.00","2016-10-27 11:54:00"],[2451,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-200.00","2018-05-07 07:43:00"],[2452,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-1000.00","2018-05-20 17:41:00"],[2453,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-15000.00","2018-05-29 20:22:00"],[2454,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-10000.00","2018-06-10 11:33:00"],[2455,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","5000.00","2018-06-10 11:33:00"],[2456,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-5000.00","2018-06-12 13:23:00"],[2457,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-400.00","2018-06-21 15:30:00"],[2458,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-200.00","2018-06-25 01:06:00"],[2459,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a \u0e04\u0e48\u0e32\u0e2b\u0e2d\u0e1e\u0e31\u0e01","-5000.00","2018-07-01 06:27:00"],[2460,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a \u0e04\u0e48\u0e32\u0e2b\u0e2d\u0e1e\u0e31\u0e01","-10000.00","2018-07-06 07:03:00"],[2461,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-5000.00","2018-07-29 22:44:00"],[2462,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-1900.00","2018-10-28 13:30:00"],[2463,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-2000.00","2018-10-14 07:03:00"],[2464,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-500.00","2018-08-12 13:51:00"],[2465,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-1000.00","2018-11-11 05:22:00"],[2530,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a \u0e08\u0e32\u0e01\u0e08\u0e30\u0e22\u0e37\u0e21 7000 - 5000 - 3000 \u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u0e44\u0e14\u0e49\u0e22\u0e37\u0e21 300","-300.00","2018-11-28 11:05:00"],[2664,"\u0e1e\u0e35\u0e48\u0e1a\u0e32\u0e2a","-1000.00","2019-01-09 09:53:00"],[4436,"\u0e1a\u0e32\u0e2a","500.00","2021-08-01 01:34:00"],[6048,"\u0e1a\u0e32\u0e2a","500.00","2023-06-23 18:51:00"]]]

Integration with DataTables

To integrate the SPKZHub ActiveX™ OpenData API with DataTables, you can use the following JavaScript example:

HTML
<table id="transactions-table" class="display" style="width:100%">
    <thead>
        <tr>
            <th>Transaction ID</th>
            <th>Memo</th>
            <th>Amount</th>
            <th>Timestamp</th>
        </tr>
    </thead>
    <tbody>
    </tbody>
</table>
JavaScript
$(document).ready(function() {
    $('#transactions-table').DataTable({
        "ajax": {
            "url": "https://api.monolidthz.com/xPense/v1/ActiveX.php",
            "data": {
                "id": 364 // Replace with the desired ID
            },
            "dataSrc": function(json) {
                return json.transactions;
            }
        },
        "columns": [
            { title: "TX#" },
            { title: "คำอธิบาย" },
            { title: "จำนวนเงิน" },
            { title: "วันที่/เวลา" },
        ]
    });
});