Javascript
const url = 'https://sandboxapi.me-cash.com/v1/quote/{quoteId}'; const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}, body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
200
example
{ "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.
The unique identifier of the quote.
Quote details retrieved successfully.
"quote successfully fetched"
"success"
Show child attributes