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.
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.
Organization access token issued by Kick, sent as Authorization: Bearer kick_org_....
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.
201
400
401
403
404
409
429
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"
}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.
Organization access token issued by Kick, sent as Authorization: Bearer kick_org_....
200
400
401
404
429
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"
}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.
Organization access token issued by Kick, sent as Authorization: Bearer kick_org_....
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.
202
400
401
403
404
409
422
429
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?
