Skip to main content
POST
/
commands
/
histories
Transaction List
curl --request POST \
  --url http://{IP_ADDRESS}:{PORT}/commands/histories \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'provider: <provider>' \
  --data '
{
  "commands": [
    "PAY"
  ],
  "statuses": [
    "SUCCESS"
  ],
  "from": "2025-06-17T15:00:00.000Z",
  "to": "2025-06-20T15:00:00.000Z"
}
'
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{IP_ADDRESS}:{PORT}/commands/histories",
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([
'commands' => [
'PAY'
],
'statuses' => [
'SUCCESS'
],
'from' => '2025-06-17T15:00:00.000Z',
'to' => '2025-06-20T15:00:00.000Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"provider: <provider>"
],
]);

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

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
HttpResponse<String> response = Unirest.post("http://{IP_ADDRESS}:{PORT}/commands/histories")
.header("provider", "<provider>")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"commands\": [\n \"PAY\"\n ],\n \"statuses\": [\n \"SUCCESS\"\n ],\n \"from\": \"2025-06-17T15:00:00.000Z\",\n \"to\": \"2025-06-20T15:00:00.000Z\"\n}")
.asString();
package main

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

func main() {

url := "http://{IP_ADDRESS}:{PORT}/commands/histories"

payload := strings.NewReader("{\n \"commands\": [\n \"PAY\"\n ],\n \"statuses\": [\n \"SUCCESS\"\n ],\n \"from\": \"2025-06-17T15:00:00.000Z\",\n \"to\": \"2025-06-20T15:00:00.000Z\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("provider", "<provider>")
req.Header.Add("X-API-KEY", "<api-key>")
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))

}
import requests

url = "http://{IP_ADDRESS}:{PORT}/commands/histories"

payload = {
"commands": ["PAY"],
"statuses": ["SUCCESS"],
"from": "2025-06-17T15:00:00.000Z",
"to": "2025-06-20T15:00:00.000Z"
}
headers = {
"provider": "<provider>",
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {
provider: '<provider>',
'X-API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
commands: ['PAY'],
statuses: ['SUCCESS'],
from: '2025-06-17T15:00:00.000Z',
to: '2025-06-20T15:00:00.000Z'
})
};

fetch('http://{IP_ADDRESS}:{PORT}/commands/histories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
require 'uri'
require 'net/http'

url = URI("http://{IP_ADDRESS}:{PORT}/commands/histories")

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

request = Net::HTTP::Post.new(url)
request["provider"] = '<provider>'
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"commands\": [\n \"PAY\"\n ],\n \"statuses\": [\n \"SUCCESS\"\n ],\n \"from\": \"2025-06-17T15:00:00.000Z\",\n \"to\": \"2025-06-20T15:00:00.000Z\"\n}"

response = http.request(request)
puts response.read_body
{
  "histories": [
    {
      "order_id": "test1223323",
      "terminal_id": "10362517",
      "terminal_reference": "1750407594445|1750407594",
      "payment_method": "QRIS",
      "amount": 100,
      "currency": "IDR",
      "transaction_date": "2025-06-20T08:19:54.000Z",
      "status": "SUCCESS"
    }
  ]
}
{
"error_code": "INVALREQUEST",
"message": "Invalid date range"
}
{
"error_code": "INVALCREDENTIAL",
"message": "Invalid API key"
}
{
"error_code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error"
}
{
"error_code": "INVALREQUEST",
"message": "Transaction Failed"
}

Authorizations

X-API-KEY
string
header
required

API key for authentication

Headers

provider
enum<string>
required

Provider name.

Available options:
BRI,
NTT,
CASHUP,
SHC
simulation
boolean

Simulation/mock response flag.

pretty-print
boolean

Json Pretty Formatter flag.

Body

application/json
commands
enum<string>[] | null

List of command types to filter by.

Available options:
PAY
Example:
["PAY"]
statuses
enum<string>[]

List of statuses to filter by.

Transaction status values

Available options:
SUCCESS,
FAILED
Example:
["SUCCESS"]
from
string<date-time> | null

Start date-time for the filter (ISO 8601 format).

Example:

"2025-06-17T15:00:00.000Z"

to
string<date-time> | null

End date-time for the filter (ISO 8601 format).

Example:

"2025-06-20T15:00:00.000Z"

Response

A list of transaction histories.

histories
object[]
required

A list of past transactions.