Schedule a statement
curl --request POST \
--url https://gate.chip-in.asia/api/v1/company_statements/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"format": "csv",
"timezone": "UTC"
}
'import requests
url = "https://gate.chip-in.asia/api/v1/company_statements/"
payload = {
"format": "csv",
"timezone": "UTC"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({format: 'csv', timezone: 'UTC'})
};
fetch('https://gate.chip-in.asia/api/v1/company_statements/', 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://gate.chip-in.asia/api/v1/company_statements/",
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([
'format' => 'csv',
'timezone' => 'UTC'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://gate.chip-in.asia/api/v1/company_statements/"
payload := strings.NewReader("{\n \"format\": \"csv\",\n \"timezone\": \"UTC\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://gate.chip-in.asia/api/v1/company_statements/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"format\": \"csv\",\n \"timezone\": \"UTC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gate.chip-in.asia/api/v1/company_statements/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"format\": \"csv\",\n \"timezone\": \"UTC\"\n}"
response = http.request(request)
puts response.read_body{
"format": "<string>",
"timezone": "Europe/Oslo",
"is_test": true,
"company_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"query_string": "<string>",
"status": "<string>",
"download_url": "<string>",
"began_on": 1619740800,
"finished_on": 1619740800,
"created_on": 1619740800,
"updated_on": 1619740800,
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}"{\n \"__all__\": {\n \"message\": \"descriptive error message\",\n \"code\": \"error_code\"\n }\n}\n"Company statements
Schedule a statement
Schedule a statement generation.
POST
/
company_statements
/
Schedule a statement
curl --request POST \
--url https://gate.chip-in.asia/api/v1/company_statements/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"format": "csv",
"timezone": "UTC"
}
'import requests
url = "https://gate.chip-in.asia/api/v1/company_statements/"
payload = {
"format": "csv",
"timezone": "UTC"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({format: 'csv', timezone: 'UTC'})
};
fetch('https://gate.chip-in.asia/api/v1/company_statements/', 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://gate.chip-in.asia/api/v1/company_statements/",
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([
'format' => 'csv',
'timezone' => 'UTC'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://gate.chip-in.asia/api/v1/company_statements/"
payload := strings.NewReader("{\n \"format\": \"csv\",\n \"timezone\": \"UTC\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://gate.chip-in.asia/api/v1/company_statements/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"format\": \"csv\",\n \"timezone\": \"UTC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gate.chip-in.asia/api/v1/company_statements/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"format\": \"csv\",\n \"timezone\": \"UTC\"\n}"
response = http.request(request)
puts response.read_body{
"format": "<string>",
"timezone": "Europe/Oslo",
"is_test": true,
"company_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"query_string": "<string>",
"status": "<string>",
"download_url": "<string>",
"began_on": 1619740800,
"finished_on": 1619740800,
"created_on": 1619740800,
"updated_on": 1619740800,
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}"{\n \"__all__\": {\n \"message\": \"descriptive error message\",\n \"code\": \"error_code\"\n }\n}\n"Authorizations
Query Parameters
Filter result set to only include specified payment methods(s). See PaymentMethod for more information. Payment method used to execute the transaction.
- crypto_coin: Crypto Coin
- dnqr: Dnqr
- duitnow_qr: Duitnow Qr
- fpx: FPX B2C
- fpx_b2b1: FPX B2B1
- maestro: Maestro payment card
- mastercard: Mastercard payment card
- mpgs_apple_pay: Apple Pay
- mpgs_google_pay: Mpgs Google Pay
- razer: Razer
- razer_atome: Razer Atome
- razer_grabpay: Razer Grabpay
- razer_maybankqr: Razer Maybankqr
- razer_shopeepay: Razer Shopeepay
- razer_tng: Razer Tng
- shopee_pay: Shopee Pay
- unknown: Payment method could not be determined
- visa: Visa payment card
Available options:
crypto_coin, dnqr, duitnow_qr, fpx, fpx_b2b1, maestro, mastercard, mpgs_apple_pay, mpgs_google_pay, razer, razer_atome, razer_grabpay, razer_maybankqr, razer_shopeepay, razer_tng, shopee_pay, unknown, visa Filter result set to only include specified products(s). See TransactionProduct for more information. Product category the transaction belongs to.
- bank_payment: bank_payment (Payment.payment_type == "bank_payment")
- custom_payment: custom_payment (Payment.payment_type == "custom_payment")
- invoice: Purchase created as an invoice through the merchant portal
- purchase: Purchase created through the merchant API (Purchase.product == "purchases")
- refund: refund (Payment.payment_type == "refund")
- subscription: Purchase created using a subscription
Available options:
bank_payment, custom_payment, invoice, purchase, refund, subscription Body
application/json
Response
OK