Endpoints: financial breakdown

True-profit breakdowns, profit-adjusted ROAS, margin tools, and shop overviews per platform.

These endpoints compute DataGlass's core numbers — true profit, true margin, and profit-adjusted ROAS — by netting out platform fees, commission, payment fees, shipping, ads cost, returns, VAT, and your COGS. See Getting started for auth and Conventions for the response envelope. All read-only.

Click any endpoint to expand its parameters, request body, and response.

Shopee — financial breakdown

POST/api/shopee/financial-breakdown/model-breakdowns/batch-by-model-ids

Computes financial breakdowns for a list of specific product model IDs. Each model gets a detailed profit analysis — revenue, costs, fees, and net profit. Use this for bulk variant analysis or to compare profitability across models within a product. True profit nets out platform fees, commission, ads cost, and COGS.

Request body

ShopeeGetModelBreakdownsByModelIdsDto

FieldTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code (e.g. TH)
modelIdsarrayyesModel IDs to analyze
lookbackDaysintegernoDays of sales history to analyze (default 180)
effectiveDatestring (date)noOverride effective date for fee rates (default today)

Response — Array of ShopeeModelBreakdownFlatEntry

One entry per model: item/model id, original price, the full cost breakdown, metadata (rates, VAT, inferred COGS, profit), and product-level aggregates.

FieldTypeDescription
itemIdintegerProduct item ID
modelIdintegerModel/variant ID (null for single-variant products)
originalPricenumberList price before discounts
breakdownobjectFee-by-fee breakdown (commission, service fee, transaction fee, COGS, ads, returns…)
metadataobjectRates, VAT status, inferred COGS, profit summary
modelUnitsSoldintegerUnits sold in the lookback window
productMarginnumberProduct-level margin

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/product

Analyzes one product's profit across all variants (models): aggregates revenue and costs across models sold in the lookback window, then returns a single per-unit profit breakdown — gross revenue, platform fees, commission, VAT, COGS, ads spend, and net margin.

Request body

ShopeeGetUnitFinancialBreakdownDto

FieldTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
itemIdintegeryesProduct item ID
modelIdintegernoSpecific model; omit to aggregate all models
lookbackDaysintegernoSales history window (default 180)
includeVatbooleannoInclude VAT computation (default true)
effectiveDatestring (date)noOverride effective date for rates

ResponseShopeeFinancialBreakdown

A signed, line-by-line itemization (positive = revenue, negative = cost); summing all lines yields net profit per unit.

FieldTypeDescription
originalModelPriceobjectList price before discounts
sellerDiscountobjectSeller-funded item discount
commissionFeeobjectShopee commission fee
serviceFeeobjectShopee service fee
manufacturingCogsobjectProduct cost (explicit or inferred)
adsCostPerSaleobjectMarginal ads spend
vatobjectOutput VAT (if VAT-registered)

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/new-product

Estimates profit for a product before listing. Supply price, category, COGS, and VAT mode and get the projected margin given your cost structure and the platform's fee schedule — useful for pricing strategy.

Request body

ShopeeGetNewProductFinancialBreakdownDto

FieldTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
listingPricenumberyesProposed listing price
categoryIdintegeryesShopee category ID (determines commission rate)
manufacturingCogsnumbernoUnit product cost
hasVatbooleannoSeller is VAT-registered (default false)
buyerPaidShippingFeenumbernoBuyer-paid shipping (Seller-Own-Fleet only)
effectiveDatestring (date)noOverride effective date for rates

ResponseShopeeFinancialBreakdownWithMetadata

FieldTypeDescription
breakdownobjectPer-unit cost-line breakdown
metadataobjectCommission/VAT rates, inferred COGS, profit, margin
modelBreakdownsarrayPer-model breakdowns (usually empty for new products)
POST/api/shopee/financial-breakdown/required-price

Reverse-calculates the listing price needed to hit a target profit (or margin) given COGS and a discount strategy, after all platform fees. Use before listing or repricing.

Request body

ShopeeComputeRequiredPriceDto

FieldTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
categoryIdintegeryesShopee category ID (for commission rate)
cogsnumberyesUnit product cost
targetMarginnumberyesTarget profit per unit
targetDiscountnumbernoFixed discount amount
targetDiscountPercentnumbernoDiscount as % of listing price
hasVatbooleannoVAT-registered seller (default false)
adsCostPerSalenumbernoEstimated ads cost to factor in
effectiveDatestring (date)noOverride effective date for rates

ResponseShopeeRequiredPriceResult

FieldTypeDescription
requiredListingPricenumberMinimum listing price to achieve the target
breakdownobjectFull cost breakdown at that price
POST/api/shopee/financial-breakdown/simulate

