Müşteri Günceller

Müşteri günceller.

put
Authorizations
Body
IDinteger · int32Optional
TaxNumberstring | nullableOptional
Namestring | nullableOptional
TaxDepartmentstring | nullableOptional
Addressstring | nullableOptional
Countrystring | nullableOptional
Citystring | nullableOptional
Districtstring | nullableOptional
PostalCodestring | nullableOptional
Phonestring | nullableOptional
Faxstring | nullableOptional
Emailstring | nullableOptional
WebSitestring | nullableOptional
IsExportbooleanOptional
Responses
200
Müşteri günceller.
application/json
Responseboolean
put
PUT /general/Customers HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 226

{
  "ID": 1,
  "TaxNumber": "text",
  "Name": "text",
  "TaxDepartment": "text",
  "Address": "text",
  "Country": "text",
  "City": "text",
  "District": "text",
  "PostalCode": "text",
  "Phone": "text",
  "Fax": "text",
  "Email": "text",
  "WebSite": "text",
  "IsExport": true
}
true
var client = new RestClient("https://apitest.nilvera.com/general/Customers");
client.Timeout = -1;
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{"ID": 0,
"TaxNumber": "string",
"Name": "string",
"TaxDepartment": "string",
"Address": "string",
"Country": "string",
"City": "string",
"District": "string",
"PostalCode": "string",
"Phone": "string",
"Fax": "string",
"Email": "string",
"WebSite": "string",
"IsExport": true}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Last updated