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"
}
'
{
  "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"
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

API key for authentication

Headers

provider
enum<string>
required

Provider name.

Available options:
BRI,
NTT
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.