Get Count of Merchant Offers

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

Get Count of Merchant Offers

get
Path parameters
merchant_idinteger · int32Required
Query parameters
date_last_modified:minstringOptional

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:maxstringOptional

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
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Responses
default
default response
application/json
get
GET /v1/catalog/offers/merchants/{merchant_id}/count HTTP/1.1
Host: sandbox-api.violet.io
X-Violet-Token: text
X-Violet-App-Secret: text
X-Violet-App-Id: 1
Accept: */*
default

default response

{
  "count": 1,
  "publishedCount": 1,
  "notPublishedCount": 1
}

Last updated

Was this helpful?