Filter Transactions by customer_id
This filter spools the 10 most recent transactions initiated by a specific customer profiled for the Fintech partner. The customer is identified by their customer_id which was generated upon successful customer creation.
HTTP Method : GET
API Endpoint : {{baseurl}}/api/v1/transaction?customer_id={{customer_id}}
Sample cURL Request
curl --location --request GET 'https://api.ovalfi-app.com//api/v1/transaction?customer_id=9f40fb69-64e3-4d23-853a-0243af155427' \
--header 'Authorization: Bearer eyJidXNpbmVzc0lEIjoiZTY2NWJkYWUtNWE0ZC00ODNiLTk2NTQtZTk0NzViMzRjY2ViIiwidXNlcklEIjoiYTY4NjE1ZGMtMjY5MS00ZmI1LTkyZmMtNTQ1NmRlN2M3YjllIiwia2V5Ijoia3JwIn0='
Response
{
"status": 200,
"data": {
"items": {
"request_id": "1770eb90-42ba-4434-84db-3316674ef4b4",
"transactions": [
{
"id": "80b5357e-1595-4591-9d41-2aa8739e1cee",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "42ee80d8-2a95-419c-aad1-5643d306948e",
"type": "deposit",
"amount": 10,
"currency": "USD",
"reference": "polmu",
"status": "completed",
"completedAt": "2022-10-25T12:30:36.942934Z",
"createdAt": "2022-10-25T12:30:36.942934Z",
"batchDate": "2022-10-25T00:00:00Z",
"cancelReason": null
},
{
"id": "be719417-0338-4420-81f8-b0459cebd39d",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "f3d990ce-2e2c-4d8c-99f3-06a77b9817da",
"type": "withdrawal",
"amount": 10,
"currency": "USD",
"reference": "polmu",
"status": "completed",
"completedAt": null,
"createdAt": "2022-10-25T12:30:36.86315Z",
"batchDate": "2022-10-25T00:00:00Z",
"cancelReason": null
},
{
"id": "435c4541-871b-45f8-bf8d-57d6178ca534",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "42ee80d8-2a95-419c-aad1-5643d306948e",
"type": "withdrawal",
"amount": 10,
"currency": "USDC",
"reference": "polmu",
"status": "completed",
"completedAt": null,
"createdAt": "2022-10-14T15:06:29.500989Z",
"batchDate": "2022-10-14T00:00:00Z",
"cancelReason": null
},
{
"id": "821feeba-8581-4fb8-bf63-b23898ba3928",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "42ee80d8-2a95-419c-aad1-5643d306948e",
"type": "withdrawal",
"amount": 10,
"currency": "USDC",
"reference": "polm",
"status": "completed",
"completedAt": null,
"createdAt": "2022-10-14T15:06:14.773835Z",
"batchDate": "2022-10-14T00:00:00Z",
"cancelReason": null
},
{
"id": "146b5399-278e-4464-a85c-9679d26e52d9",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "42ee80d8-2a95-419c-aad1-5643d306948e",
"type": "deposit",
"amount": 10,
"currency": "USD",
"reference": "polm",
"status": "completed",
"completedAt": "2022-10-14T15:06:06.472731Z",
"createdAt": "2022-10-14T15:06:06.472731Z",
"batchDate": "2022-10-14T00:00:00Z",
"cancelReason": null
},
{
"id": "e0960160-6566-4128-a5c8-f16df0b39444",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "f3d990ce-2e2c-4d8c-99f3-06a77b9817da",
"type": "withdrawal",
"amount": 10,
"currency": "USD",
"reference": "polm",
"status": "completed",
"completedAt": null,
"createdAt": "2022-10-14T15:06:06.215867Z",
"batchDate": "2022-10-14T00:00:00Z",
"cancelReason": null
},
{
"id": "eaf49ec8-14a1-4ec3-9f55-0667095c8f93",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "f3d990ce-2e2c-4d8c-99f3-06a77b9817da",
"type": "withdrawal",
"amount": 10,
"currency": "USD",
"reference": "==police",
"status": "completed",
"completedAt": null,
"createdAt": "2022-10-14T15:03:23.49362Z",
"batchDate": "2022-10-14T00:00:00Z",
"cancelReason": null
},
{
"id": "bef33155-2070-4ca5-a4f7-1fc7e96412b1",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "42ee80d8-2a95-419c-aad1-5643d306948e",
"type": "deposit",
"amount": 10,
"currency": "USD",
"reference": "==police",
"status": "completed",
"completedAt": "2022-10-14T14:47:15.575311Z",
"createdAt": "2022-10-14T14:47:15.575311Z",
"batchDate": "2022-10-14T00:00:00Z",
"cancelReason": null
},
{
"id": "548441ce-26c3-429a-98fa-32fbbc393f2c",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "f3d990ce-2e2c-4d8c-99f3-06a77b9817da",
"type": "withdrawal",
"amount": 10,
"currency": "USD",
"reference": "==police",
"status": "completed",
"completedAt": null,
"createdAt": "2022-10-14T14:47:15.024712Z",
"batchDate": "2022-10-14T00:00:00Z",
"cancelReason": null
},
{
"id": "9561442a-425b-40d7-b455-b9a7a0dd8eb1",
"name": "LALA",
"email": "[email protected]",
"businessID": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"customerID": "9f40fb69-64e3-4d23-853a-0243af155427",
"yieldOfferingID": "42ee80d8-2a95-419c-aad1-5643d306948e",
"type": "deposit",
"amount": 10,
"currency": "USD",
"reference": "0000000",
"status": "completed",
"completedAt": "2022-10-14T01:02:16.964449Z",
"createdAt": "2022-10-14T01:02:16.964448Z",
"batchDate": "2022-10-14T00:00:00Z",
"cancelReason": null
}
]
},
"page": {
"page": 1,
"size": 10,
"hasNextPage": true,
"hasPreviousPage": false,
"totalCount": 38
}
},
"message": "fetched transactions successfully!",
"error": null
}
Updated about 2 years ago