Request model for creating a subscription plan with pricing and metadata.
// Source: https://github.com/btcpayserver/btcpayserver | License: MIT | Copyright 2017-2023 btcpayserver
// Provided via justclaw.it.com; keep this notice with the code.
using BTCPayServer.JsonConverters;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Client.Models;
public class CreatePlanRequest
{
public string Description { get; set; }
public string Currency { get; set; }
public int? GracePeriodDays { get; set; }
public string Name { get; set; }
public bool? OptimisticActivation { get; set; }
[JsonConverter(typeof(NumericStringJsonConverter))]
public decimal? Price { get; set; }
public bool? Renewable { get; set; }
public int? TrialDays { get; set; }
public JObject Metadata { get; set;
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key