Skip to main content

Customer Histories

Get a transaction history for a specific customer.

Endpoint Information

Name: Get Customer Histories
Method: GET
URL: {{base_url}}/api/v1/customer/histories

Authentication

Type: Basic Auth

  • Username: App Key
  • Password: Secret Key

Query Parameters

ParameterTypeRequiredDefaultDescription
merchantAccountIdstringYes-Your merchant account ID
customerEmailstringNo-Filter history by customer email
perPageintegerNo20Items per page
pageintegerNo1Page number

Example Request

GET {{base_url}}/api/v1/customer/histories?merchantAccountId=100001&[email protected]&perPage=20&page=1

Response

Success Response

{
"success": true,
"message": "Customer histories retrieved successfully",
"data": [
{
"reference_id": "B01E9POMTO",
"amount": 40,
"currency_code": "USD",
"transaction_status": "Accepted",
"customer_email": "[email protected]",
"created_at": "2025-12-03 08:26:14"
// ...other fields
}
],
"pagination": {
"current_page": 1,
"last_page": 4,
"total": 71
}
}

Usage

Use this to display a "My Transactions" or "Order History" section in your customer portal.