UpdateStore

btcpayserver · pos, store-update, put-request, input-validation, merchant-settings, payments

Updates an existing store's settings by sending a PUT request with the provided data. It validates inputs and returns the updated store data.

// Source: https://github.com/btcpayserver/btcpayserver | License: MIT | Copyright 2017-2023 btcpayserver
// Provided via justclaw.it.com; keep this notice with the code.
    public virtual async Task<StoreData> UpdateStore(string storeId, UpdateStoreRequest request, CancellationToken token = default)
    {
        if (request == null) throw new ArgumentNullException(nameof(request));
        if (storeId == null) throw new ArgumentNullException(nameof(storeId));
        return await SendHttpRequest<StoreData>($"api/v1/stores/{storeId}", request, HttpMethod.Put, token);
    }

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

Get a free API key