Note: Replace YOUR_ACCESS_TOKEN with a valid access token when making requests.
Learn more about Authorization
/api/transactions/histories(MERCHANT ONLY)This endpoint retrieves the historical transaction data. It supports filtering by date range, pagination, wallet number, transaction type, and status.
Statuses:
Types:
GEThttps://api.money-go.com/api/transactions/histories?startDate=startDate&endDate=endDate&page=page&itemsPerPage=itemsPerPage
&walletNumber=walletNumber&type=type&status=statusAuthorization: Bearer YOUR_ACCESS_TOKEN| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| startDate | string | Yes | 2024-03-15 | Start date |
| endDate | string | Yes | 2024-03-19 | End date |
| page | number | Yes | 1 | Page number |
| itemsPerPage | number | Yes | 10 | Number of items per page |
| walletNumber | string | Optional | R378031 | Wallet number |
| type | number | Optional | 2 | Transaction type (TRANSFER, etc.) |
| status | number | Optional | 3 | Transaction status |
Note: Replace YOUR_ACCESS_TOKEN with a valid access token when making requests.
Learn more about Authorization
curl -X GET "https://api.money-go.com/api/transactions/histories?startDate=2024-03-15&endDate=2024-03-19&page=1&itemsPerPage=10&walletNumber=R378031&type=2&status=3" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"<?php
$url = "https://api.money-go.com/api/transactions/histories?startDate=2024-03-15&endDate=2024-03-19&page=1&itemsPerPage=10&walletNumber=R378031&type=2&status=3";$options = [ 'http' => [ 'header' => "Authorization: Bearer YOUR_ACCESS_TOKEN\r\n", 'method' => 'GET' ]];$context = stream_context_create($options);$result = file_get_contents($url, false, $context);if ($result === FALSE) { die('Error occurred while fetching transaction history');}$response = json_decode($result, true);print_r($response);import fetch from 'node-fetch';
async function getTransactionHistory(): Promise { const url = “https://api.money-go.com/api/transactions/histories?startDate=2024-03-15&endDate=2024-03-19&page=1&itemsPerPage=10&walletNumber=R378031&type=2&status=3”; try { const response = await fetch(url, { method: “GET”, headers: { “Authorization”: “Bearer YOUR_ACCESS_TOKEN” } }); if (!response.ok) { throw new Error(HTTP error! Status: ${response.status}); } const data = await response.json(); console.log(“Transaction History:”, data); } catch (error) { console.error(“Error fetching transaction history:”, error); }}
getTransactionHistory();{ "status": true, "data": { "items": [ { "id": 0, "type": 0, "status": 0, "wallet_from": "string", "wallet_to": "string", "currency_from_code": "string", "currency_to_code": "string", "amount_from": 0, "amount_to": 0, "total_usd": 0, "description": "string", "additional": "string", "voucher_number": "string", "created_at": "string", "updated_at": "string" } ], "meta": { "per_page": 0, "page": 0, "last_page": 0, "total": 0 } }}| Field | Type | Description |
|---|---|---|
| status | boolean | Indicates whether the request was successful. |
| data | object | Contains transaction history data. |
| Field | Type | Description |
|---|---|---|
| items | array | List of transaction objects. |
| meta | object | Metadata for pagination. |
| Field | Type | Description |
|---|---|---|
| id | number | Unique identifier of the transaction. |
| type | number | Transaction type (TRANSFER=1, etc.). |
| status | number | Transaction status (PENDING=1, etc.). |
| wallet_from | string | Origin wallet identifier. |
| wallet_to | string | Destination wallet identifier. |
| currency_from_code | string | Currency code of the origin wallet. |
| currency_to_code | string | Currency code of the destination wallet. |
| amount_from | number | Amount debited from the origin wallet. |
| amount_to | number | Amount credited to the destination wallet. |
| total_usd | number | Change of your USD balance. |
| description | string | Description of the transaction. |
| additional | string | Additional information if available. |
| voucher_number | string | Voucher number (calculated field). |
| created_at | string | Timestamp of transaction creation. |
| updated_at | string | Timestamp of last update. |
| Field | Type | Description |
|---|---|---|
| per_page | number | Number of items per page. |
| page | number | Current page number. |
| last_page | number | Total number of pages. |
| total | number | Total number of transactions. |