Profit and loss
Returns a profit and loss for a date window, built live from TikTok’s settlement statements. Each line (groups[] and totals) has revenue, refunds, shipping, feesAndTaxes with fees and taxes maps, platformCommission, affiliateCommission, adjustments, adjustmentsByType, reserve and settlement, plus row counts. Amounts are exact decimal strings in currency, summed with TikTok’s own signs, so fees are negative. Reserves are kept out of settlement.
start_date and end_date are activity days, YYYY-MM-DD, UTC, both inclusive, at most 365 days apart. TikTok cuts one statement a day at 00:00 UTC covering the day before, so each activity day maps to the statement stamped the next day. group_by is total (default), day or sku. With sku, adjustments, reserves and orders that couldn’t be read go to unallocated. A window whose statements are in more than one currency is rejected.
Large windows can be cut short. When truncated is true, truncatedReasons and coverage say what was left out, and statements.headerTotals still sums the header of every listed statement. Narrow the window to get full coverage.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
First activity day, YYYY-MM-DD, UTC, inclusive.
Last activity day, YYYY-MM-DD, UTC, inclusive. At most 365 days after start_date.
total, day (activity day: statement UTC date minus one) or sku.
total, day, sku Use the TikTok Shop of this child brand (organization id) of your API key's organization
Response
{ window, basis: statement_activity_day_utc, groupBy, currency, groups: [{ key, ...line }], totals: line, unallocated: line | null, statements: { listed, fullyRead, headerTotals }, coverage: { statementPages, transactionPages, transactionRows, statementsFailed, ordersNeeded, ordersRead, ordersFailed }, truncated, truncatedReasons, skusWithoutCogs }. line = { revenue, revenueBreakdown, refunds, shipping, shippingBreakdown, feesAndTaxes, fees, taxes, platformCommission, affiliateCommission, adjustments, adjustmentsByType, reserve, settlement, rows: { orders, adjustments, reserves, skus }, units, cogs, grossProfit }.