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, ISO 8601. Example: 2017-06-15T01:01:01+0000

Example:

"2017-06-15T01:01:01+0000"

date_last_modified:max
string

Count only the published offers that have been modified before the given date time, using the standard Violet datetime format, ISO 8601. Example: 2017-06-25T01:01:01+0000

Example:

"2017-06-25T01:01:01+0000"

Response

default - application/json
default response
count
integer
publishedCount
integer
notPublishedCount
integer