Removes a country-specific price override from the given site's fixed pricing model. The site must already have fixed pricing configured. Optionally specify an actionId to target per-action country pricing; it must name an action the caller can see in the console's action list (a deleted one is accepted, so its leftover price can be removed). The code is case-insensitive, and GB reaches the price stored under UK. Requires ENABLED level on SITE_PAYMENT_MODEL permission.
Path Params
siteIdintegerrequired
Unique numeric ID of the site
5001
countryCodestringrequired
2-letter ISO 3166 country code (e.g. US, GB, DE)
US
Form Params
actionIdinteger
ID of the action for per-action pricing, or null for default pricing
42
Responses
200
Country pricing deleted successfully
400
Invalid request parameters or site/country not found
401
Authentication error
403
Insufficient permissions
404
actionId names no action the caller can see, or there is no price for that country (and action) to remove, including on a site without fixed pricing
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://YOUR-NETWORK-DOMAIN/rest-api/sites/5001/pricing/US.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["actionId"] = "42" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());