IDkPlusClient.Company exposes all six operations in the DK Plus v1 Company area.
CompanySettings? settings = await client.Company.GetSettingsAsync(cancellationToken);
CompanyStatus? status = await client.Company.GetStatusAsync(cancellationToken);
CompanyLicence? licence = await client.Company.GetLicenceAsync(cancellationToken);
bool connected = await client.Company.TestConnectionAsync(cancellationToken);
The models are DevOp-owned DTOs with explicit JSON property declarations and XML documentation. The client accepts both the numeric enum values returned by the live API and the string enum values documented by Swagger. The historical Swagger value Boostraping maps to CompanySyncStatus.Bootstrapping.
The CLI exposes the reads as:
devop-dk company show
devop-dk company status
devop-dk company licence
devop-dk company connection
Add --json for structured output. devop-dk connection test also uses the dedicated company-connection endpoint.
client.Company.Settings exposes the dkERP settings tables through typed resources while keeping all /api/v1/general/table calls inside client.Table:
Strings maps GECTRLS.Numbers maps GECTRLN.NumberSeries maps GENUMBER.var strings = await client.Company.Settings.Strings.Query()
.ToListAsync(cancellationToken);
await client.Company.Settings.Strings.UpdateAsync(
"so-comment",
new CompanyStringSettingUpdateRequest { Value = "" },
cancellationToken);
await client.Company.Settings.Strings.UpsertAsync(
"so-comment",
new CompanyStringSettingUpdateRequest { Value = "Order comment" },
cancellationToken);
Reads can use the normal query members such as ModifiedSince, Take, and ToListAsync. An unlimited table read uses modification-cursor batches: DK Plus returns RECORDMODIFIED even when it was not requested, and the next batch starts at the last value plus one millisecond. If the cursor is missing, invalid, or does not advance, the operation fails without returning a partial list.
Updates send KEY plus only the explicitly supplied values. They never send RecordId, creation/modification timestamps, or creator/modifier columns. For strings, null means unchanged and "" clears the value. String upsert first reads by key, then creates or updates; DK Plus has no atomic upsert endpoint, so concurrent writers can race.
CLI equivalents:
devop-dk company setting string list --take 100
devop-dk company setting string list --all --yes
devop-dk company setting string get so-comment
devop-dk company setting string update so-comment --value ""
devop-dk company setting string upsert so-comment --value ""
devop-dk company setting number list --take 100
devop-dk company setting number get tax-rate
devop-dk company setting number update tax-rate --integer-value 42
devop-dk company setting number-series list --take 100
devop-dk company setting number-series get Invoice
devop-dk company setting number-series update Invoice --value 9001
The list commands default to 100 rows. --all confirms with --yes because it may fetch a large table. See PowerShell Cmdlets - Company, Tables, Reference Data, and Session for the matching cmdlets.
await client.Company.StartSyncAsync(
resetFrom: DateTimeOffset.UtcNow.AddDays(-7),
cancellationToken);
The CLI requires explicit confirmation:
devop-dk company sync --yes
devop-dk company sync --reset-from 2026-10-01T00:00:00Z --yes
Synchronization changes remote state and is never retried automatically.
var result = await client.Company.PerformActionAsync(
new CompanyActionRequest
{
Name = "ACTION_NAME",
Parameters = "{\"value\":1}"
},
cancellationToken);
Parameters is an opaque string interpreted by the selected dkERP action. The generic CLI command also requires explicit confirmation:
devop-dk company action ACTION_NAME \
--parameters '{"value":1}' \
--yes
Direct actions may cause arbitrary ERP-side effects. Use only documented action names and parameter formats, and establish an application-specific reconciliation policy before retrying an ambiguous failure.
Customer.PublishToBankAsync remains available as a typed convenience operation over the company action endpoint.