Adisyon Bildirim Kuralını Günceller
Authorizations
Body
Responses
200
EAdisyon bildirimi kuralını günceller.
application/json
Responseboolean
400
Geçersiz İstek | Gönderdiğiniz istekte geçersiz veriler bulunduğu anlamında gelmektedir | Detaylar için tıklayınız
403
Yetkisiz Erişim | Bu uca erişmek için gerekli yetkiye sahip olmadığınız durumda dönülür
404
Parametrede belirtilen kayıt bulunamadığında dönülür | Detaylar için tıklayınız
422
Gönderdiğiniz istek geçerli fakat iş kuralları gereği geçersiz değerler içerdiğinde dönülür | Detaylar için tıklayınız
put
PUT /einvoice/Notification HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 248
{
"NotificationDto": {
"ID": 1,
"RuleName": "text",
"Rules": [
{
"Property": "DocumentProfile",
"Operator": "GreaterOrEqual",
"ValueFirst": "text",
"ValueSecond": "text"
}
],
"Contact": [
{
"NotificationValue": "text",
"NotificationValueType": "Whatsapp"
}
],
"IsActive": true
}
}
true
var options = new RestClientOptions("//ebill/Notification")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("", Method.Put);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer {{bearerToken}}");
var body = @"{" + "\n" +
@" ""NotificationDto"": {" + "\n" +
@" ""ID"": ""<integer>""," + "\n" +
@" ""RuleName"": ""<string>""," + "\n" +
@" ""Rules"": [" + "\n" +
@" {" + "\n" +
@" ""Property"": ""PayableAmount""," + "\n" +
@" ""Operator"": ""Between""," + "\n" +
@" ""ValueFirst"": ""<string>""," + "\n" +
@" ""ValueSecond"": ""<string>""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""Property"": ""PayableAmount""," + "\n" +
@" ""Operator"": ""SmallOrEqual""," + "\n" +
@" ""ValueFirst"": ""<string>""," + "\n" +
@" ""ValueSecond"": ""<string>""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""Contact"": [" + "\n" +
@" {" + "\n" +
@" ""NotificationValue"": ""<string>""," + "\n" +
@" ""NotificationValueType"": ""Mail""" + "\n" +
@" }," + "\n" +
@" {" + "\n" +
@" ""NotificationValue"": ""<string>""," + "\n" +
@" ""NotificationValueType"": ""Sms""" + "\n" +
@" }" + "\n" +
@" ]," + "\n" +
@" ""IsActive"": ""<boolean>""" + "\n" +
@" }" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
Last updated