Skip to main content
GET
/
send
/
accounts
List all accounts
curl --request GET \
  --url https://staging-api.chip-in.asia/api/send/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'checksum: <checksum>' \
  --header 'epoch: <epoch>'
import requests

url = "https://staging-api.chip-in.asia/api/send/accounts"

headers = {
"epoch": "<epoch>",
"checksum": "<checksum>",
"Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {epoch: '<epoch>', checksum: '<checksum>', Authorization: 'Bearer <token>'}
};

fetch('https://staging-api.chip-in.asia/api/send/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://staging-api.chip-in.asia/api/send/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"checksum: <checksum>",
"epoch: <epoch>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://staging-api.chip-in.asia/api/send/accounts"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("epoch", "<epoch>")
req.Header.Add("checksum", "<checksum>")
req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://staging-api.chip-in.asia/api/send/accounts")
.header("epoch", "<epoch>")
.header("checksum", "<checksum>")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://staging-api.chip-in.asia/api/send/accounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["epoch"] = '<epoch>'
request["checksum"] = '<checksum>'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "results": [
    {
      "id": 1,
      "status": "active",
      "currency": "MYR",
      "settlement_convert_approvals_count": 1,
      "send_fee": 1,
      "send_fee_type": "flat",
      "account_verification_fee": 1,
      "account_verification_fee_type": "flat",
      "convertible_balance_from_statement": 1000,
      "current_balance": 100,
      "created_at": "2023-07-20T08:35:25.389Z",
      "updated_at": "2023-07-20T08:35:25.389Z"
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "prev_page": null,
      "next_page": null,
      "total_pages": 1,
      "total_count": 1
    }
  }
}
{
"message": "Bad request",
"code": 400,
"data": {}
}
{
"message": "Unauthorized",
"code": 401,
"data": {}
}
{
"message": "You are not authorized to perform this action",
"code": 403,
"data": {}
}
{
"message": "Record not found",
"code": 404,
"data": {}
}
Use this endpoint to know:
  • Your available settlement (collection) amount that can be converted to CHIP Send Limit;
  • Current balance;
  • Send Fee;
  • Account Verification Fee;
  • No. of approvals required to convert collection balance to CHIP Send Limit
Please note that convertible_balance_from_statement will return different data depending on when you hit this endpoint. This adds flexibility and time for you to plan out your CHIP Send Budget Allocation requests, without having to send extra information. For example:
  • Trigger today at 11.59 PM MYT will return convertible balance from today’s collection.
  • Trigger tomorrow at 12.00 AM MYT will return convertible balance from today’s collection.
  • Trigger tomorrow at 11.59 AM MYT will return convertible balance from today’s collection.
  • Trigger tomorrow at 12.00 PM MYT will return convertible balance from tomorrow’s collection.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

epoch
integer<int64>
required

Unix epoch timestamp Unix timestamp (seconds).

Example:

1619740800

checksum
string
required

Refer to checksum calculation

Response

Successful response

results
object[]
meta
object