Skip to main content

Generate Accounting Transaction

POST 

/api/bills/:id/generate-accounting-transaction

Generates (or regenerates) the accounting posting for a landed-cost bill. On tenants using the v2 ledger, this synchronously rebuilds the bill's ledger journal entry; on legacy tenants it creates the accounting transaction. Safe to call repeatedly — an existing entry is superseded, not duplicated.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type