GET
/
catalog
/
offers
/
merchants
/
{merchant_id}
/
count
curl --request GET \
  --url https://sandbox-api.violet.io/v1/catalog/offers/merchants/{merchant_id}/count
{
  "count": 123,
  "publishedCount": 123,
  "notPublishedCount": 123
}

This will count all published offers for a merchant (i.e. the offers a Channel has access to)

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Path Parameters

merchant_id
integer
required

Query Parameters

date_last_modified:min
string

Count only the offers that have been modified after the given date time, using the standard Violet datetime format (most objects have a date on them using this format)

Response

default - application/json
count
integer
publishedCount
integer
notPublishedCount
integer