← Tools Reference

BTCPay Server

BTCPay Server integration (Finance). Imported from open-connector.

API key7 tools{base_url}
GET
btcpay_server_list_stores
List BTCPay Server stores available to the API key.

/stores

GET
btcpay_server_get_store
Get details for a single BTCPay Server store.

/stores/{storeId}

1 parameter
ParamTypeRequiredDescription
storeIdstringrequiredThe BTCPay Server store ID.
GET
btcpay_server_list_invoices
List invoices for a BTCPay Server store with optional filters.

/stores/{storeId}/invoices

9 parameters
ParamTypeRequiredDescription
storeIdstringrequiredThe BTCPay Server store ID.
orderIdsarrayoptionalOrder IDs to fetch invoices for. BTCPay Server receives each value as an orderI…
textSearchstringoptionalSearch term that helps locate specific invoices.
statusstringoptionalThe BTCPay Server invoice status.
startDatenumberoptionalUnix timestamp in seconds.
endDatenumberoptionalUnix timestamp in seconds.
includePaymentMethodsbooleanoptionalWhether payment methods should be included in the invoice response.
takeintegeroptionalNumber of records returned in the response.
skipintegeroptionalNumber of records to skip.
GET
btcpay_server_get_invoice
Get details for a single BTCPay Server invoice.

/stores/{storeId}/invoices/{invoiceId}

2 parameters
ParamTypeRequiredDescription
storeIdstringrequiredThe BTCPay Server store ID.
invoiceIdstringrequiredThe BTCPay Server invoice ID.
POST
btcpay_server_create_invoice
Create a BTCPay Server invoice and return its checkout link and invoice data.

/stores/{storeId}/invoices

5 parameters
ParamTypeRequiredDescription
storeIdstringrequiredThe BTCPay Server store ID.
amountstringoptionalInvoice amount as a decimal string. Omit this for a top-up invoice.
currencystringoptionalInvoice currency code. If omitted, BTCPay Server uses the store default currenc…
metadataobjectoptionalAdditional invoice metadata accepted by BTCPay Server, such as orderId, buyerEm…
additionalSearchTermsarrayoptionalAdditional search terms used to find the invoice through text search.
PUT
btcpay_server_update_invoice_metadata
Update metadata for an existing BTCPay Server invoice.

/stores/{storeId}/invoices/{invoiceId}

3 parameters
ParamTypeRequiredDescription
storeIdstringrequiredThe BTCPay Server store ID.
invoiceIdstringrequiredThe BTCPay Server invoice ID.
metadataobjectrequiredAdditional invoice metadata accepted by BTCPay Server, such as orderId, buyerEm…
POST
btcpay_server_mark_invoice_status
Manually mark a BTCPay Server invoice as invalid or settled.

/stores/{storeId}/invoices/{invoiceId}/status

3 parameters
ParamTypeRequiredDescription
storeIdstringrequiredThe BTCPay Server store ID.
invoiceIdstringrequiredThe BTCPay Server invoice ID.
statusstringrequiredStatus to manually assign to the invoice.