Skip to content

Single rate

GET
/reference-data/fx/{sourceCurrency}/{targetCurrency}
curl --request GET \
--url https://api.wink.travel/reference-data/fx/USD/THB \
--header 'Authorization: Bearer <token>' \
--header 'Wink-Version: 2.0'

Returns the exchange-rate quote between a specific source and target currency pair, or fails if no quote exists.

sourceCurrency
required
string
""

ISO 4217 source currency code

Example
USD
targetCurrency
required
string
""

ISO 4217 target currency code

Example
THB
Wink-Version
string
default: 2.0.0
Allowed values: 2.0

OK

Media type application/json
object
source
required

ISO 4217 source currency code

string
"" >= 1 characters
target
required

ISO 4217 target currency code

string
"" >= 1 characters
exchangeRate
required

Exchange rate from source to target currency

number
""
timestamp
required

Unix epoch milliseconds when the quote was recorded

integer format: int64
""
Example
{
"source": "",
"target": "",
"exchangeRate": "",
"timestamp": ""
}

Bad Request

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com",
"properties": {
"additionalProperty": "example"
}
}

Unauthorized

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Forbidden

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Internal Server Error

object
Example generated
{}