For the complete documentation index, see llms.txt. This page is also available as Markdown.

Accounting Migration

Start an entity's accounting migration, check its status, and generate transaction rules from the migrated history.

An accounting migration marks an entity whose history you're importing from another accounting system. An entity keeps at most one, so the resource is singular and addressed by the entity uuid alone. You push the history itself through Journal Entries. For the full process, see Migration.

Creating the migration pauses automatic categorization of the entity's transactions. Generating transaction rules builds categorization rules from the migrated journal entries in the background and then resumes categorization. enrichmentRulesSeededAt is null until that finishes.

Start an accounting migration

post

Starts an API-driven accounting migration for the entity. Create it before pushing historical journal entries: while the migration is open, Kick pauses automatic transaction enrichment so the rules generated from the migrated history apply before live transactions are categorized. An entity keeps at most one migration, and an entity that already has opening balances cannot start one; both are rejected with 409. The entity must have a bookkeeping start date, otherwise the call is rejected with 400.

Authorizations
AuthorizationstringRequired

Organization access token issued by Kick, sent as Authorization: Bearer kick_org_....

Path parameters
entityIdstring · uuidRequired
Header parameters
Idempotency-Keystring · min: 1 · max: 255Optional

A unique key that makes the request idempotent. Retrying with the same key within 24 hours replays the original response (marked with Idempotent-Replayed: true) instead of executing again.

Responses
400

400

application/json
messagestringRequired
traceIdstring · nullableOptional
post/platform/v1/entities/{entityId}/accounting-migration
POST /api/platform/v1/entities/{entityId}/accounting-migration HTTP/1.1
Host: use.kick.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "message": "text",
  "traceId": "text"
}

Get the accounting migration

get

Returns the entity's accounting migration. Poll enrichmentRulesSeededAt after triggering transaction-rule generation: it is null until generation has finished. Returns 404 when the entity has no migration.

Authorizations
AuthorizationstringRequired

Organization access token issued by Kick, sent as Authorization: Bearer kick_org_....

Path parameters
entityIdstring · uuidRequired
Responses
400

400

application/json
messagestringRequired
traceIdstring · nullableOptional
get/platform/v1/entities/{entityId}/accounting-migration
GET /api/platform/v1/entities/{entityId}/accounting-migration HTTP/1.1
Host: use.kick.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "message": "text",
  "traceId": "text"
}

Generate transaction rules from migrated history

post

Queues generation of transaction categorization rules from the historical journal entries pushed for this migration. Only journal entries on the entity's cash ledger, posted to income or expense accounts, and dated in the year before the entity's bookkeeping start date are considered. Generation runs asynchronously: the call returns 202 with the migration, and enrichmentRulesSeededAt is set once it completes — automatic transaction enrichment resumes at that point. Returns 409 when rules were already generated for this migration, and 422 when the workspace is not eligible for rule generation.

Authorizations
AuthorizationstringRequired

Organization access token issued by Kick, sent as Authorization: Bearer kick_org_....

Path parameters
entityIdstring · uuidRequired
Header parameters
Idempotency-Keystring · min: 1 · max: 255Optional

A unique key that makes the request idempotent. Retrying with the same key within 24 hours replays the original response (marked with Idempotent-Replayed: true) instead of executing again.

Responses
400

400

application/json
messagestringRequired
traceIdstring · nullableOptional
post/platform/v1/entities/{entityId}/accounting-migration/generate-transaction-rules
POST /api/platform/v1/entities/{entityId}/accounting-migration/generate-transaction-rules HTTP/1.1
Host: use.kick.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "message": "text",
  "traceId": "text"
}

Last updated

Was this helpful?