Projects the profit impact of changing a product's price, discount, or seller-funded promotions before applying them. Input proposed values and see the resulting margin and profit per unit. Does NOT change anything on Shopee.

Request body

ShopeeProfitImpactSimulationDtoshopId, region, itemId required; the rest are optional overrides.

FieldTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
itemIdintegeryesProduct item ID
modelIdintegernoSpecific model; omit for product-level
sellerDiscountnumbernoProposed seller discount
sellerVouchernumbernoProposed seller voucher
manufacturingCogsnumbernoOverride product cost
adsCostPerSalenumbernoOverride ads cost estimate
commissionRatenumbernoOverride commission rate
effectiveDatestring (date)noOverride effective date for rates

ResponseShopeeFinancialBreakdownWithMetadata — the simulated breakdown and resulting margin/profit.

POST/api/shopee/financial-breakdown/item/{shopId}/{region}/{itemId}

Fetches the realized financial breakdown for a product, aggregating actual sales and costs across all variants in the lookback window (based on real sales data, not hypothetical pricing).

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
itemIdintegeryesProduct item ID

Request body

ShopeeItemFinancialBreakdownFetchRequest (optional — defaults applied if omitted)

FieldTypeRequiredDescription
lookbackDaysintegernoSales history window (default 180)
includeVatbooleannoInclude VAT (default false)
effectiveDatestring (date)noOverride effective date for rates

ResponseShopeeFinancialBreakdownWithMetadata — per-unit breakdown aggregated across models, plus per-model entries.

POST/api/shopee/financial-breakdown/products/{shopId}/{region}

Per-product breakdowns for the entire shop, cursor-paginated. Each product's breakdown is aggregated across its variants from actual sales. Use for dashboard tables ranking profitability.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request body

ShopeeProductLevelFinancialBreakdownFetchRequest (optional)

FieldTypeRequiredDescription
lookbackDaysintegernoSales history window (default 180)
includeVatbooleannoInclude VAT (default false)
cursorRtProductIdintegernoPagination cursor (omit to start)
pageSizeintegernoResults per page (default 50)
effectiveDatestring (date)noOverride effective date for rates

ResponseCursorPaginatedResult<RtShopeeProductCursor, ShopeeProductFinancialBreakdownEntry>

FieldTypeDescription
dataarrayProduct entries (item id, name, breakdown, units sold)
nextCursorobjectCursor for next page (null at end)
dataFreshAtstring (date)When product data was last synced
POST/api/shopee/financial-breakdown/profit-adjusted-roas/{shopId}/{region}/{itemId}

Computes ROAS adjusted for actual profit (not just GMV), accounting for COGS, fees, and discounts — i.e. true profitability per ad dollar. Returns three frames: raw (as Shopee reports), cleaned, and deflated.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
itemIdintegeryesProduct item ID

Request body

ShopeeProductProfitAdjustedRoasFetchRequest (optional)

FieldTypeRequiredDescription
lookbackDaysintegernoAds history window (default 180)
includeVatbooleannoInclude VAT in the profit calc (default false)
effectiveDatestring (date)noOverride effective date for rates

ResponseShopeeProductProfitAdjustedRoasSummary

FieldTypeDescription
itemIdintegerProduct item ID
totalAdExpensenumberTotal ad spend in the period
totalProfitFromAdsnumberProfit from ads-attributed orders
profitAdjustedRoasnumberProfit ÷ ad spend
modelDetailsarrayPer-variant margins and ROAS

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/profit-adjusted-roas-dedup/{shopId}/{region}/{itemId}

Like the profit-adjusted ROAS endpoint, but applies ad-cancellation dedup: it distinguishes chain-rebuy cancels from solo cancels and returns three confidence levels — raw, cleaned (chain-rebuys removed), and deflated (net settled) — so you see true ad effectiveness after cancellations.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
itemIdintegeryesProduct item ID

Request body

ShopeeProductProfitAdjustedRoasFetchRequest (optional) — same fields as above.

ResponseShopeeProductProfitAdjustedRoasSummary

FieldTypeDescription
profitAdjustedRoasnumberRaw ROAS (Shopee-reported attribution)
profitAdjustedCleanedRoasnumberCleaned ROAS (chain-rebuy dedup)
profitAdjustedDeflatedRoasnumberDeflated ROAS (all cancels removed)
modelDetailsarrayPer-variant ROAS and profit

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/corrected-roas/{shopId}/{region}

Shop-level ad ROAS corrected for ad-cancellation dedup but without the profit-margin adjustment (based on GMV after fees, not after COGS). One entry per requested item — useful when COGS data is incomplete.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request body

ShopeeCorrectedRoasFetchRequest

