Invoices

Preview Cost Backfill

Counts the historical invoice items in a date window that would receive a cost snapshot.

get/v1/shops/{shopId}/invoices/backfill-cost/preview

Request

Request body

startstring required

Start of the completion date window. Must be a valid date.

endstring required

End of the completion date window. Must be a valid date. Must be a date after or equal to <code>start</code>.

Example request

{
  "start": "2026-07-15",
  "end": "2026-08-15"
}

Response

countinteger
maxItemsinteger
maxRangeDaysinteger

Example response

{
  "count": 0,
  "maxItems": 25000,
  "maxRangeDays": 90
}

Changes

No recorded changes to this operation across all 9 revisions of this API.