mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
f4df850d25
Allows the filter to work in both directions instead
95 lines
3.4 KiB
JSON
95 lines
3.4 KiB
JSON
{
|
|
"paths": {
|
|
"/api/v1/stores/{storeId}/payment-methods": {
|
|
"get": {
|
|
"tags": [
|
|
"Store Payment Methods"
|
|
],
|
|
"summary": "Get store payment methods",
|
|
"description": "View information about the stores' configured payment methods",
|
|
"operationId": "StorePaymentMethods_GetStorePaymentMethods",
|
|
"parameters": [
|
|
{
|
|
"name": "storeId",
|
|
"in": "path",
|
|
"required": true,
|
|
"description": "The store to fetch",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "enabled",
|
|
"in": "query",
|
|
"required": false,
|
|
"description": "Fetch payment methods that are enabled/disabled only",
|
|
"schema": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "list of payment methods",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/GenericPaymentMethodData"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"API Key": [
|
|
"btcpay.store.canviewstoresettings"
|
|
],
|
|
"Basic": []
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"GenericPaymentMethodData": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"description": "Whether the payment method is enabled"
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"description": "Associated dynamic data based on payment method type.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/OnChainPaymentMethodBaseData"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/LightningNetworkPaymentMethodBaseData"
|
|
},
|
|
{
|
|
"description": "Any other unofficial payment method data",
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "Store Payment Methods"
|
|
}
|
|
]
|
|
}
|