2. Paywall Transaction ID
Cancellation Service with Paywall Transaction ID (UniqueCode)
Cancellation
Parameter
Type
Compulsory
Description
The parameters to be sent to the service are as follows:
Parameter
Type
Compulsory
Description
{
"Date": "2023-01-23",
"UniqueCode": "0000-0000-0000-0000-0000",
"MarketPlace": { // nullable
"DeleteExistingRecords": false
}
}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 = "12222a2222a",
};
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/cancel", content);
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);
}
}
Parameter
Type
Description
Last updated