curl --request POST \
--url https://staging-api.chip-in.asia/api/send/send_limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'checksum: <checksum>' \
--header 'epoch: <epoch>' \
--data '{
"amount": 0
}'import requests
url = "https://staging-api.chip-in.asia/api/send/send_limits"
payload = { "amount": 0 }
headers = {
"epoch": "<epoch>",
"checksum": "<checksum>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
epoch: '<epoch>',
checksum: '<checksum>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({amount: 0})
};
fetch('https://staging-api.chip-in.asia/api/send/send_limits', 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/send_limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 0
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging-api.chip-in.asia/api/send/send_limits"
payload := strings.NewReader("{\n \"amount\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("epoch", "<epoch>")
req.Header.Add("checksum", "<checksum>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging-api.chip-in.asia/api/send/send_limits")
.header("epoch", "<epoch>")
.header("checksum", "<checksum>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.chip-in.asia/api/send/send_limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["epoch"] = '<epoch>'
request["checksum"] = '<checksum>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 0\n}"
response = http.request(request)
puts response.read_body{
"id": 2,
"currency": "MYR",
"fee_type": "flat",
"transaction_type": "in",
"amount": 200,
"fee": 0,
"net_amount": 200,
"from_settlement": "2023-07-21",
"status": "pending",
"expiry_reason": null,
"approvals_required": 0,
"approvals_received": 0,
"created_at": "2023-07-20T10:34:50.503Z",
"updated_at": "2023-07-20T10:34:50.503Z"
}{
"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": {}
}{
"message": "Too many requests. Please try again later.",
"code": 429,
"data": {
"retry_after": 300
}
}Increase Budget Allocation
Use this API to increase your CHIP Send Budget Allocation by converting an upcoming settlement amount. Upon initiation, all approvers will receive an email prompting them to approve the budget allocation.
Note: All CHIP Send Budget Allocation requests must be approved by 12 PM MYT the following day. Any requests still pending at 12 PM MYT on the next day will be marked as expired.
In production, there is no per-request or per-day cap on the allocation amount — the amount is limited only by the available settlement balance returned as convertible_balance_from_statement. The RM 1,000 daily limit applies only to the staging environment.
curl --request POST \
--url https://staging-api.chip-in.asia/api/send/send_limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'checksum: <checksum>' \
--header 'epoch: <epoch>' \
--data '{
"amount": 0
}'import requests
url = "https://staging-api.chip-in.asia/api/send/send_limits"
payload = { "amount": 0 }
headers = {
"epoch": "<epoch>",
"checksum": "<checksum>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
epoch: '<epoch>',
checksum: '<checksum>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({amount: 0})
};
fetch('https://staging-api.chip-in.asia/api/send/send_limits', 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/send_limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 0
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging-api.chip-in.asia/api/send/send_limits"
payload := strings.NewReader("{\n \"amount\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("epoch", "<epoch>")
req.Header.Add("checksum", "<checksum>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging-api.chip-in.asia/api/send/send_limits")
.header("epoch", "<epoch>")
.header("checksum", "<checksum>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.chip-in.asia/api/send/send_limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["epoch"] = '<epoch>'
request["checksum"] = '<checksum>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 0\n}"
response = http.request(request)
puts response.read_body{
"id": 2,
"currency": "MYR",
"fee_type": "flat",
"transaction_type": "in",
"amount": 200,
"fee": 0,
"net_amount": 200,
"from_settlement": "2023-07-21",
"status": "pending",
"expiry_reason": null,
"approvals_required": 0,
"approvals_received": 0,
"created_at": "2023-07-20T10:34:50.503Z",
"updated_at": "2023-07-20T10:34:50.503Z"
}{
"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": {}
}{
"message": "Too many requests. Please try again later.",
"code": 429,
"data": {
"retry_after": 300
}
}.json suffix counts toward the same limit. See Rate limits.Authorizations
Headers
Body
Response
Successful response
A Send Limit entry that records a balance change on your CHIP Send account.
Status will remain pending until all approvers have approved the send limit increase request.
A request that becomes expired carries the reason in expiry_reason — read that field instead of
assuming the request timed out, since an allocation can also expire because the settlement balance
moved or because a newer request replaced it.
pending, approved, expired "success"
Why the budget allocation expired, and null for every other status.
One of:
Requested amount exceeds the remaining convertible balance.— the settlement balance no longer covers the amount by the time the last approval arrived.The 12:00 PM (MYT) approval cut-off for this settlement date has passed.Superseded by a newer budget allocation request.— a newer request on the same send account cancels the pending one.
"Requested amount exceeds the remaining convertible balance."