User
Get user profile
GET
/
user
curl --request GET \
--url https://staging.api.mavapay.co/api/v1/user \
--header 'X-API-KEY: <api-key>'
{
"status": "success",
"data": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "+2348123456789",
"businessName": "John Doe Enterprises",
"emailVerified": true,
"kycInfo": {
"address": "3 Opebi Road, Ikeja, Lagos",
"phone": "+2348123456789",
"nationality": "Nigeria",
"businessName": "John Doe Enterprises",
"status": "PENDING"
},
"account": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"type": "INDIVIDUAL",
"status": "ACTIVE",
"walletDetails": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"currency": "NGN",
"balance": "10000000",
"bankAccount": {
"bankName": "KUDA MICROFINANCE BANK",
"bankCode": "090267",
"bankAccountNumber": "0123456789",
"bankAccountName": "Satoshi Nakamoto",
"currency": "NGN",
"walletId": "d1614a76-9c7f-4111-98a7-43199f307e5b-123456789"
},
"transactions": [
{
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"walletId": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"ref": "99eeff854ffd345fffs67890",
"hash": "189727ef2e0f35921af7858b96e27cbad960b0ec2bb2a4ab73b6a231f9ce8727",
"amount": 1000,
"fees": 0,
"currency": "NGN",
"type": "WITHDRAWAL",
"status": "SUCCESS",
"autopayout": true,
"createdAt": "2021-07-01T12:00:00Z",
"updatedAt": "2021-07-01T12:00:00Z",
"metadata": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"orderId": "99854-2345",
"bankCode": "090267",
"bankAccountName": "Satoshi Nakamoto",
"bankAccountNumber": "0123456789",
"customerInternalFee": 0,
"createdAt": "2021-07-01T12:00:00Z",
"updatedAt": "2021-07-01T12:00:00Z"
}
}
]
},
"ownerId": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"apiKey": "d1614a76411198a743199f307e5b",
"totalSatsExchanged": 1000,
"webhook": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"url": "https://webhook.site/12345678-1234-1234-1234-123456789012",
"secret": "secret",
"isActive": true
},
"settings": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"autopayout": true,
"language": "EN",
"notification": {
"email": true,
"sms": true
}
}
}
}
}
Authorizations
Response
200
application/json
User response
The response is of type object
.
curl --request GET \
--url https://staging.api.mavapay.co/api/v1/user \
--header 'X-API-KEY: <api-key>'
{
"status": "success",
"data": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "+2348123456789",
"businessName": "John Doe Enterprises",
"emailVerified": true,
"kycInfo": {
"address": "3 Opebi Road, Ikeja, Lagos",
"phone": "+2348123456789",
"nationality": "Nigeria",
"businessName": "John Doe Enterprises",
"status": "PENDING"
},
"account": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"type": "INDIVIDUAL",
"status": "ACTIVE",
"walletDetails": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"currency": "NGN",
"balance": "10000000",
"bankAccount": {
"bankName": "KUDA MICROFINANCE BANK",
"bankCode": "090267",
"bankAccountNumber": "0123456789",
"bankAccountName": "Satoshi Nakamoto",
"currency": "NGN",
"walletId": "d1614a76-9c7f-4111-98a7-43199f307e5b-123456789"
},
"transactions": [
{
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"walletId": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"ref": "99eeff854ffd345fffs67890",
"hash": "189727ef2e0f35921af7858b96e27cbad960b0ec2bb2a4ab73b6a231f9ce8727",
"amount": 1000,
"fees": 0,
"currency": "NGN",
"type": "WITHDRAWAL",
"status": "SUCCESS",
"autopayout": true,
"createdAt": "2021-07-01T12:00:00Z",
"updatedAt": "2021-07-01T12:00:00Z",
"metadata": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"orderId": "99854-2345",
"bankCode": "090267",
"bankAccountName": "Satoshi Nakamoto",
"bankAccountNumber": "0123456789",
"customerInternalFee": 0,
"createdAt": "2021-07-01T12:00:00Z",
"updatedAt": "2021-07-01T12:00:00Z"
}
}
]
},
"ownerId": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"apiKey": "d1614a76411198a743199f307e5b",
"totalSatsExchanged": 1000,
"webhook": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"url": "https://webhook.site/12345678-1234-1234-1234-123456789012",
"secret": "secret",
"isActive": true
},
"settings": {
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"autopayout": true,
"language": "EN",
"notification": {
"email": true,
"sms": true
}
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.