Skip to content
SynupAPI
Get an API key
GETapi.synup.com/api/v4/locations/add-on-count

Location add-on count

Returns how many locations in the filtered set have the specified add-on enabled vs disabled, along with counts for other add-ons in the same product umbrella. Scope the set with filterInput/selectionType/locationIds, identical to Filter locations.

Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Query

NameTypeRequiredDescription
addOnIdstringrequiredID of the add-on to count enablement for.
filterInputstringoptionalJSON-encoded filter object. Defaults to an empty filter (all locations).
selectionTypestringoptionalWhether to include all matching locations or an explicit selection.
locationIdsarrayoptionalLocation IDs to include when selectionType is SELECTED_ITEMS.

Headers

NameTypeRequiredDescription
Synup-VersionstringrequiredAPI version date (YYYY-MM-DD).

Request

Request
curl -X GET 'https://api.synup.com/api/v4/locations/add-on-count?addOnId=&filterInput=&selectionType=&locationIds=' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "locationAddOnCount": {
      "enabled": 0,
      "disabled": 0,
      "othersEnabled": [
        {
          "id": "string",
          "name": "string",
          "count": 0
        }
      ]
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.locationAddOnCountobjectoptional
data.locationAddOnCount.enabledintegeroptionalLocations with the add-on enabled.
data.locationAddOnCount.disabledintegeroptionalLocations with the add-on disabled.
data.locationAddOnCount.othersEnabledarray of objectoptionalCounts for other add-ons in the same product umbrella.
data.locationAddOnCount.othersEnabled[].idstringoptional
data.locationAddOnCount.othersEnabled[].namestringoptional
data.locationAddOnCount.othersEnabled[].countintegeroptional