curl --location -g --request PUT 'https://{{tenantname}}.onchannelcrm.app/api/EconSettings' \
--header 'CCRMAuthorize: <api-key>' \
--header 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
--data-raw '{
"id": 0,
"enabled": true,
"enterToken": "",
"token": "",
"syncDebtors": true,
"syncProducts": true,
"syncInvoices": true,
"createDebtorFromCRM": true,
"createOrderFromCRM": true,
"editDebtorFromCRM": true,
"orderCreateLevel": 0,
"debtorSyncDate": "",
"productSyncDate": "",
"invoiceSyncDate": "",
"autoCreateDebtorNum": true,
"productsDefaultAvailability": true,
"debtorGroupsForSync": "",
"onlySyncInvoicesWithCRMOrigin": true,
"defaultDebtorGroup": "",
"productGroupsForSync": "",
"dedicatedPricelists": true,
"curenciesToPricelists": "",
"includeDescription": true,
"syncSuppliers": true,
"createSupplierFromCRM": true,
"supplierSyncDate": "",
"autoCreateSupplierNumber": true,
"defaultSupplierGroup": "",
"defaultRelation": "",
"noAccesRelation": "",
"syncDebtorToCompany": true,
"syncDeliveryAddressToCompany": true,
"autoPopulatePriceGroupPrices": true,
"syncDeliveryAddressKAM": true,
"notifyMail": "",
"defaultRelationNavigation": {
"id": "",
"name": "",
"isCustomer": true,
"isCompetitor": true,
"isChannel": true,
"isVendor": true,
"companyRelationPrimNavigations": {},
"companyRelationSecNavigations": {},
"econSettingDefaultRelationNavigations": {},
"econSettingNoAccesRelationNavigations": {},
"kpiRules": {},
"favoriteReports": {}
},
"noAccesRelationNavigation": {
"id": "",
"name": "",
"isCustomer": true,
"isCompetitor": true,
"isChannel": true,
"isVendor": true,
"companyRelationPrimNavigations": {},
"companyRelationSecNavigations": {},
"econSettingDefaultRelationNavigations": {},
"econSettingNoAccesRelationNavigations": {},
"kpiRules": {},
"favoriteReports": {}
}
}'