<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apitest.nilvera.com/general/GibEArchiveAccount?UserName=aa&Password=aa',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_POSTFIELDS =>'{
"ELedgerProperties": {
"Nace": "string",
"Creator": "string",
"TaxType": "IncludeTax",
"LineCount": 0,
"IsBranch": true,
"BranchName": "string",
"BranchNumber": "string",
"LedgerPeriod": true,
"FiscalYearStart": "2024-04-03T11:14:43.050Z",
"FiscalYearEnd": "2024-04-03T11:14:43.050Z",
"AccountingPeriod": "AccountingPeriod",
"IsLiquidate": true,
"LiquidateYearStart": "2024-04-03T11:14:43.050Z"
}
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: Bearer <API KEY>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;