2020-05-29 10:04:28 +02:00
{
"paths" : {
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/info" : {
"get" : {
"tags" : [
2020-06-07 08:30:04 +02:00
"Lightning (Store)"
2020-05-29 10:04:28 +02:00
] ,
"summary" : "Get node information" ,
"parameters" : [
{
2020-06-03 11:58:49 +02:00
"name" : "cryptoCode" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The cryptoCode of the lightning-node to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
2021-12-22 11:39:43 +09:00
} ,
"example" : "BTC"
2020-05-29 10:04:28 +02:00
} ,
{
2020-06-03 11:58:49 +02:00
"name" : "storeId" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The store id with the lightning-node configuration to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
}
}
] ,
"description" : "View information about the lightning node" ,
"operationId" : "StoreLightningNodeApi_GetInfo" ,
"responses" : {
"200" : {
"description" : "Lightning node information such as reachable nodeinfos" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/LightningNodeInformationData"
}
}
}
} ,
2020-06-08 23:40:58 +09:00
"503" : {
"description" : "Unable to access the lightning node"
2020-06-03 11:58:49 +02:00
} ,
"404" : {
"description" : "The lightning node configuration was not found"
2020-05-29 10:04:28 +02:00
}
} ,
"security" : [
{
2022-02-02 03:12:48 -08:00
"API_Key" : [
2022-06-23 06:42:28 +02:00
"btcpay.store.canuselightningnode"
] ,
"Basic" : [ ]
}
]
}
} ,
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/balance" : {
"get" : {
"tags" : [
"Lightning (Store)"
] ,
"summary" : "Get node balance" ,
"parameters" : [
{
"name" : "cryptoCode" ,
"in" : "path" ,
"required" : true ,
"description" : "The cryptoCode of the lightning-node to query" ,
"schema" : {
"type" : "string"
} ,
"example" : "BTC"
} ,
{
"name" : "storeId" ,
"in" : "path" ,
"required" : true ,
"description" : "The store id with the lightning-node configuration to query" ,
"schema" : {
"type" : "string"
}
}
] ,
"description" : "View balance of the lightning node" ,
"operationId" : "StoreLightningNodeApi_GetBalance" ,
"responses" : {
"200" : {
"description" : "Lightning node balance for on-chain and off-chain funds" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/LightningNodeBalanceData"
}
}
}
} ,
"503" : {
"description" : "Unable to access the lightning node"
} ,
"404" : {
"description" : "The lightning node configuration was not found"
}
} ,
"security" : [
{
"API_Key" : [
"btcpay.store.canuselightningnode"
2020-05-29 10:04:28 +02:00
] ,
"Basic" : [ ]
}
]
}
} ,
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/connect" : {
"post" : {
"tags" : [
2020-06-07 08:30:04 +02:00
"Lightning (Store)"
2020-05-29 10:04:28 +02:00
] ,
"summary" : "Connect to lightning node" ,
"parameters" : [
{
2020-06-03 11:58:49 +02:00
"name" : "cryptoCode" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The cryptoCode of the lightning-node to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
2021-12-22 11:39:43 +09:00
} ,
"example" : "BTC"
2020-05-29 10:04:28 +02:00
} ,
{
2020-06-03 11:58:49 +02:00
"name" : "storeId" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The store id with the lightning-node configuration to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
}
}
] ,
"description" : "Connect to another lightning node." ,
"operationId" : "StoreLightningNodeApi_ConnectToNode" ,
"responses" : {
"200" : {
"description" : "Successfully connected"
} ,
2020-06-03 11:58:49 +02:00
"422" : {
2020-06-08 23:40:58 +09:00
"description" : "Unable to validate the request" ,
2020-05-29 10:04:28 +02:00
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ValidationProblemDetails"
}
}
}
} ,
2020-06-03 11:58:49 +02:00
"400" : {
2020-06-08 23:40:58 +09:00
"description" : "Wellknown error codes are: `could-not-connect`" ,
2020-06-03 11:58:49 +02:00
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemDetails"
}
}
}
} ,
2020-06-08 23:40:58 +09:00
"503" : {
"description" : "Unable to access the lightning node"
2020-06-03 11:58:49 +02:00
} ,
"404" : {
"description" : "The lightning node configuration was not found"
2020-05-29 10:04:28 +02:00
}
} ,
"requestBody" : {
"required" : true ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ConnectToNodeRequest"
}
}
}
} ,
"security" : [
{
2022-02-02 03:12:48 -08:00
"API_Key" : [
2021-12-16 12:31:24 +09:00
"btcpay.store.cancreatelightninginvoice"
2020-05-29 10:04:28 +02:00
] ,
"Basic" : [ ]
}
]
}
} ,
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/channels" : {
"get" : {
"tags" : [
2020-06-07 08:30:04 +02:00
"Lightning (Store)"
2020-05-29 10:04:28 +02:00
] ,
"summary" : "Get channels" ,
"parameters" : [
{
2020-06-03 11:58:49 +02:00
"name" : "cryptoCode" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The cryptoCode of the lightning-node to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
2021-12-22 11:39:43 +09:00
} ,
"example" : "BTC"
2020-05-29 10:04:28 +02:00
} ,
{
2020-06-03 11:58:49 +02:00
"name" : "storeId" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The store id with the lightning-node configuration to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
}
}
] ,
"description" : "View information about the current channels of the lightning node" ,
"operationId" : "StoreLightningNodeApi_GetChannels" ,
"responses" : {
"200" : {
"description" : "list of channels" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "array" ,
"items" : {
"$ref" : "#/components/schemas/LightningChannelData"
}
}
}
}
} ,
2020-06-03 11:58:49 +02:00
"404" : {
"description" : "The lightning node configuration was not found"
2020-05-29 10:04:28 +02:00
}
} ,
"security" : [
{
2022-02-02 03:12:48 -08:00
"API_Key" : [
2021-12-16 12:31:24 +09:00
"btcpay.store.cancreatelightninginvoice"
2020-05-29 10:04:28 +02:00
] ,
"Basic" : [ ]
}
]
} ,
"post" : {
"tags" : [
2020-06-07 08:30:04 +02:00
"Lightning (Store)"
2020-05-29 10:04:28 +02:00
] ,
"summary" : "Open channel" ,
"parameters" : [
{
2020-06-03 11:58:49 +02:00
"name" : "cryptoCode" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The cryptoCode of the lightning-node to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
2021-12-22 11:39:43 +09:00
} ,
"example" : "BTC"
2020-05-29 10:04:28 +02:00
} ,
{
2020-06-03 11:58:49 +02:00
"name" : "storeId" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The store id with the lightning-node configuration to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
}
}
] ,
"description" : "Open a channel with another lightning node. You should connect to that node first." ,
"operationId" : "StoreLightningNodeApi_OpenChannel" ,
"responses" : {
"200" : {
"description" : "Successfully opened"
} ,
2020-06-03 11:58:49 +02:00
"422" : {
2020-06-08 23:40:58 +09:00
"description" : "Unable to validate the request" ,
2020-05-29 10:04:28 +02:00
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ValidationProblemDetails"
}
}
}
} ,
2020-06-03 11:58:49 +02:00
"400" : {
2020-06-08 23:40:58 +09:00
"description" : "Wellknown error codes are: `channel-already-exists`, `cannot-afford-funding`, `need-more-confirmations`, `peer-not-connected`" ,
2020-06-03 11:58:49 +02:00
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemDetails"
}
}
}
} ,
2020-06-08 23:40:58 +09:00
"503" : {
"description" : "Unable to access the lightning node"
2020-06-03 11:58:49 +02:00
} ,
"404" : {
"description" : "The lightning node configuration was not found"
2020-05-29 10:04:28 +02:00
}
} ,
"requestBody" : {
"required" : true ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/OpenLightningChannelRequest"
}
}
}
} ,
"security" : [
{
2022-02-02 03:12:48 -08:00
"API_Key" : [
2021-12-16 12:31:24 +09:00
"btcpay.store.cancreatelightninginvoice"
2020-05-29 10:04:28 +02:00
] ,
"Basic" : [ ]
}
]
}
} ,
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/address" : {
2020-06-08 23:40:58 +09:00
"post" : {
2020-05-29 10:04:28 +02:00
"tags" : [
2020-06-07 08:30:04 +02:00
"Lightning (Store)"
2020-05-29 10:04:28 +02:00
] ,
"summary" : "Get deposit address" ,
"parameters" : [
{
2020-06-03 11:58:49 +02:00
"name" : "cryptoCode" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The cryptoCode of the lightning-node to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
2020-06-08 23:40:58 +09:00
"type" : "string" ,
"description" : "A bitcoin address belonging to the lightning node"
2021-12-22 11:39:43 +09:00
} ,
"example" : "BTC"
2020-05-29 10:04:28 +02:00
} ,
{
2020-06-03 11:58:49 +02:00
"name" : "storeId" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The store id with the lightning-node configuration to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
}
}
] ,
"description" : "Get an on-chain deposit address for the lightning node " ,
"operationId" : "StoreLightningNodeApi_GetDepositAddress" ,
"responses" : {
"200" : {
"description" : "deposit address" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "string"
}
}
}
} ,
2020-06-08 23:40:58 +09:00
"503" : {
"description" : "Unable to access the lightning node"
2020-06-03 11:58:49 +02:00
} ,
"404" : {
"description" : "The lightning node configuration was not found"
2020-05-29 10:04:28 +02:00
}
} ,
"security" : [
{
2022-02-02 03:12:48 -08:00
"API_Key" : [
2021-12-16 12:31:24 +09:00
"btcpay.store.cancreatelightninginvoice"
2020-05-29 10:04:28 +02:00
] ,
"Basic" : [ ]
}
]
}
} ,
2020-06-03 11:58:49 +02:00
2022-04-12 11:01:58 +02:00
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/payments/{paymentHash}" : {
"get" : {
"tags" : [
"Lightning (Store)"
] ,
"summary" : "Get payment" ,
"parameters" : [
{
"name" : "cryptoCode" ,
"in" : "path" ,
"required" : true ,
"description" : "The cryptoCode of the lightning-node to query" ,
"schema" : {
"type" : "string"
} ,
"example" : "BTC"
} ,
{
"name" : "storeId" ,
"in" : "path" ,
"required" : true ,
"description" : "The store id with the lightning-node configuration to query" ,
"schema" : {
"type" : "string"
}
} ,
{
"name" : "paymentHash" ,
"in" : "path" ,
"required" : true ,
"description" : "The payment hash of the lightning payment." ,
"schema" : {
"type" : "string"
}
}
] ,
"description" : "View information about the requested lightning payment" ,
"operationId" : "StoreLightningNodeApi_GetPayment" ,
"responses" : {
"200" : {
"description" : "Lightning payment data" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/LightningPaymentData"
}
}
}
} ,
"503" : {
"description" : "Unable to access the lightning node"
} ,
"404" : {
"description" : "The lightning node configuration or the specified invoice was not found "
}
} ,
"security" : [
{
"API_Key" : [
"btcpay.store.canuselightningnode"
] ,
"Basic" : [ ]
}
]
}
} ,
2022-10-25 13:37:36 +02:00
2020-05-29 10:04:28 +02:00
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/invoices/{id}" : {
"get" : {
"tags" : [
2020-06-07 08:30:04 +02:00
"Lightning (Store)"
2020-05-29 10:04:28 +02:00
] ,
"summary" : "Get invoice" ,
"parameters" : [
{
2020-06-03 11:58:49 +02:00
"name" : "cryptoCode" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The cryptoCode of the lightning-node to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
2021-12-22 11:39:43 +09:00
} ,
"example" : "BTC"
2020-05-29 10:04:28 +02:00
} ,
{
2020-06-03 11:58:49 +02:00
"name" : "storeId" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The store id with the lightning-node configuration to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
}
} ,
{
"name" : "id" ,
"in" : "path" ,
"required" : true ,
"description" : "The id of the lightning invoice." ,
"schema" : {
"type" : "string"
}
}
] ,
"description" : "View information about the requested lightning invoice" ,
"operationId" : "StoreLightningNodeApi_GetInvoice" ,
"responses" : {
"200" : {
"description" : "Lightning invoice data" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/LightningInvoiceData"
}
}
}
} ,
2020-06-08 23:40:58 +09:00
"503" : {
"description" : "Unable to access the lightning node"
2020-06-03 11:58:49 +02:00
} ,
"404" : {
"description" : "The lightning node configuration or the specified invoice was not found "
2020-05-29 10:04:28 +02:00
}
} ,
"security" : [
{
2022-02-02 03:12:48 -08:00
"API_Key" : [
2023-01-16 13:42:54 +01:00
"btcpay.store.canviewlightninginvoice"
2020-05-29 10:04:28 +02:00
] ,
"Basic" : [ ]
}
]
}
} ,
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/invoices/pay" : {
"post" : {
"tags" : [
2020-06-07 08:30:04 +02:00
"Lightning (Store)"
2020-05-29 10:04:28 +02:00
] ,
"summary" : "Pay Lightning Invoice" ,
"parameters" : [
{
2020-06-03 11:58:49 +02:00
"name" : "cryptoCode" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The cryptoCode of the lightning-node to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
2021-12-22 11:39:43 +09:00
} ,
"example" : "BTC"
2020-05-29 10:04:28 +02:00
} ,
{
2020-06-03 11:58:49 +02:00
"name" : "storeId" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The store id with the lightning-node configuration to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
}
}
] ,
2022-11-02 13:03:34 +01:00
"description" : "Pay a lightning invoice. In case the payment response times out, the status will be reported as pending and the final status can be resolved using the [Get payment](#operation/StoreLightningNodeApi_GetPayment) endpoint. The default wait time for payment responses is 30 seconds — it might take longer if multiple routes are tried or a hold invoice is getting paid." ,
2020-05-29 10:04:28 +02:00
"operationId" : "StoreLightningNodeApi_PayInvoice" ,
"responses" : {
"200" : {
2022-02-17 10:01:39 +01:00
"description" : "Successfully paid" ,
"content" : {
"application/json" : {
"schema" : {
2022-11-02 13:03:34 +01:00
"$ref" : "#/components/schemas/LightningPaymentData"
}
}
}
} ,
"202" : {
"description" : "Payment initiated" ,
"content" : {
"application/json" : {
"schema" : {
2022-02-17 10:01:39 +01:00
"$ref" : "#/components/schemas/LightningPaymentData"
}
}
}
2020-05-29 10:04:28 +02:00
} ,
2020-06-03 11:58:49 +02:00
"422" : {
2020-06-08 23:40:58 +09:00
"description" : "Unable to validate the request" ,
2020-05-29 10:04:28 +02:00
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ValidationProblemDetails"
}
}
}
} ,
2020-06-03 11:58:49 +02:00
"400" : {
2020-06-08 23:40:58 +09:00
"description" : "Wellknown error codes are: `could-not-find-route`, `generic-error`" ,
2020-06-03 11:58:49 +02:00
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemDetails"
}
}
}
} ,
2020-06-08 23:40:58 +09:00
"503" : {
"description" : "Unable to access the lightning node"
2020-06-03 11:58:49 +02:00
} ,
"404" : {
"description" : "The lightning node configuration was not found"
2020-05-29 10:04:28 +02:00
}
} ,
"requestBody" : {
"required" : true ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/PayLightningInvoiceRequest"
}
}
}
} ,
"security" : [
{
2022-02-02 03:12:48 -08:00
"API_Key" : [
2021-12-16 12:31:24 +09:00
"btcpay.store.cancreatelightninginvoice"
2020-05-29 10:04:28 +02:00
] ,
"Basic" : [ ]
}
]
}
} ,
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/invoices" : {
2022-10-17 09:51:15 +02:00
"get" : {
"tags" : [
"Lightning (Store)"
] ,
"summary" : "Get invoices" ,
"parameters" : [
{
"name" : "cryptoCode" ,
"in" : "path" ,
"required" : true ,
"description" : "The cryptoCode of the lightning-node to query" ,
"schema" : {
"type" : "string"
} ,
"example" : "BTC"
} ,
{
"name" : "storeId" ,
"in" : "path" ,
"required" : true ,
"description" : "The store id with the lightning-node configuration to query" ,
"schema" : {
"type" : "string"
}
} ,
{
"name" : "pendingOnly" ,
"in" : "query" ,
"required" : false ,
"description" : "Limit to pending invoices only" ,
"schema" : {
"type" : "boolean" ,
"nullable" : true ,
"default" : false
}
} ,
{
"name" : "offsetIndex" ,
"in" : "query" ,
"required" : false ,
"description" : "The index of an invoice that will be used as the start of the list" ,
"schema" : {
"type" : "number" ,
"nullable" : true ,
"default" : 0
}
}
] ,
"description" : "View information about the lightning invoices" ,
"operationId" : "StoreLightningNodeApi_GetInvoices" ,
"responses" : {
"200" : {
"description" : "Lightning invoice data" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "array" ,
"items" : {
"$ref" : "#/components/schemas/LightningInvoiceData"
}
}
}
}
} ,
2022-10-25 13:37:36 +02:00
"401" : {
"description" : "Missing authorization" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemDetails"
}
}
}
} ,
2022-10-17 09:51:15 +02:00
"503" : {
"description" : "Unable to access the lightning node"
2022-10-25 13:37:36 +02:00
} ,
"default" : {
"description" : "Unexpected error" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemDetails"
}
}
}
2022-10-17 09:51:15 +02:00
}
} ,
"security" : [
{
"API_Key" : [
2023-01-16 13:42:54 +01:00
"btcpay.store.canviewlightninginvoice"
2022-10-17 09:51:15 +02:00
] ,
"Basic" : [ ]
}
]
} ,
2020-05-29 10:04:28 +02:00
"post" : {
"tags" : [
2020-06-07 08:30:04 +02:00
"Lightning (Store)"
2020-05-29 10:04:28 +02:00
] ,
"summary" : "Create lightning invoice" ,
"parameters" : [
{
2020-06-03 11:58:49 +02:00
"name" : "cryptoCode" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The cryptoCode of the lightning-node to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
2021-12-22 11:39:43 +09:00
} ,
"example" : "BTC"
2020-05-29 10:04:28 +02:00
} ,
{
2020-06-03 11:58:49 +02:00
"name" : "storeId" ,
2020-05-29 10:04:28 +02:00
"in" : "path" ,
"required" : true ,
2020-06-03 11:58:49 +02:00
"description" : "The store id with the lightning-node configuration to query" ,
2020-05-29 10:04:28 +02:00
"schema" : {
"type" : "string"
}
}
] ,
"description" : "Create a lightning invoice." ,
"operationId" : "StoreLightningNodeApi_CreateInvoice" ,
"responses" : {
"200" : {
"description" : "Successfully created" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/LightningInvoiceData"
}
}
}
} ,
2020-11-23 06:40:13 +01:00
"400" : {
"description" : "Wellknown error codes are: `invoice-error`" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemDetails"
}
}
}
} ,
2020-06-08 23:40:58 +09:00
"503" : {
"description" : "Unable to access the lightning node"
2020-06-03 11:58:49 +02:00
} ,
"404" : {
"description" : "The lightning node configuration was not found"
2020-05-29 10:04:28 +02:00
}
} ,
"requestBody" : {
"required" : true ,
"content" : {
"application/json" : {
"schema" : {
2020-11-06 14:00:10 +01:00
"$ref" : "#/components/schemas/CreateLightningInvoiceRequest"
2020-05-29 10:04:28 +02:00
}
}
}
} ,
"security" : [
{
2022-02-02 03:12:48 -08:00
"API_Key" : [
2020-06-03 11:58:49 +02:00
"btcpay.server.cancreatelightninginvoiceinternalnode"
2020-05-29 10:04:28 +02:00
] ,
"Basic" : [ ]
}
]
}
2023-01-26 05:22:49 +01:00
} ,
"/api/v1/stores/{storeId}/lightning/{cryptoCode}/payments" : {
"get" : {
"tags" : [
"Lightning (Store)"
] ,
"summary" : "Get payments" ,
"parameters" : [
{
"name" : "cryptoCode" ,
"in" : "path" ,
"required" : true ,
"description" : "The cryptoCode of the lightning-node to query" ,
"schema" : {
"type" : "string"
} ,
"example" : "BTC"
} ,
{
"name" : "storeId" ,
"in" : "path" ,
"required" : true ,
"description" : "The store id with the lightning-node configuration to query" ,
"schema" : {
"type" : "string"
}
} ,
{
"name" : "includePending" ,
"in" : "query" ,
"required" : false ,
"description" : "Also include pending payments" ,
"schema" : {
"type" : "boolean" ,
"nullable" : true ,
"default" : false
}
} ,
{
"name" : "offsetIndex" ,
"in" : "query" ,
"required" : false ,
"description" : "The index of an invoice that will be used as the start of the list" ,
"schema" : {
"type" : "number" ,
"nullable" : true ,
"default" : 0
}
}
] ,
"description" : "View information about the lightning payments" ,
"operationId" : "StoreLightningNodeApi_GetPayments" ,
"responses" : {
"200" : {
"description" : "Lightning payment data" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "array" ,
"items" : {
"$ref" : "#/components/schemas/LightningPaymentData"
}
}
}
}
} ,
"401" : {
"description" : "Missing authorization" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemDetails"
}
}
}
} ,
"503" : {
"description" : "Unable to access the lightning node"
} ,
"default" : {
"description" : "Unexpected error" ,
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemDetails"
}
}
}
}
} ,
"security" : [
{
"API_Key" : [
"btcpay.store.cancreatelightninginvoice"
] ,
"Basic" : [ ]
}
]
}
2020-05-29 10:04:28 +02:00
}
} ,
"tags" : [
{
2022-10-25 13:37:36 +02:00
"name" : "Lightning (Store)" ,
"description" : "Lightning (Store) operations"
2020-05-29 10:04:28 +02:00
}
]
}