Discussions
Creating quotes
5 months ago by [email protected]
Hello,
After reading the guide on sending money in foreign currency, I'm confused how the quote should be created.
Is this following assumption correct?
- My sender's bank account is CAD
- I want to send a payment of $10 USD
- Create a quote with this payload
{
fromCurrency: 'CAD',
toAmount: 10,
toCurrency: 'USD',
toCountry: 'US',
recipientAccountEmail: '[email protected]'
} - Then when calling send money I use the quote ID in the "exchangeRateQuoteId" field
{
payee: {
email: '[email protected]',
countryCode: 'US',
...
},
amount: {
currency: 'USD',
number: 10
},
exchangeRateQuoteId: quote.id
}
Clarification would be helpful. Thanks!