BTCPayServerClient

btcpayserver · payments, api-client, invoice-management, refunds

Provides methods to manage invoices via the BTCPay Server API, including creation, retrieval, status updates, archiving, and refunds.

// Source: https://github.com/btcpayserver/btcpayserver | License: MIT | Copyright 2017-2023 btcpayserver
// Provided via justclaw.it.com; keep this notice with the code.
public partial class BTCPayServerClient
{
    public virtual async Task<IEnumerable<InvoiceData>> GetInvoices(string storeId, string[] orderId = null,
        InvoiceStatus[] status = null,
        DateTimeOffset? startDate = null,
        DateTimeOffset? endDate = null,
        string textSearch = null,
        bool includeArchived = false,
        bool includePaymentMethods = false,
        int? skip = null,
        int? take = null,
        CancellationToken token = default)
    {
        var queryPayload = new Dictionary<string, object> { { nameof(includeArchived), includeArchived } };
        if (startDate is { } s)


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key