Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

Shopify App Bridge session token of the embedded Depict: Search & Merchandising app. The shop in the token determines the merchant; merchant_id parameters must belong to that shop.

Query Parameters

merchant_id
string
required

Lite merchant id, e.g. shopify-<shop id>.

from_date
string
required

First day, inclusive.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-09-01"

to_date
string
required

Last day, inclusive.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-09-01"

market_id
string

Restricts traffic to one Shopify market (the id the portal's market picker sends); the response then omits total_collections.

Response

Both windows.

previous is the same-length window just before current; a null row is a window with no collection traffic.

current
object | null
required
previous
object | null
required
total_collections
integer

Every non-deleted collection; absent on a market-scoped window or when the count failed.