FieldTypeRequiredDescription
itemIdsarrayyesProduct item IDs
lookbackDaysintegernoAds history window (default 30)

Response — Array of ShopeeProductAdsCorrectedSummary

FieldTypeDescription
itemIdintegerProduct item ID
totalAdExpensenumberAd spend in the period
attributedGmvnumberGMV attributed to ads (after dedup)
correctedRoasnumberGMV ÷ ad spend (no COGS)

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/products/{shopId}/{region}/sorted-by-profit

Ranks all shop products by realized profit (highest first) over the lookback window — for spotting top earners and loss-makers. Offset-paginated.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request body

ShopeeSortedProductBreakdownFetchRequest (optional)

FieldTypeRequiredDescription
lookbackDaysintegernoSales history window (default 180)
includeVatbooleannoInclude VAT (default false)
pageintegerno0-based page (default 0)
pageSizeintegernoResults per page (default 50)
effectiveDatestring (date)noOverride effective date for rates

ResponseOffsetPaginatedResult<ShopeeProductProfitSortedEntry> — products ranked by total profit, with page metadata and dataFreshAt.

POST/api/shopee/financial-breakdown/products/{shopId}/{region}/sorted-by-profit-adjusted-roas

Ranks all shop products by profit-adjusted ROAS (highest first) — which products deliver the best return on ad spend, after real margins.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request body

ShopeeSortedProductBreakdownFetchRequest (optional) — same fields as sorted-by-profit.

ResponseOffsetPaginatedResult<ShopeeProductProfitAdjustedRoasSummary> — products ranked by profit-adjusted ROAS, with page metadata.

POST/api/shopee/financial-breakdown/shop-overview/{shopId}/{region}

A comprehensive shop-level profit overview in one payload: total profit, average margin, top/worst products, cost breakdown, channel split (organic/ads/affiliate), margin distribution, and a money-flow Sankey. For better performance, prefer the focused sub-endpoints below.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request body

ShopeeShopFinancialOverviewFetchRequest (optional)

FieldTypeRequiredDescription
fromstring (date)noStart date (default last 30 days)
tostring (date)noEnd date (default today)
topNintegernoTop N products to list (default 5)
compareToPreviousbooleannoInclude prior-period comparison (default true)
includeVatbooleannoInclude VAT (default false)

ResponseShopeeShopFinancialOverview

FieldTypeDescription
grossGmvnumberGross merchandise value (after seller discount)
totalProfitnumberTotal shop profit
avgMarginnumberRevenue-weighted average margin
topProfitProductsarrayTop N most profitable products
costBreakdownarrayP&L waterfall with all cost lines
comparisonobjectPrior-period comparison and KPI deltas
channelBreakdownobjectProfit split across organic/ads/affiliate
sankeyobjectMoney-flow Sankey diagram

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/shop-overview/{shopId}/{region}/summary

The headline slice of the shop overview: total profit, average margin, COGS coverage, and period-over-period comparison. Lightweight — ideal for dashboard tiles. Same path params and body as the full overview.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request bodyShopeeShopFinancialOverviewFetchRequest (optional; same as the full overview).

ResponseShopeeShopOverviewSummary

FieldTypeDescription
grossGmvnumberGross GMV
totalProfitnumberTotal profit
avgMarginnumberAverage margin
cogsCoverageobjectCOGS coverage stats
comparisonobjectPrior-period KPI deltas
POST/api/shopee/financial-breakdown/shop-overview/{shopId}/{region}/products

The four ranked product lists from the overview (top/worst × profit/margin). Same path params and body as the full overview.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request bodyShopeeShopFinancialOverviewFetchRequest (optional).

ResponseShopeeShopOverviewProducts

FieldTypeDescription
topProfitProductsarrayTop N by profit
topMarginProductsarrayTop N by margin
worstProfitProductsarrayBiggest loss-makers
worstMarginProductsarrayThinnest margins
POST/api/shopee/financial-breakdown/shop-overview/{shopId}/{region}/breakdowns

The cost-breakdown P&L waterfall, costs-only pie, and most-profitable categories. Same path params and body as the full overview.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request bodyShopeeShopFinancialOverviewFetchRequest (optional).

ResponseShopeeShopOverviewBreakdowns

FieldTypeDescription
costBreakdownarrayWaterfall lines (commission, service fee, transaction fee, COGS, ads, returns, VAT)
costBreakdownPieobjectCosts-only pie chart data
categoryBreakdownarrayTop N most profitable categories
POST/api/shopee/financial-breakdown/shop-overview/{shopId}/{region}/flow

The channel breakdown (organic/ads/affiliate) and the money-flow Sankey showing how gross revenue flows through costs to net profit. Same path params and body as the full overview.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request bodyShopeeShopFinancialOverviewFetchRequest (optional).

