Accounts
Fetch parent account details
API Documentation
Accounts
Virtual Accounts
Online Checkout
Charge
- GETGet Order details based on the generated Order reference
- POSTSubmit customer card details
- POSTSubmit customer card OTP
- POSTResend OTP to customer's phone
- POSTFetch checkout transaction details
- GETFetch checkout Flash account number for transfer payment
- POSTRequest OTP before saving a user's card
- POSTRequest OTP to validate a user before fetching saved cards
- POSTSubmit user OTP
- GETGet user saved cards
- POSTCancel Checkout transaction
Transfers
Terminals
Transactions
Airtime & Data Vending
Accounts
Fetch parent account details
You can use this endpoint to get details of the parent account.
GET
/
v1
/
accounts
/
parent
curl --request GET \
--url https://api.nomba.com/v1/accounts/parent \
--header 'Authorization: Bearer <token>' \
--header 'accountId: <accountid>'
{
"code": "00",
"description": "Success",
"data": {
"createdAt": "2023-09-04T07:09:06.900Z",
"accountId": "fc81b80e-e607-4b86-8591-840925191733",
"accountHolderId": "01a10aeb-d989-460a-bbde-9842f2b4320f",
"accountRef": "1oWbJQQHLyQqqf1SwxjSpudeA21",
"bvn": "12234412345",
"status": "ACTIVE",
"type": "virtual",
"accountName": "Daniel Scorsese",
"currency": "NGN",
"banks": [
{
"bankAccountNumber": "93910",
"bankName": "Sterling Bank",
"bankAccountName": "Nomba/Ifeoluwa Adeboye"
}
]
}
}
Authorizations
Nomba authenticates API calls with OAuth2 HTTP bearer tokens. There are two methods of authentication; Client-Credentials method and PKCE (Proof Key for Code Exchange) method. In each of the methods, You will get an ACCESS_TOKEN
. You need to use an "Authorization"
HTTP header to provide your ACCESS_TOKEN
. For example: Authorization: {ACCESS_TOKEN}
.
Headers
Response
200
application/json
OK - your request was successful.
Response Code
Response description
Creation timestamp
Account ID
Required string length:
36
Account holder ID
Required string length:
36
Account reference
Required string length:
16 - 64
Bank Verification Number (BVN)
Required string length:
11
Account status
Available options:
ACTIVE
, INACTIVE
, SUSPENDED
, PND
, BLACKLISTED
Account type
Available options:
virtual
, outlet
Account holder's name
Required string length:
8 - 64
Currency code
Available options:
NGN
curl --request GET \
--url https://api.nomba.com/v1/accounts/parent \
--header 'Authorization: Bearer <token>' \
--header 'accountId: <accountid>'
{
"code": "00",
"description": "Success",
"data": {
"createdAt": "2023-09-04T07:09:06.900Z",
"accountId": "fc81b80e-e607-4b86-8591-840925191733",
"accountHolderId": "01a10aeb-d989-460a-bbde-9842f2b4320f",
"accountRef": "1oWbJQQHLyQqqf1SwxjSpudeA21",
"bvn": "12234412345",
"status": "ACTIVE",
"type": "virtual",
"accountName": "Daniel Scorsese",
"currency": "NGN",
"banks": [
{
"bankAccountNumber": "93910",
"bankName": "Sterling Bank",
"bankAccountName": "Nomba/Ifeoluwa Adeboye"
}
]
}
}