Payment Quote
Use these endpoints to get a payment quote.
Generate Payment Quote
This endpoint is used to get a payment quote including FX and other Fees.
POST https://sandbox-api.veem.com/veem/v1.2/exchangerates/quote
Headers
Three headers are required to use this endpoint.
Required Headers
Name
Type
Required
Description
Authorization
stringYes
Bearer token (OAuth 2.0) This header holds the bearer token required to use Veem's public API, and belongs to the owner account. Failure to use a valid bearer token will result in a 404 (Not Found) status code in the response. An example of a valid header value is as follows:
Bearer c047594b-082c-4da1-be89-08fe3770f4b3See Get Access Token section to generate your Bearer token
X-Request-Id
stringYes
This is a unique string that identifies the current API request, and should follow the UUID format. Reusing this header without changing the value will result in a 409 (Conflict) status code in the response. An example X-request-id is as follows:
48855846-628d-4177-b071-80332a116f0a
Content-Type
stringYes
The content type of the request. Must be
application/json
Request payload
{
"payerAccountId":11560,
"fromAmount":100,
"fromCurrency":"USD",
"fromCountry":"US",
"toCountry":"DE",
"toCurrency":"EUR",
"bruid":"25ef26da-0c69-3ebd-ae31-18aee238a692"
}Response payload
{
"payerAmount": {
"number": 100,
"currency": "USD"
},
"payeeAmount": {
"number": 85.43,
"currency": "EUR"
},
"usdAmount": {
"number": 100,
"currency": "USD"
},
"veemRate": 0.854302,
"bruid": "25ef26da-0c69-3ebd-ae31-18aee238a692"
}
Generate Bulk Payment Quote
This endpoint is used to get bulk payment quotes including FX and other Fees.
Headers
Three headers are required to use this endpoint.
Required Headers
Name
Type
Required
Description
Authorization
stringYes
Bearer token (OAuth 2.0) This header holds the bearer token required to use Veem's public API, and belongs to the owner account. Failure to use a valid bearer token will result in a 404 (Not Found) status code in the response. An example of a valid header value is as follows:
Bearer c047594b-082c-4da1-be89-08fe3770f4b3See Get Access Token section to generate your Bearer token
X-Request-Id
stringYes
This is a unique string that identifies the current API request, and should follow the UUID format. Reusing this header without changing the value will result in a 409 (Conflict) status code in the response. An example X-request-id is as follows:
48855846-628d-4177-b071-80332a116f0a
Content-Type
stringYes
The content type of the request. Must be
application/json
Request payload
{
"requests": [
{
"payerAccountId": 11560,
"fromAmount": 100,
"fromCurrency": "USD",
"fromCountry": "US",
"toCountry": "DE",
"toCurrency": "EUR"
},
{
"payerAccountId": 11560,
"fromAmount": 100,
"fromCurrency": "USD",
"fromCountry": "US",
"toCountry": "CA",
"toCurrency": "CAD"
}
]
}Response payload
[
{
"payerAmount": {
"number": 100,
"currency": "USD"
},
"payeeAmount": {
"number": 129.10,
"currency": "CAD"
},
"usdAmount": {
"number": 100,
"currency": "USD"
},
"veemRate": 1.290984
},
{
"payerAmount": {
"number": 100,
"currency": "USD"
},
"payeeAmount": {
"number": 88.75,
"currency": "EUR"
},
"usdAmount": {
"number": 100,
"currency": "USD"
},
"veemRate": 0.887471
}
]Updated 24 days ago
