---
title: "Preview Cost Backfill"
method: GET
path: "/v1/shops/{shopId}/invoices/backfill-cost/preview"
tags: ["Invoices"]
---

# Preview Cost Backfill

`GET /v1/shops/{shopId}/invoices/backfill-cost/preview`

## Request

- Base URL: `https://api.sellauth.com`
- URL: `https://api.sellauth.com/v1/shops/{shopId}/invoices/backfill-cost/preview`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sellauth/apis/sellauth-api/docs/v1/shops/:shopId/invoices/backfill-cost/preview/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Request body

- object
  - `start` string, required: Start of the completion date window. Must be a valid date.
  - `end` string, required: End of the completion date window. Must be a valid date. Must be a date after or equal to <code>start</code>.

## Response `200`

- object
  - `count` integer
  - `maxItems` integer
  - `maxRangeDays` integer

---

[API](https://skmtc.dev/sellauth/apis/sellauth-api.md) - [All operations](https://skmtc.dev/sellauth/apis/sellauth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sellauth/apis/sellauth-api/revisions/156a9aef5e98?raw)
