Firma Bilgileri Günceller

Firma bilgilerini günceller.

PUT/general/Company
Body
TaxOfficenullable string
Addressnullable string
Districtnullable string
Citynullable string
Countrynullable string
PostalCodenullable string
PhoneNumbernullable string
Faxnullable string
Emailnullable string
WebSitenullable string
PayeeFinancialAccountIDnullable string
PaymentMeansChannelCodenullable string
PaymentMeansCodePaymentMeansCode (enum)
ODEMETIPIMUHTELIFNAKITCEKBANKACEKIHAVALE_EFTKREDIKARTI_BANKAKARTI
Response

Firma bilgilerini günceller.

Body
Namenullable string
TaxNumbernullable string
TaxOfficenullable string
Addressnullable string
Districtnullable string
Citynullable string
Countrynullable string
PostalCodenullable string
PhoneNumbernullable string
Faxnullable string
Emailnullable string
WebSitenullable string
IsActivenullable boolean
IsDeletednullable boolean
PayeeFinancialAccountIDnullable string
PaymentMeansChannelCodenullable string
PaymentMeansCodenullable string
Aliasesnullable array of CompanyAliases (object)
Request
const response = await fetch('/general/Company', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "Name": "text",
  "TaxNumber": "text",
  "TaxOffice": "text",
  "Address": "text",
  "District": "text",
  "City": "text",
  "Country": "text",
  "PostalCode": "text",
  "PhoneNumber": "text",
  "Fax": "text",
  "Email": "text",
  "WebSite": "text",
  "IsActive": false,
  "IsDeleted": false,
  "PayeeFinancialAccountID": "text",
  "PaymentMeansChannelCode": "text",
  "PaymentMeansCode": "text",
  "Aliases": [
    {
      "Alias": "text"
    }
  ]
}
var client = new RestClient("https://apitest.nilvera.com/general/Company");
client.Timeout = -1;
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{"TaxOffice": "string",
"Address": "string",
"District": "string",
"City": "string",
"Country": "string",
"PostalCode": "string",
"PhoneNumber": "string",
"Fax": "string",
"Email": "string",
"WebSite": "string",
"PayeeFinancialAccountID": "string",
"PaymentMeansChannelCode": "string",
"PaymentMeansCode": "ODEMETIPIMUHTELIF"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);