Reconcile server accounts
const url = 'https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/accounts/reconcile';const options = { method: 'POST', headers: {'X-Request-Id': 'onboarding-client-1042', Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/accounts/reconcile \ --header 'Authorization: <Authorization>' \ --header 'X-Request-Id: onboarding-client-1042'Brings Koneth Main’s record of a server’s accounts back in line with what
the server actually holds. Requires accounts:create.
Use it after an account create failed midway, or after a server was
restored from a backup — the two ways the records drift apart. Neither
case should cost anyone an account, so an account the server holds and
Koneth Main does not is adopted into the organization that owns the
server, and a record left failed whose account the server does report
becomes a real account again. Only a failed record the server never
created is cleared.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”UUID of a trading server owned by your organization.
Example
6be9a699-2f28-402e-b64e-93ba6bdafe1bHeader Parameters
Section titled “Header Parameters”Optional correlation ID used for API request billing and logs.
Example
onboarding-client-1042Responses
Section titled “Responses”Reconciliation completed.
object
Account numbers Koneth Main now manages and did not before,
either registered for the first time or restored from a
failed record. A paused account is adopted as disabled
and an ended one as archived.
Number of failed account records cleared from Koneth Main.
Number of accounts the server still reports.
Example
{ "adopted": [ "7001042" ], "removedFailed": 1, "runtimeAccountCount": 24}Invalid request.
object
Validation issue details when the request fails schema validation.
object
Examplegenerated
{ "error": "example", "issues": [ {} ]}Management API authentication is missing or invalid.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Management API authentication required"}The organization cannot cover the active API request price.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Insufficient API credits"}The key lacks the required scope or server access.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Missing API scope: accounts:read"}Unexpected server error.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Internal server error"}