using System.Text.Json.Serialization; namespace eprintServer.Requests { public class PaymentRequest { [JsonPropertyName("orderId")] // This forces it to match your payload exactly public long OrderId { get; set; } [JsonPropertyName("discount")] public decimal Discount { get; set; } [JsonPropertyName("currency")] public string Currency { get; set; } // Include Amount if your service needs it (it was missing in your payload example) [JsonPropertyName("amount")] public decimal Amount { get; set; } } }