ResponseShopeeShopOverviewFlow

FieldTypeDescription
channelBreakdownobjectRevenue and profit by channel
sankeyobjectMoney-flow Sankey diagram
POST/api/shopee/financial-breakdown/shop-overview/{shopId}/{region}/margin-distribution

The per-product margin box-and-whisker distribution — the spread of profitability across your catalog. Same path params and body as the full overview.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request bodyShopeeShopFinancialOverviewFetchRequest (optional).

ResponseShopeeShopOverviewDistribution

FieldTypeDescription
marginDistributionobjectBox-and-whisker: min, q1, median, q3, max, outliers
POST/api/shopee/financial-breakdown/commission-impact-summary/{shopId}/{region}

Estimates the profit impact of an upcoming commission-rate change, broken down by category with the most-affected products. Use when Shopee announces a commission change to assess the financial risk.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request body

ShopeeCommissionImpactSummaryFetchRequest

FieldTypeRequiredDescription
effectiveDatestring (date)yesDate the new rates take effect
lookbackDaysintegernoSales history to extrapolate (default 180)
includeVatbooleannoInclude VAT (default false)
topNintegernoTop affected products per category (default 20)

ResponseShopeeCommissionImpactSummary

FieldTypeDescription
totalCurrentMonthlyProfitnumberExtrapolated current-month profit (old rates)
totalFutureMonthlyProfitnumberExtrapolated profit at new rates
totalMonthlyProfitDeltanumberMonthly profit impact
affectedProductCountintegerProducts with rate changes
byCategoryarrayPer-category impact with top-affected products

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/commission-overview/{shopId}/{region}

Summarizes current commission rates and their impact across product categories — commission as a percentage of revenue, with top-commission products. Use to audit current commission exposure.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code

Request body

ShopeeCommissionOverviewFetchRequest (optional)

FieldTypeRequiredDescription
lookbackDaysintegernoSales history (default 180)
includeVatbooleannoInclude VAT (default false)
topNintegernoTop N categories to detail (default 20)

ResponseShopeeCommissionOverview

FieldTypeDescription
totalMonthlyRevenuenumberExtrapolated monthly revenue
totalMonthlyCommissionnumberExtrapolated monthly commission
commissionAsPercentOfRevenuenumberCommission as % of revenue
byCategoryarrayPer-category breakdown with current rates

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/preview-set-margin

Calculates the seller discount and voucher needed to hit a target margin (or fixed profit) on one or more models. A preview only — it does not apply anything. Backs the margin-tool UI.

Request body

ShopeeSetMarginDto

FieldTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
modelsarrayyesModels to adjust (each: itemId, modelId, originalPrice)
modestringnoPROFIT or MARGIN (default PROFIT)
targetProfitnumbernoTarget profit per unit (mode=PROFIT)
targetMarginPercentnumbernoTarget margin % (mode=MARGIN)
includeVatbooleannoInclude VAT (default true)
effectiveDatestring (date)noOverride effective date

ResponseShopeeSetMarginResult

FieldTypeDescription
adjustedItemsarrayPer model: computed discount, voucher, simulated breakdown
unadjustableItemsarrayModels that can't hit the target (with reason)

…and more — see the full schema in the OpenAPI spec.

POST/api/shopee/financial-breakdown/preview-set-buyer-price

Calculates the seller discount and voucher needed to achieve a target final buyer price (what the customer pays after discounts). A preview only. Useful for campaign planning.

Request body

ShopeeSetBuyerPriceDto

FieldTypeRequiredDescription
shopIdintegeryesShopee shop ID
regionstringyesRegion code
modelsarrayyesModels to adjust (each: itemId, modelId, targetBuyerPrice)
includeVatbooleannoInclude VAT (default true)
effectiveDatestring (date)noOverride effective date

ResponseShopeeSetMarginResultadjustedItems (discount/voucher + resulting margin + simulated breakdown) and unadjustableItems (infeasible targets, with reason).

Lazada — financial breakdown

Lazada's advertising endpoints (profit-adjusted ROAS, corrected ROAS, sorted-by-profit-adjusted-ROAS) are scaffolded but not yet active — they currently return a not-implemented response pending the Lazada hidden-cost pipeline. They're listed for completeness.
POST/api/lazada/financial-breakdown/partner/sku-breakdowns/batch-by-sku-ids

Returns per-SKU financial breakdowns for a hand-picked set of SKU IDs — for bulk-pricing tools analyzing profitability across specific variants. Each entry includes commission, payment fees, and any LazCoins deductions.

Request body

LazadaGetSkuBreakdownsBySkuIdsDto

FieldTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code (e.g. TH)
skuIdsarrayyesSKU IDs to fetch breakdowns for
sellerTypestringnoSeller type (default REGULAR)
hasVatbooleannoInclude VAT (default true)
lookbackDaysintegernoDays back for return-rate signal (default 30)
effectiveDatestring (date)noEffective date for rates

Response — Array of LazadaSkuBreakdownFlatEntry — SKU id, seller SKU, original price, and a full breakdown (revenue, commission, payment, LazCoins, COGS, VAT, net margin). …and more — see the full schema in the OpenAPI spec.

POST/api/lazada/financial-breakdown/partner/product

Computes the breakdown for one product or SKU. With skuId null, returns the volume-weighted aggregate across all SKUs; with skuId set, the single-variant breakdown. Backs the product profit screen.

Request body

LazadaGetUnitFinancialBreakdownDto

FieldTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code
itemIdintegeryesLazada item/product ID
skuIdintegernoSKU ID for unit-level; null for product-level
sellerTypestringnoSeller type (default REGULAR)
hasVatbooleannoInclude VAT (default true)
lookbackDaysintegernoReturn-rate lookback (default 30)
effectiveDatestring (date)noEffective date for rates

ResponseLazadaFinancialBreakdownWithMetadata — the line-by-line breakdown (original price, special-price discount, voucher, commission, payment fee, COGS, VAT, return cost, LazCoins, free-shipping commission), metadata (margin, revenue, COGS status), and per-SKU detail when product-level.

POST/api/lazada/financial-breakdown/partner/new-product

Previews the breakdown for a product before listing — supply price, category, and optional COGS without an existing record. Useful during the product-creation wizard.

Request body

LazadaGetNewProductFinancialBreakdownDto

FieldTypeRequiredDescription
regionstringyesRegion code
listingPricenumberyesListing price
categoryIdintegeryesLazada category ID
sellerTypestringnoSeller type (default REGULAR)
hasVatbooleannoInclude VAT (default true)
manufacturingCogsnumbernoUnit manufacturing cost
effectiveDatestring (date)noEffective date for rates

ResponseLazadaFinancialBreakdownWithMetadata — the full breakdown at the proposed price (commission resolved from category, payment fee, VAT, profit margin).

POST/api/lazada/financial-breakdown/partner/required-price

Solves for the listing price needed to achieve a target margin given COGS and any planned discounts, after all fees and VAT.

Request body

LazadaComputeRequiredPriceDto

FieldTypeRequiredDescription
regionstringyesRegion code
categoryIdintegeryesLazada category ID
cogsnumberyesUnit manufacturing cost
targetMarginnumberyesTarget margin (0–1)
targetDiscountnumbernoPlanned special-price discount (absolute)
targetDiscountPercentnumbernoPlanned discount (0–1)
sellerTypestringnoSeller type (default REGULAR)
hasVatbooleannoInclude VAT (default true)
effectiveDatestring (date)noEffective date for rates

ResponseLazadaRequiredPriceResult — the requiredListingPrice and a full breakdown at that price.

POST/api/lazada/financial-breakdown/partner/simulate

Applies overrides (price, discount, COGS, commission rate, return cost, free-shipping enrollment, LazCoins settings) to the baseline breakdown and recomputes margin and profit. Backs the what-if simulator.

Request body

LazadaProfitImpactSimulationDtosellerId, region, itemId required; the rest are optional overrides (e.g. skuId, originalPrice, specialPriceDiscount, sellerVoucher, manufacturingCogs, commissionRate, returnCostPerSale, isInFreeShipping, effectiveDate).

ResponseLazadaFinancialBreakdownWithMetadata — the recomputed breakdown at the simulated parameters.

POST/api/lazada/financial-breakdown/partner/item/{sellerId}/{region}/{itemId}

Aggregates the breakdown across all SKUs for a product, returning volume-weighted metrics.

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code
itemIdintegeryesProduct ID

Request body

LazadaItemFinancialBreakdownFetchRequest (optional)

FieldTypeRequiredDescription
sellerTypestringnoSeller type (default REGULAR)
hasVatbooleannoInclude VAT (default true)
effectiveDatestring (date)noEffective date for rates

ResponseLazadaFinancialBreakdownWithMetadata — the product-level breakdown with volume-weighted fees, margin, and per-SKU detail.

POST/api/lazada/financial-breakdown/partner/products/{sellerId}/{region}

Per-product breakdowns for the whole shop, cursor-paginated; each shows volume-weighted metrics across its SKUs.

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code

Request body

LazadaProductLevelFinancialBreakdownFetchRequest (optional)

FieldTypeRequiredDescription
sellerTypestringnoSeller type (default REGULAR)
hasVatbooleannoInclude VAT (default true)
cursorRtProductIdintegernoPagination cursor
pageSizeintegernoResults per page (default 50)
effectiveDatestring (date)noEffective date for rates

