10. Partial Refund
Partial Refund
Parameter
Type
Compulsory
Description
Parameter
Type
Compulsory
Description
{
"Date": "2023-01-23",
"MerchantUniqueCode": "12222a222a",
"Amount": 70
}using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
public class Program
{
private static readonly HttpClient client = new HttpClient();
private static async Task Main()
{
var data = new
{
Date = "2023-01-23",
MerchantUniqueCode = "12222a222a",
Amount = 70
};
var content = new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json");
content.Headers.Add("apikeyprivate", "%PRIVATEKEY%");
content.Headers.Add("apiclientprivate", "%PRIVATECLIENT%");
var response = await client.PostAsync("{{Private Base Address}}/api/paywall/private/refund/partial", content);
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);
}
}Parameter
Type
Description
Last updated