GET
/
wallets
/
get
/
customer
/
{customerId}
/
wallet
/
{walletId}
curl --request GET \
  --url https://waas-staging.cafeone.ng/api/v1/wallets/get/customer/{customerId}/wallet/{walletId} \
  --header 'x-api-key: <api-key>'

Path Parameters

customerId
string
required

Unique identifier for the customer

walletId
string
required

Unique identifier for the wallet

Response

✅ Success Response

  • Status Code: 200 OK
  • Response Body:
{
  "code": "200",
  "success": true,
  "message": "Wallet details retrieved successfully.",
  "data": {
    "walletId": "ID3457",
    "customerId": "1234",
    "availableBalance": 10000,
    "ledgerBalance": 12000,
    "currency": "USD",
    "status": "active"
  }
}

❌ Error Responses

Status Code: 400 Bad Request


{
  "code": "400",
  "success": false,
  "message": "Invalid customer ID specified",
  "data": null
}

Status Code: 404 Not Found

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


Status Code: 401 Unauthorized

{
  "code": "401",
  "success": false,
  "message": "Unauthorized access",
  "data": null
}

Status Code: 500 Internal Server Error

{
  "code": "500",
  "success": false,
  "message": "An unexpected error occurred",
  "data": null
}