const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://sandboxapi.me-cash.com/v1/quote/{quoteId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "quote successfully fetched",
"status": "success",
"data": {
"id": "e5eec724-38f9-40e2-9i86-xxxxxxxxxxxxx",
"source": {
"currency": "NGN",
"country": "NG",
"amount": 150000
},
"target": {
"currency": "USD",
"country": "US",
"amount": 81.97
},
"rate": 1830,
"fee": {
"amount": 0
},
"rules": [
{
"category": "LIMIT",
"appliedCurrency": "USD",
"appliedCountry": "US",
"transaction": {
"minimum": 1,
"maximum": 20000000000000
},
"invoice": 200000000000
}
],
"summary": {
"total": 150000
},
"settlementTime": "1 hr",
"quoteCurrency": "USD",
"expiresInSeconds": 600
}
}Retrieves the details of a previously created exchange quote using the unique quoteId.
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://sandboxapi.me-cash.com/v1/quote/{quoteId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "quote successfully fetched",
"status": "success",
"data": {
"id": "e5eec724-38f9-40e2-9i86-xxxxxxxxxxxxx",
"source": {
"currency": "NGN",
"country": "NG",
"amount": 150000
},
"target": {
"currency": "USD",
"country": "US",
"amount": 81.97
},
"rate": 1830,
"fee": {
"amount": 0
},
"rules": [
{
"category": "LIMIT",
"appliedCurrency": "USD",
"appliedCountry": "US",
"transaction": {
"minimum": 1,
"maximum": 20000000000000
},
"invoice": 200000000000
}
],
"summary": {
"total": 150000
},
"settlementTime": "1 hr",
"quoteCurrency": "USD",
"expiresInSeconds": 600
}
}The unique identifier of the quote.
Quote details retrieved successfully.
"quote successfully fetched"
"success"
Show child attributes
"e5eec724-38f9-40e2-9i86-xxxxxxxxxxxxx"
1830
Show child attributes
"LIMIT"
"USD"
"US"
200000000000
"1 hr"
"USD"
600
Was this page helpful?