curl --request GET \
  --url https://api.nomba.com/v1/accounts/fetch-parent-account \
  --header 'Authorization: Bearer <token>' \
  --header 'accountId: <accountid>'
{
    "data": {
        "bankAccountNumber": "21061XXXXXX",
        "bankAccountName": "Nomba/Praise God Ltd",
        "bankName": "Nombank(Amucha) MFB"
    },
    "status": true
}

GET /v1/accounts/fetch-parent-account

Use this endpoint to fetch details of a parent account by providing the account ID in the request header.

Response body

status
boolean
required
Indicates whether the request was successful.
data
object
curl --request GET \
  --url https://api.nomba.com/v1/accounts/fetch-parent-account \
  --header 'Authorization: Bearer <token>' \
  --header 'accountId: <accountid>'
{
    "data": {
        "bankAccountNumber": "21061XXXXXX",
        "bankAccountName": "Nomba/Praise God Ltd",
        "bankName": "Nombank(Amucha) MFB"
    },
    "status": true
}