Invoices

Backfill Costs

Queues a job that stamps the current variant cost onto historical invoice items in a date window that have no cost snapshot yet. Limited to one run per hour per shop.

post/v1/shops/{shopId}/invoices/backfill-cost

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"
}

Changes

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