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": "[email protected]",
"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
}
}
}
}
}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": "[email protected]",
"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
}
}
}
}
}User response
"success"
Show child attributes
"d1614a76-9c7f-4111-98a7-43199f307e5b"
"John Doe"
"+2348123456789"
"John Doe Enterprises"
true
Show child attributes
"3 Opebi Road, Ikeja, Lagos"
"+2348123456789"
"Nigeria"
"John Doe Enterprises"
PENDING, APPROVED, REJECTED Show child attributes
"d1614a76-9c7f-4111-98a7-43199f307e5b"
INDIVIDUAL, BUSINESS, ADMIN ACTIVE, INACTIVE Show child attributes
"d1614a76-9c7f-4111-98a7-43199f307e5b"
NGN, KES, BTC, USD "10000000"
Show child attributes
"KUDA MICROFINANCE BANK"
"090267"
"0123456789"
"Satoshi Nakamoto"
NGN "d1614a76-9c7f-4111-98a7-43199f307e5b-123456789"
Show child attributes
The unique identifier for the transaction
"d1614a76-9c7f-4111-98a7-43199f307e5b"
The unique identifier for the wallet
"d1614a76-9c7f-4111-98a7-43199f307e5b"
The reference for the transaction
"99eeff854ffd345fffs67890"
The payment hash for the lightning invoice attached to the quote related to the transaction
"189727ef2e0f35921af7858b96e27cbad960b0ec2bb2a4ab73b6a231f9ce8727"
The amount of the transaction in its lowest denomination
1000
The fees for the transaction in its lowest denomination
0
The currency of the transaction
NGN, KES, BTC, ZAR The type of the transaction
WITHDRAWAL, DEPOSIT The status of the transaction
SUCCESS, PENDING, FAILED Whether the transaction is an instant payout
true
The date and time the transaction was created
"2021-07-01T12:00:00Z"
The date and time the transaction was last updated
"2021-07-01T12:00:00Z"
Show child attributes
"d1614a76-9c7f-4111-98a7-43199f307e5b"
"99854-2345"
"090267"
"Satoshi Nakamoto"
"0123456789"
0
"2021-07-01T12:00:00Z"
"2021-07-01T12:00:00Z"
"d1614a76-9c7f-4111-98a7-43199f307e5b"
"d1614a76411198a743199f307e5b"
1000
Show child attributes
"d1614a76-9c7f-4111-98a7-43199f307e5b"
"https://webhook.site/12345678-1234-1234-1234-123456789012"
"secret"
true
Show child attributes
"d1614a76-9c7f-4111-98a7-43199f307e5b"
true
EN, FR, ES