2023-01-31 06:42:25 +01:00
|
|
|
{
|
|
|
|
"paths": {
|
|
|
|
"/api/v1/stores/{storeId}/rates": {
|
|
|
|
"get": {
|
|
|
|
"tags": [
|
|
|
|
"Stores (Rates)"
|
|
|
|
],
|
|
|
|
"parameters": [
|
|
|
|
{
|
2024-11-20 14:46:55 +01:00
|
|
|
"$ref": "#/components/parameters/StoreId"
|
2023-01-31 06:42:25 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "currencyPair",
|
|
|
|
"description": "The currency pairs to fetch rates for",
|
2024-11-20 14:46:55 +01:00
|
|
|
"example": [
|
|
|
|
"BTC_USD",
|
|
|
|
"BTC_EUR"
|
|
|
|
],
|
2023-01-31 06:42:25 +01:00
|
|
|
"in": "query",
|
|
|
|
"style": "form",
|
|
|
|
"explode": true,
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"nullable": true,
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-position": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"summary": "Get rates",
|
|
|
|
"description": "Get rates on the store",
|
|
|
|
"operationId": "Stores_GetStoreRates",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "The settings were executed and a preview was returned",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/components/schemas/StoreRateResult"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "A list of errors that occurred when previewing the settings",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/ValidationProblemDetails"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"403": {
|
|
|
|
"description": "If you are authenticated but forbidden to modify the store"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"API_Key": [
|
|
|
|
"btcpay.store.canviewstoresettings"
|
|
|
|
],
|
|
|
|
"Basic": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
{
|
|
|
|
"name": "Stores (Rates)",
|
|
|
|
"description": "Store Rates operations"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|