ResponseCursorPaginatedResult<RtLazadaProductCursor, LazadaProductFinancialBreakdownEntry> — product entries (id, name, aggregated breakdown) plus the pagination cursor.

POST/api/lazada/financial-breakdown/partner/sku-breakdowns/all/{sellerId}/{region}

Returns per-SKU breakdowns for every SKU in the shop — a flat list keyed by (itemId, skuId). Intended for offline bulk analysis (not paginated).

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code

Request body

LazadaAllSkuBreakdownsFetchRequest (optional) — sellerType, hasVat, effectiveDate.

Response — Array of LazadaSkuBreakdownFlatEntry — every shop SKU with its breakdown, original price, and metadata.

POST/api/lazada/financial-breakdown/partner/profit-adjusted-roas/{sellerId}/{region}/{itemId}

Returns profit-adjusted ROAS with raw ad attribution. Not yet active — pending the Lazada hidden-cost pipeline.

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code
itemIdintegeryesProduct ID

Request body

LazadaProductProfitAdjustedRoasFetchRequest (optional) — sellerType, hasVat, lookbackDays (default 180), effectiveDate.

ResponseLazadaProductProfitAdjustedRoasSummary — RAW frame (ad attribution, profit per ad order, profit-adjusted ROAS, true GMV) and per-SKU details; cleaned/deflated frames null until the pipeline lands.

POST/api/lazada/financial-breakdown/partner/profit-adjusted-roas-dedup/{sellerId}/{region}/{itemId}

Cancellation-deduped profit-adjusted ROAS (raw/cleaned/deflated frames). Not yet active — pending the Lazada hidden-cost pipeline.

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code
itemIdintegeryesProduct ID

Request body

LazadaProductProfitAdjustedRoasFetchRequest (optional) — same fields as above.

ResponseLazadaProductProfitAdjustedRoasSummary — RAW, CLEANED, and DEFLATED frames once available (invariant RAW ≥ CLEANED ≥ DEFLATED).

POST/api/lazada/financial-breakdown/partner/corrected-roas/{sellerId}/{region}

Per-item corrected ROAS with ad-cancellation dedup, excluding COGS. Not yet active — pending the Lazada cleaned-ads summary pipeline.

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code

Request body

LazadaCorrectedRoasFetchRequest

FieldTypeRequiredDescription
itemIdsarrayyesItem IDs
lookbackDaysintegernoLookback window (default 30)

Response — Array of LazadaProductAdsCorrectedSummary — per-item ad metrics with dedup applied (empty pending pipeline).

POST/api/lazada/financial-breakdown/partner/products/{sellerId}/{region}/sorted-by-profit

All shop products sorted by true profit (descending), offset-paginated — for spotting top earners and loss-makers.

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code

Request body

LazadaSortedProductBreakdownFetchRequest (optional)

FieldTypeRequiredDescription
sellerTypestringnoSeller type (default REGULAR)
hasVatbooleannoInclude VAT (default true)
pageintegerno0-based page (default 0)
pageSizeintegernoResults per page (default 50)
effectiveDatestring (date)noEffective date for rates

ResponseOffsetPaginatedResult<LazadaProductProfitSortedEntry> — products ranked by profit (id, name, true profit, breakdown) with page metadata.

POST/api/lazada/financial-breakdown/partner/products/{sellerId}/{region}/sorted-by-profit-adjusted-roas

Products ranked by profit-adjusted ROAS (descending). Not yet active — pending the Lazada ROAS pipeline.

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code

Request body

LazadaSortedProductBreakdownFetchRequest (optional) — same fields as sorted-by-profit.

ResponseOffsetPaginatedResult<LazadaProductProfitAdjustedRoasSummary> — products ranked by profit-adjusted ROAS (currently not populated).

POST/api/lazada/financial-breakdown/partner/preview-set-margin

Computes the seller-funded discount/voucher needed to hit a target margin for specified SKUs. A preview only.

Request body

LazadaSetMarginDto

FieldTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code
skusarrayyesSKUs (each: itemId, optional skuId, optional cogs)
targetMarginPercentnumberyesTarget margin (0–1)
hasVatbooleannoInclude VAT (default true)
effectiveDatestring (date)noEffective date for rates

ResponseLazadaSetMarginResultadjustedItems (required discount + simulated breakdown) and unadjustableItems (with typed reasons like unreachable_margin, sku_not_found).

POST/api/lazada/financial-breakdown/partner/preview-set-buyer-price

Computes the seller-funded discount so the buyer pays exactly a target price — the price-anchored inverse of preview-set-margin.

Request body

