Finance

Statements checked against their lines and the P&L

For each statement in the window, two checks with their denominators: (1) TikTok against itself — the statement's settlement_amount minus the sum of its own lines, computed only once every line has landed; (2) linkage — which order and adjustment ids on the statement also appear on P&L rows tagged with this statement id, counted per id, never by money. States: incomplete, no_overlap, partial, complete. Read the counts before the state: a no_overlap on a shop whose P&L export has never run means nothing about the statement. Each page costs three reads, so limit is capped at 50.

post/finance/reconciliation

Request body

start_datestring date nullable

Inclusive statement-date window start (UTC). Defaults to 29 days before end_date.

end_datestring date nullable

Inclusive window end (UTC). Defaults to yesterday.

limitinteger

Statements per page (a page is three reads across both stores).

offsetinteger

Page offset; narrow the window instead of paging deeper.

Response

Successful Response

shop_idinteger required
tts_shop_idstring required
start_datestring required
end_datestring required
statesobject required

How many statements on this page landed in each state.

Changes

Changed in 1 of the 29 revisions of this API.1

Of the 29 revisions, 1 has no diff computed.