Appearance
API Transaction History List
API Transaction History List is used to retrieve transaction data within a specified time period.
API Information
| Field | Value |
|---|---|
| Path | /api/{version}/transaction-history-list |
| HTTP Method | POST |
| Service Code | 12 |
| Version | v1.0 |
| Type | JSON |
| Authentication | OAuth 2.0 with Access Token |
Request Structure
Request Header
Details
| Parameter / Field | Mandatory | Type | Description |
|---|---|---|---|
Content-Type | M | String | Indicates the media type of the resource. Use: application/json |
Authorization | M | String | Represents the access_token. Starts with "Bearer" followed by the access token. e.g.: Bearer eyJraWQiOi... |
X-TIMESTAMP | M | String | Client's current local time in yyyy-MM-ddTHH:mm:ss.SSSTZD format |
X-SIGNATURE | M | String | Symmetric signature using HMAC_SHA512. Formula: stringToSign = HTTPMethod + ":" + EndpointUrl + ":" + AccessToken + ":" + Lowercase(HexEncode(SHA256(minify(RequestBody)))) + ":" + TimeStamp. Notes: (1) Use full URL including all parameters. (2) If no Request Body, use empty string. |
X-PARTNER-ID | M | String | Unique partner ID. Use the iFortepay Client ID obtained after onboarding. |
X-EXTERNAL-ID | M | String | Numeric String. A unique reference number you generate. Must be unique on the same day. |
ORIGIN | O | String | Origin domain registered on the iFortepay system. |
CHANNEL-ID | M | String | Device identification on which the API services are being accessed. Use value: api |
M = Mandatory, O = Optional
Request Body
Details
| Parameter / Field | Mandatory | Type | Length | Description |
|---|---|---|---|---|
partnerReferenceNo | O | String | 64 | Transaction identifier on service consumer system |
fromDateTime | O | ISODateTime (ISO-8601) | 25 | Start of time range. Defaults to today if empty. |
toDateTime | O | ISODateTime (ISO-8601) | 25 | End of time range. Defaults to today if empty. |
pageSize | O | Int | 2 | Maximum number of transactions returned per page |
additionalInfo | O | Object | - | Additional information. See Additional Info Object Detail. |
filter | O | Object | - | Filter data based on given attributes. See Filter Object Detail. |
Filter Object Detail
| Parameter / Field | Mandatory | Type | Length | Description |
|---|---|---|---|---|
originalPartnerReferenceNo | O | String | 64 | Original transaction identifier on service consumer system |
originalReferenceNo | O | String | 64 | Original transaction identifier on service provider system |
bankCode | O | String | 8 | Transaction beneficiary bank code |
amount | O | String | - | Disbursement amount |
status | O | String | - | Transaction status: INIT (in progress), SUCCESS (completed), CANCELLED (failed — balance refunded) |
type | O | String | - | Transaction type: SEND_MONEY, REFUND, TOP_UP, INQUIRY |
beneficiaryAccountNo | O | String | - | Transaction beneficiary account number |
beneficiaryAccountName | O | String | - | Transaction beneficiary account name |
direction | O | String | - | Transfer direction: DOMESTIC (Regular Merchant), DOMESTIC_SPECIAL_MERCHANT (PJP/PPOB Merchant) |
Example Requests
Details
artifact
id: transaction-history-list-request
name: Example Requests - API Transaction History List
type: code.bash
content: |-
# ── Without Filter ──────────────────────────────────────────────
curl --location 'https://api-stage.senmo.id/api/v1.0/transaction-history-list' \
--header 'Content-Type: application/json' \
--header 'X-TIMESTAMP: 2023-02-21T15:44:35+07:00' \
--header 'X-SIGNATURE: bUTwcmcNf8BgV7H7WBvCQWFd8N5/hBWQgj/LdChrGyLDZdq2DeeMWyZH3z3YldEljDJZytg9xIvg82KmPuQ49A==' \
--header 'X-PARTNER-ID: MCPD00000012' \
--header 'X-EXTERNAL-ID: 1676969075287' \
--header 'CHANNEL-ID: api' \
--header 'ORIGIN: https://www.mcpayment.co.id' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--data '{
"partnerReferenceNo": "20230221-0004",
"fromDateTime": "2023-02-14T00:00:00+07:00",
"toDateTime": "2023-02-21T17:59:59+07:00",
"pageSize": 10,
"pageNumber": 1,
"additionalInfo": {}
}'
# ── With Filter ─────────────────────────────────────────────────
curl --location 'https://api-stage.senmo.id/api/v1.0/transaction-history-list' \
--header 'Content-Type: application/json' \
--header 'X-TIMESTAMP: 2023-02-21T15:44:35+07:00' \
--header 'X-SIGNATURE: bUTwcmcNf8BgV7H7WBvCQWFd8N5/hBWQgj/LdChrGyLDZdq2DeeMWyZH3z3YldEljDJZytg9xIvg82KmPuQ49A==' \
--header 'X-PARTNER-ID: MCPD00000012' \
--header 'X-EXTERNAL-ID: 1676969075287' \
--header 'CHANNEL-ID: api' \
--header 'ORIGIN: https://www.mcpayment.co.id' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--data '{
"partnerReferenceNo": "20230221-0004",
"fromDateTime": "2023-02-14T00:00:00+07:00",
"toDateTime": "2023-02-21T17:59:59+07:00",
"pageSize": 10,
"pageNumber": 1,
"additionalInfo": {
"filter": {
"status": "SUCCESS"
}
}
}'Response Structure
Response Header
Details
| Parameter / Field | Mandatory | Type | Description |
|---|---|---|---|
Content-Type | M | String | Value: application/json |
X-TIMESTAMP | M | String | Client's current local time in yyyy-MM-ddTHH:mm:ss.SSSTZD format |
Response Body
Details
| Parameter / Field | Mandatory | Type | Length | Description |
|---|---|---|---|---|
responseCode | M | String | 7 | Response code |
responseMessage | M | String | 150 | Response description |
referenceNo | M | String | 64 | Transaction identifier on service provider system. Filled upon successful transaction. |
partnerReferenceNo | O | String | 64 | Transaction identifier on service consumer system |
detailData | M | Array | - | Detail data of the transaction. See Detail Data section. |
additionalInfo | M | Object | - | Additional information containing pagination info & filter attributes |
Detail Data Array Detail
| Parameter / Field | Mandatory | Type | Length | Description |
|---|---|---|---|---|
dateTime | O | String | 25 | Date and time of created transaction (ISO 8601) |
amount | O | String | - | Transaction amount |
amount.value | M | String | 16,2 | Value of the transaction |
amount.currency | M | String | 3 | Currency of the transaction |
remark | O | String | 256 | Transaction description |
sourceOfFunds | O | Array | - | Source of funds. iFortepay uses only BALANCE. See Source of Funds Detail. |
status | M | String | 32 | Transaction status: INIT, SUCCESS, CANCELLED |
type | M | String | 32 | Transaction type: SEND_MONEY, REFUND, TOP_UP, INQUIRY |
additionalInfo | O | Object | - | Additional information from detailed transaction data. See Additional Info Object Detail. |
Source Of Funds Array Detail
| Parameter / Field | Mandatory | Type | Length | Description |
|---|---|---|---|---|
source | O | String | - | Source of funds. iFortepay uses only BALANCE. |
amount | O | Object | - | Total amount including transaction fee |
amount.value | M | String | 16,2 | Total amount value (including fee) |
amount.currency | M | String | 3 | Currency |
Transaction Data Additional Info Object Detail
| Parameter / Field | Mandatory | Type | Length | Description |
|---|---|---|---|---|
originalReferenceNo | O | String | 64 | Original transaction identifier on service provider system |
originalPartnerReferenceNo | O | String | 64 | Original transaction identifier on service consumer system |
beneficiaryAccountNo | M | String | 34 | Beneficiary account number |
beneficiaryAccountName | M | String | 50 | Beneficiary name |
bankCode | M | String | 8 | Beneficiary bank code |
bankName | O | String | - | Beneficiary bank name |
cancelledReason | C | String | - | Cancellation reason. Filled only if transaction status is CANCELLED. |
direction | M | String | - | Disbursement direction |
fee | M | Object | - | Fee disbursement |
fee.value | M | String | 16,2 | Fee value of disbursement transaction |
fee.currency | M | String | 3 | Currency |
timeServed | O | String | - | Date and time the transaction was processed |
createdFrom | O | String | - | Transaction creation source. Value: API (created via Open API) |
Additional Info Object Detail (Pagination)
| Parameter / Field | Mandatory | Type | Length | Description |
|---|---|---|---|---|
totalData | M | Integer | - | Total data returned across all pages |
pageSize | M | Integer | - | Total data returned on the current page |
pageNumber | M | Integer | - | Current page number |
totalPage | M | Integer | - | Total/max pages available |
filter | O | Object | - | Filter data based on given attributes |
Example Responses
Details
✅ Send Money — Success
json
{
"responseCode": "2001200",
"responseMessage": "Successful",
"partnerReferenceNo": "20230221-0004",
"referenceNo": "63f4841564c80e9691660ba3",
"detailData": [{
"dateTime": "2023-02-15T17:07:24+07:00",
"amount": { "value": "50000.00", "currency": "IDR" },
"remark": "Testing 1 - 15 Feb 23",
"sourceOfFunds": [{ "source": "BALANCE", "amount": { "value": "54500.00", "currency": "IDR" } }],
"status": "SUCCESS",
"type": "SEND_MONEY",
"additionalInfo": {
"originalReferenceNo": "63ecaedc50f15ec3dafbfafa",
"originalPartnerReferenceNo": "QA-20230215-001",
"beneficiaryAccountNo": "8753293240",
"beneficiaryAccountName": "Test BCA",
"bankCode": "014",
"bankName": "BCA",
"cancelledReason": "",
"direction": "DOMESTIC",
"fee": { "value": "4500.00", "currency": "IDR" },
"timeServed": "2023-02-15T16:53:18+07:00",
"createdFrom": "API"
}
}],
"additionalInfo": { "totalData": 1, "pageSize": 10, "pageNumber": 1, "totalPage": 1, "filter": {} }
}❌ Send Money — Cancelled
json
{
"responseCode": "2001200",
"responseMessage": "Successful",
"partnerReferenceNo": "20230221-0004",
"referenceNo": "63f4841564c80e9691660ba3",
"detailData": [{
"dateTime": "2023-02-15T17:07:24+07:00",
"amount": { "value": "50000.00", "currency": "IDR" },
"remark": "Testing 1 - 15 Feb 23",
"sourceOfFunds": [{ "source": "BALANCE", "amount": { "value": "54500.00", "currency": "IDR" } }],
"status": "CANCELLED",
"type": "SEND_MONEY",
"additionalInfo": {
"originalReferenceNo": "63ecaedc50f15ec3dafbfafa",
"originalPartnerReferenceNo": "QA-20230215-001",
"beneficiaryAccountNo": "8753293240",
"beneficiaryAccountName": "Test BCA",
"bankCode": "014",
"bankName": "BCA",
"cancelledReason": "CANCEL STG - 1",
"direction": "DOMESTIC",
"fee": { "value": "4500.00", "currency": "IDR" },
"timeServed": "2023-02-15T16:53:18+07:00",
"createdFrom": "API"
}
}],
"additionalInfo": { "totalData": 1, "pageSize": 10, "pageNumber": 1, "totalPage": 1, "filter": {} }
}💰 Top Up
json
{
"responseCode": "2001200",
"responseMessage": "Successful",
"partnerReferenceNo": "20230221-0004",
"referenceNo": "63f4841564c80e9691660ba3",
"detailData": [{
"dateTime": "2023-02-14T15:17:40+07:00",
"amount": { "value": "0.00", "currency": "IDR" },
"remark": "",
"sourceOfFunds": [{ "source": "", "amount": { "value": "10000.00", "currency": "IDR" } }],
"status": "SUCCESS",
"type": "TOP_UP",
"additionalInfo": {
"originalReferenceNo": "63eb43a484af5f60fb33fc51",
"timeServed": "2023-02-14T15:25:02+07:00",
"fee": "{}"
}
}],
"additionalInfo": { "totalData": 1, "pageSize": 10, "pageNumber": 1, "totalPage": 1, "filter": {} }
}🔄 Refund
json
{
"responseCode": "2001200",
"responseMessage": "Successful",
"partnerReferenceNo": "20230221-0004",
"referenceNo": "63f4841564c80e9691660ba3",
"detailData": [{
"dateTime": "2023-02-20T09:59:46+07:00",
"amount": { "value": "10000.00", "currency": "IDR" },
"remark": "",
"sourceOfFunds": [{ "source": "", "amount": { "value": "15000.00", "currency": "IDR" } }],
"status": "SUCCESS",
"type": "REFUND",
"additionalInfo": {
"originalReferenceNo": "63f2e22264c80e969166072c",
"timeServed": "2023-02-17T15:13:10+07:00",
"fee": { "value": "5000.00", "currency": "IDR" }
}
}],
"additionalInfo": { "totalData": 1, "pageSize": 10, "pageNumber": 1, "totalPage": 1, "filter": {} }
}🔍 Account Inquiry
json
{
"responseCode": "2001200",
"responseMessage": "Successful",
"partnerReferenceNo": "20230221-0004",
"referenceNo": "63f4841564c80e9691660ba3",
"detailData": [{
"dateTime": "2023-11-20T11:43:10+07:00",
"amount": { "value": "0.00", "currency": "IDR" },
"remark": "",
"sourceOfFunds": [{ "source": "BALANCE", "amount": { "value": "1000.00", "currency": "IDR" } }],
"status": "SUCCESS",
"type": "INQUIRY",
"additionalInfo": {
"originalReferenceNo": "SAI23112000000000116",
"originalPartnerReferenceNo": "QA-20231120-001",
"beneficiaryAccountNo": "20231116001",
"beneficiaryAccountName": "CIMBARJ BENEFICIA",
"bankCode": "022",
"bankName": "CIMB Niaga/CIMB Niaga Syariah",
"fee": { "value": "1000.00", "currency": "IDR" },
"timeServed": "2023-11-20T11:43:10+07:00",
"createdFrom": "API"
}
}],
"additionalInfo": { "totalData": 1, "pageSize": 10, "pageNumber": 1, "totalPage": 1, "filter": {} }
}❌ Error Response
json
{
"responseCode": "4011201",
"responseMessage": "Invalid Token B2B"
}