LazadaSetBuyerPriceDto

FieldTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code
skusarrayyesSKUs (each: itemId, skuId, targetBuyerPrice, optional cogs)
hasVatbooleannoInclude VAT (default true)
effectiveDatestring (date)noEffective date for rates

ResponseLazadaSetMarginResult — adjustable SKUs (discount + simulated breakdown) and unadjustable SKUs with reasons. COGS is optional and affects displayed profit only.

POST/api/lazada/financial-breakdown/partner/shop-overview/{sellerId}/{region}

A shop-wide forward-profit overview: total profit, average margin, cost breakdown, top/worst products, top products by margin, and category breakdown.

Path parameters

NameTypeRequiredDescription
sellerIdintegeryesLazada seller ID
regionstringyesRegion code

Request body

LazadaShopFinancialOverviewFetchRequest (optional)

FieldTypeRequiredDescription
fromstring (date)noWindow start date
tostring (date)noWindow end date
lookbackDaysintegernoDays back from today (default 30)
topNintegernoTop/worst products to return (default 5)
compareToPreviousbooleannoAttach prior-window KPI deltas (default true)
includeVatbooleannoSurface forward VAT position (default false)

ResponseLazadaShopFinancialOverview — total profit, revenue, COGS coverage, cost-breakdown waterfall, top/worst products, category breakdown, margin distribution, prior-period comparison, and optional VAT position.

TikTok — financial breakdown

TikTok shopId is sent as an integer in these request bodies. (The shop list endpoint returns it as an opaque string — see List your TikTok shops.)
POST/api/tiktok/finance/breakdown/product

Computes the breakdown for one TikTok product or SKU. With skuId null, returns the volume-weighted aggregate across all SKUs; with skuId set, the single-variant breakdown.

Request body

TikTokGetUnitFinancialBreakdownDto

FieldTypeRequiredDescription
shopIdintegeryesTikTok shop ID
productIdstringyesProduct ID
skuIdstringnoSKU ID for unit-level; null for product-level
hasVatbooleannoInclude VAT (default false)
adsCostPerSalenumbernoPer-unit ads cost (caller-supplied)
sellerVouchernumbernoPer-unit seller voucher
lookbackDaysintegernoReturn-rate lookback (default 30)
effectiveDatestring (date)noEffective date for rates

ResponseTikTokFinancialBreakdownWithMetadata — original price, seller discount, commission, platform fee (CGF), COGS, VAT, return cost, net margin, metadata, and per-SKU detail at product level.

POST/api/tiktok/finance/breakdown/product-level

Returns the volume-weighted aggregated breakdown for a product (always cross-SKU). Mirror of the Shopee/Lazada product-level surface.

Request body

TikTokGetUnitFinancialBreakdownDtoshopId, productId required; skuId is ignored (always cross-SKU). Same optional fields as the product endpoint.

ResponseTikTokFinancialBreakdownWithMetadata — aggregated fees, margin, and per-SKU detail breakdown.

POST/api/tiktok/finance/breakdown/skus

Returns per-SKU breakdowns for a hand-picked set of SKU IDs — for bulk-pricing tools.

Request body

TikTokGetSkuBreakdownsBySkuIdsDto

FieldTypeRequiredDescription
shopIdintegeryesTikTok shop ID
skuIdsarrayyesSKU IDs to fetch
hasVatbooleannoInclude VAT (default false)
effectiveDatestring (date)noEffective date for rates

Response — Array of TikTokSkuBreakdownFlatEntry — product id, SKU id, original price, and a full breakdown (commission, CGF fee, COGS, VAT, net margin). …and more — see the full schema in the OpenAPI spec.

POST/api/tiktok/finance/breakdown/new-product

Previews the breakdown for a product before listing — supply price, category path, and optional COGS without an existing record.

Request body

TikTokGetNewProductFinancialBreakdownDto

FieldTypeRequiredDescription
shopIdintegeryesTikTok shop ID
listingPricenumberyesListing price
categoryL1stringyesL1 category name
categoryL2stringnoL2 category name
categoryL3stringnoL3 category name
isPreOrderbooleannoPre-order flag (default false)
isOwnFleetOnlybooleannoOwn-fleet-only flag (default false)
hasVatbooleannoInclude VAT (default false)
manufacturingCogsnumbernoUnit manufacturing cost
adsCostPerSalenumbernoPer-unit ads cost
effectiveDatestring (date)noEffective date for rates

ResponseTikTokFinancialBreakdownWithMetadata — the full breakdown at the proposed price (commission resolved from category, CGF fee, VAT, profit margin).

POST/api/tiktok/finance/breakdown/simulate

Applies overrides (price, discount, COGS, flags, ads cost, return cost) to the baseline breakdown and recomputes margin and profit.

