curl --request GET \
--url https://staging.api.mavapay.co/api/v1/order \
--header 'X-API-KEY: <api-key>'{
"status": "success",
"data": {
"orderId": "99854-2345",
"quoteId": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"status": "PAID",
"currency": "NGN",
"paymentCollectionMethod": "LIGHTNING",
"isValid": true,
"displayAmount": "1000.00 NGN",
"paymentBtcDetail": "lntbs14912790n1pjnruqtpp5xmrq39nwyhgde4a94wsnuacj4stacls05g4x5du2req9pvjpqz6sdz9296k7ar98gsxgdm9vvmx2v3s95ckyceh956xvd3595uxyetr95cnydrxxv6nvwrxv5mngcqzpuxqzfvsp578t78k4628snkkhc43eqrpn6sem28w4cwgzn7ceyyr320kwm4uss9qyyssqcwxw8wy2qenwgm7gagx9lwvcs9w9tw47ntuc823yclasjqczvvj545hr4d9nmg996l0cswudgeawclwytafmh66a2fafk4heksyae5sq3vzd28",
"createdAt": "2021-07-01T12:00:00Z",
"quotes": [
{
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"exchangeRate": 5000000.23,
"usdToTargetCurrencyRate": 1500.65,
"sourceCurrency": "BTCSAT",
"targetCurrency": "NGNKOBO",
"transactionFeesInSourceCurrency": 13.23,
"transactionFeesInTargetCurrency": "3750.00",
"amountInSourceCurrency": 1499,
"amountInTargetCurrency": "50000.00",
"paymentMethod": "LIGHTNING",
"expiry": "2021-07-01T12:00:00Z",
"isValid": true,
"invoice": "lntbs36020n1pnehfzcpp5zc8g9tfpwnmaevh62ak2vu6zjqyt5cpph3gjm4zfyqz9srjjdsaqdz5296k7ar98gsy6ctkvys9qcteyqmnyenr8yunswfdvyer2v3dx33kxe3dvymnsefdv5mnjcm9x5mrydm9vccqcqzpuxqzfvsp5utd7hdfmjp7vw3lc6hal8psqruwcnu89hxfukyzugxh40jhv8xcq9qxpqysgq2lry5dgzu2g04s74tpvctwe37rkprs3k579jw6yt7ncrsg62p29yalw8gf5fawfvpydqv4jjve0nsysfhsxa35dtwug9e6gzxkq0h5gp636wc3",
"hash": "189727ef2e0f35921af7858b96e27cbad960b0ec2bb2a4ab73b6a231f9ce8727",
"totalAmountInSourceCurrency": 1499,
"customerInternalFee": 0,
"createdAt": "2021-07-01T12:00:00Z",
"updatedAt": "2021-07-01T12:00:00Z"
}
],
"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"
}
}
]
}
}curl --request GET \
--url https://staging.api.mavapay.co/api/v1/order \
--header 'X-API-KEY: <api-key>'{
"status": "success",
"data": {
"orderId": "99854-2345",
"quoteId": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"status": "PAID",
"currency": "NGN",
"paymentCollectionMethod": "LIGHTNING",
"isValid": true,
"displayAmount": "1000.00 NGN",
"paymentBtcDetail": "lntbs14912790n1pjnruqtpp5xmrq39nwyhgde4a94wsnuacj4stacls05g4x5du2req9pvjpqz6sdz9296k7ar98gsxgdm9vvmx2v3s95ckyceh956xvd3595uxyetr95cnydrxxv6nvwrxv5mngcqzpuxqzfvsp578t78k4628snkkhc43eqrpn6sem28w4cwgzn7ceyyr320kwm4uss9qyyssqcwxw8wy2qenwgm7gagx9lwvcs9w9tw47ntuc823yclasjqczvvj545hr4d9nmg996l0cswudgeawclwytafmh66a2fafk4heksyae5sq3vzd28",
"createdAt": "2021-07-01T12:00:00Z",
"quotes": [
{
"id": "d1614a76-9c7f-4111-98a7-43199f307e5b",
"exchangeRate": 5000000.23,
"usdToTargetCurrencyRate": 1500.65,
"sourceCurrency": "BTCSAT",
"targetCurrency": "NGNKOBO",
"transactionFeesInSourceCurrency": 13.23,
"transactionFeesInTargetCurrency": "3750.00",
"amountInSourceCurrency": 1499,
"amountInTargetCurrency": "50000.00",
"paymentMethod": "LIGHTNING",
"expiry": "2021-07-01T12:00:00Z",
"isValid": true,
"invoice": "lntbs36020n1pnehfzcpp5zc8g9tfpwnmaevh62ak2vu6zjqyt5cpph3gjm4zfyqz9srjjdsaqdz5296k7ar98gsy6ctkvys9qcteyqmnyenr8yunswfdvyer2v3dx33kxe3dvymnsefdv5mnjcm9x5mrydm9vccqcqzpuxqzfvsp5utd7hdfmjp7vw3lc6hal8psqruwcnu89hxfukyzugxh40jhv8xcq9qxpqysgq2lry5dgzu2g04s74tpvctwe37rkprs3k579jw6yt7ncrsg62p29yalw8gf5fawfvpydqv4jjve0nsysfhsxa35dtwug9e6gzxkq0h5gp636wc3",
"hash": "189727ef2e0f35921af7858b96e27cbad960b0ec2bb2a4ab73b6a231f9ce8727",
"totalAmountInSourceCurrency": 1499,
"customerInternalFee": 0,
"createdAt": "2021-07-01T12:00:00Z",
"updatedAt": "2021-07-01T12:00:00Z"
}
],
"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"
}
}
]
}
}The order ID to get the details for
Order response
"success"
Show child attributes
"99854-2345"
"d1614a76-9c7f-4111-98a7-43199f307e5b"
PAID, PENDING, EXPIRED, FAILED NGN, KES LIGHTNING, ONCHAIN, USDT true
"1000.00 NGN"
"lntbs14912790n1pjnruqtpp5xmrq39nwyhgde4a94wsnuacj4stacls05g4x5du2req9pvjpqz6sdz9296k7ar98gsxgdm9vvmx2v3s95ckyceh956xvd3595uxyetr95cnydrxxv6nvwrxv5mngcqzpuxqzfvsp578t78k4628snkkhc43eqrpn6sem28w4cwgzn7ceyyr320kwm4uss9qyyssqcwxw8wy2qenwgm7gagx9lwvcs9w9tw47ntuc823yclasjqczvvj545hr4d9nmg996l0cswudgeawclwytafmh66a2fafk4heksyae5sq3vzd28"
"2021-07-01T12:00:00Z"
Show child attributes
"d1614a76-9c7f-4111-98a7-43199f307e5b"
The exchange rate of source currency to target currency for the quote. e.g 1 BTC = 5000000.23 NGN
5000000.23
The USD to target currency rate for the quote
1500.65
The source currency for the quote
BTCSAT, NGNKOBO, KESCENT, ZARCENT The target currency for the quote
NGNKOBO, KESCENT, ZARCENT The transaction fees in the source currency in its lowest denomination
13.23
The transaction fees in the target currency in its lowest denomination
"3750.00"
The amount in the source currency in its lowest denomination
1499
The amount in the target currency in its lowest denomination
"50000.00"
LIGHTNING "2021-07-01T12:00:00Z"
true
The lightning invoice to pay for the quote
"lntbs36020n1pnehfzcpp5zc8g9tfpwnmaevh62ak2vu6zjqyt5cpph3gjm4zfyqz9srjjdsaqdz5296k7ar98gsy6ctkvys9qcteyqmnyenr8yunswfdvyer2v3dx33kxe3dvymnsefdv5mnjcm9x5mrydm9vccqcqzpuxqzfvsp5utd7hdfmjp7vw3lc6hal8psqruwcnu89hxfukyzugxh40jhv8xcq9qxpqysgq2lry5dgzu2g04s74tpvctwe37rkprs3k579jw6yt7ncrsg62p29yalw8gf5fawfvpydqv4jjve0nsysfhsxa35dtwug9e6gzxkq0h5gp636wc3"
The payment hash for the lightning invoice attached to the quote
"189727ef2e0f35921af7858b96e27cbad960b0ec2bb2a4ab73b6a231f9ce8727"
The total amount in the source currency in its lowest denomination
1499
An internal fee you can set to charge the customer. This fee is in the source currency in its lowest denomination
0
The date and time the quote was created
"2021-07-01T12:00:00Z"
The date and time the quote was last updated
"2021-07-01T12:00:00Z"
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"