POST
/
wallets
/
history
curl --request POST \
  --url https://waas-staging.cafeone.ng/api/v1/wallets/history \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "customerId": "<string>",
  "organizationId": "<string>",
  "walletId": "<string>",
  "from": "<string>",
  "to": "<string>"
}'

Request Body

customerId
string
required

Unique identifier for the customer. Example: “3fa85f64-5717-4562-b3fc-2c963f66afa6”

organizationId
string
required

Unique identifier for the organization. Example: “3fa85f64-5717-4562-b3fc-2c963f66afa6”

walletId
string
required

Unique identifier for the wallet. Example: “3fa85f64-5717-4562-b3fc-2c963f66afa6”

from
string
required

Start date and time for the query period. Example: “2025-03-19T16:18:37.676Z”

to
string
required

End date and time for the query period. Example: “2025-03-19T16:18:37.676Z”

Response

✅ Success Response


Status Code: 200 OK

{
  "success": true,
  "status": "success",
  "data": {
    "id": 1,
    "name": "John Doe",
    "email": "john.doe@example.com"
  },
  "timestamp": "2023-09-20T14:30:45Z"
}

❌ Error Responses

Status Code: 404 Not Found

{
  "code": "404",
  "success": false,
  "message": "Wallet not found",
  "data": null
}