Request body

TikTokProfitImpactSimulationDtoshopId, productId required; the rest are optional overrides (skuId, originalPrice, sellerDiscount, sellerVoucher, platformDiscount, manufacturingCogs, adsCostPerSale, returnCostPerSale, flags, effectiveDate).

ResponseTikTokFinancialBreakdownWithMetadata — the recomputed breakdown at the simulated parameters.

POST/api/tiktok/finance/breakdown/required-price

Solves for the listing price needed to achieve a target margin given COGS, category, and any planned discounts.

Request body

TikTokComputeRequiredPriceDto

FieldTypeRequiredDescription
shopIdintegeryesTikTok shop ID
categoryL1stringyesL1 category name
categoryL2stringnoL2 category name
categoryL3stringnoL3 category name
cogsnumberyesUnit manufacturing cost
targetMarginnumberyesTarget margin (0–1)
targetDiscountnumbernoPlanned discount (absolute)
targetDiscountPercentnumbernoPlanned discount (0–1)
hasVatbooleannoInclude VAT (default false)
adsCostPerSalenumbernoPer-unit ads cost
returnRatenumbernoReturn rate (e.g. 0.05 = 5%)
effectiveDatestring (date)noEffective date for rates

ResponseTikTokRequiredPriceResult — the requiredListingPrice and a full breakdown at that price.

POST/api/tiktok/finance/breakdown/products

Returns breakdowns for a list of products; each shows volume-weighted metrics across its SKUs. Per-product failures are isolated (one bad productId doesn't abort the rest).

Request body

TikTokGetBatchProductLevelBreakdownDto

FieldTypeRequiredDescription
shopIdintegeryesTikTok shop ID
productIdsarrayyesProduct IDs to fetch
hasVatbooleannoInclude VAT (default false)
adsCostPerSalenumbernoScalar ads-cost fallback
adsCostByProductIdobjectnoPer-product ads-cost override map
lookbackDaysintegernoReturn-rate lookback (default 30)
effectiveDatestring (date)noEffective date for rates

Response — Array of TikTokProductFinancialBreakdownEntry (omitting failed lookups) — product id, title, aggregated breakdown.

POST/api/tiktok/finance/breakdown/preview-set-margin

Computes the seller-funded discount needed to hit a target margin for specified SKUs. A preview only. Note: computedSellerVoucher is always 0 (TikTok coupons aren't API-creatable).

Request body

TikTokSetMarginDto

FieldTypeRequiredDescription
shopIdintegeryesTikTok shop ID
skusarrayyesSKUs (each: productId, skuId, cogs)
targetMarginPercentnumberyesTarget margin (0–1)
hasVatbooleannoInclude VAT (default false)
adsCostPerSalenumbernoScalar ads-cost fallback
adsCostByProductIdobjectnoPer-product ads-cost override map
effectiveDatestring (date)noEffective date for rates

ResponseTikTokSetMarginResultadjustedItems (required discount + simulated breakdown) and unadjustableItems (with typed reasons).

POST/api/tiktok/finance/breakdown/preview-set-buyer-price

Computes the seller-funded discount so the buyer pays exactly a target price — the price-anchored inverse of preview-set-margin.

Request body

TikTokSetBuyerPriceDto

FieldTypeRequiredDescription
shopIdintegeryesTikTok shop ID
skusarrayyesSKUs (each: productId, skuId, targetBuyerPrice, optional cogs)
hasVatbooleannoInclude VAT (default false)
adsCostPerSalenumbernoScalar ads-cost fallback
effectiveDatestring (date)noEffective date for rates

ResponseTikTokSetMarginResult — adjustable SKUs (discount + simulated breakdown) and unadjustable SKUs with reasons.

POST/api/tiktok/finance/breakdown/shop-overview/{shopId}/{region}

A shop-wide profit overview computed from settled-statement data: total profit, average margin, cost breakdown, top/worst products, top products by margin, and category breakdown.

Path parameters

NameTypeRequiredDescription
shopIdintegeryesTikTok shop ID
regionstringyesRegion code

Request body

TikTokShopFinancialOverviewFetchRequest (optional)

FieldTypeRequiredDescription
fromstring (date)noWindow start date
tostring (date)noWindow end date
lookbackDaysintegernoDays back from today (default 30)
topNintegernoTop/worst products to return (default 5)
compareToPreviousbooleannoAttach prior-window KPI deltas (default true)
includeVatbooleannoSurface forward VAT position (default false)

ResponseTikTokShopFinancialOverview — total profit, revenue, COGS coverage, cost-breakdown waterfall, top/worst products, category breakdown, margin distribution, prior-period comparison, and optional VAT position.