# Hermes Data — Dealer Groups API (v1_1) This is the official Hermes Data reference for implementing integrations and answering questions about the documented APIs. Use the product and version named in each section; do not mix their routes, identifiers, billing rules, or response shapes. Examples use placeholder credentials and sample data. Follow the documented contracts, and state when a behavior is not specified instead of inventing endpoints or fields. Fetch the canonical source for updates. Live /meta responses are authoritative for current catalog values and limits where documented. Canonical documentation: https://hermesdata.io/documentation/dealer-groups API base URL: https://luxe.hermesdata.io/v1_1/dealer-groups ## Authentication Use HTTPS and the Authorization header: `Bearer hd_live_your_key_here`. Generate a key at https://hermesdata.io/portal/account/api-key. Keep real credentials out of prompts and shared examples. Product access requirements still apply. ## Overview and billing The companies that own multiple dealerships. Search them by name, store count and the states they operate in for free, then unlock the full list of stores they own and the details behind them. Purchasing new records costs 5 credit(s) per group. Search, quotes and re-reading owned records are free. Portal and API share wallet and ownership. The search and purchase endpoints documented here return JSON records. Portal orders provide CSV downloads. ## Quickstart Groups running three or more rooftops in Texas. Name, rooftop count, combined inventory and franchise spread come back free - the roster and the firmographics are what a purchase unlocks. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/search?operating_state=TX&min_member_count=3&page_size=1' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` ```json { "data": [ { "selection_id": "3f9c02ab5d7148e6b0a91c4e7d2f8503c6b1a94e0f7d2c85a3b6e1904d7c2f58", "dealer_group_name": "EXAMPLE AUTO GROUP", "member_count": "12", "dealer_group_franchises": "Buick|Chevrolet|Chrysler|Dodge|Ford|GMC|Genesis|Hyundai|Jeep|Kia|Mitsubishi|Ram|Used|Volkswagen|Volvo", "dealer_group_inventory_count": "6240", "operating_states": "TX", "operating_countries": "US", "purchased": false } ], "meta": { "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "segment": "new", "page": 1, "page_size": 1, "total": 130, "next_cursor": "eyJ2IjoiYmJiX2RlYWxlcl9ncm91cHNfMjAyNjA4MTZfMDYwMDAwXzNiMmQ…" } } // The free teaser is generous on purpose: real group name, rooftop count, // combined inventory, franchise spread, and the states/countries it operates in // - all rolled up from its member rooftops. What you don't get until you buy is // the roster, the firmographic roll-ups, and the group's real id. ``` ## Conventions and pagination Record values, including numeric columns, are strings; multi-value columns are pipe-delimited. Read purchased to distinguish owned records from previews. Free and paid field lists below describe the projections. List envelopes contain data and meta; point lookups are bare records. Other endpoints have their own shapes shown below. Rows sort by selection_id ascending; there is no sort parameter. Pages are 1-based, page_size defaults to 50 and clamps at 500. meta.total counts the selected segment; /meta records counts the whole catalog. New and owned searches are separate segments. Follow meta.next_cursor until null for deep paging. Begin without a cursor, keep the segment and filters fixed, and treat tokens as opaque. page=1 with a cursor is accepted; page>=2 is invalid_cursor. Cursors pin a snapshot; on snapshot_expired restart the walk. Purchases move rows between segments, so re-walk after buying. For record responses, X-Data-Version matches meta.data_version. The catalog is rebuilt nightly. ## Validation and purchase caveats Record-search endpoints ignore unknown query parameters and unparseable numeric filters. Boolean values other than true or 1 mean false; omit a boolean to mean either. Non-numeric page/page_size returns invalid_query; page below 1 becomes 1. Unknown JSON body fields return invalid_body. A purchase retry can replay the original order without another debit while the selection still contains unowned records; once everything is owned it returns no_new_records. Quote credit_balance can lag a purchase by about 60 seconds; purchase credits_used confirms the charge. ## Billing classes ```json { "free": { "label": "free", "blurb": "Unlimited and never billed - searching, faceting, ids, point lookups, the owned batch and quotes." }, "credits": { "label": "credits", "blurb": "The only charged call. Debits credits per NET-NEW record; records you already own are excluded before the debit." } } ``` ## Discovery Ask the product what it holds, what it costs, and what you can filter on. Read this instead of hard-coding anything below. ### GET /v1_1/dealer-groups/meta Self-describing document: data version, record count, price per record, both segment paths, the filter vocabulary, paging rules, limits, and the free-vs-paid field lists. Billing class: free ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/meta' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "product": "dealer_groups", "by_dealer": { "lookup": "/v1_1/dealer-groups/by-dealer/{dealer_id}", "quote": "/v1_1/dealer-groups/purchase/quote", "purchase": "/v1_1/dealer-groups/purchase", "unowned": "A rooftop lookup returns has_group and, when a group exists, credits_to_unlock. It does not return the group name, selection_id, dealer_group_id, or any field the free group search publishes. Send dealer_id alone on quote and purchase to buy that group." }, "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "records": 1430, "credits_per_item": 5, "pricing": "Searching and previewing redacted rows is free. Unlocking a new record costs credits_per_item, charged once - re-fetching a record you already own is always free.", "selection_id": "Groups are addressed by the opaque `selection_id` on every redacted row. The real dealer_group_id is a paid column and is returned only on owned records; lookups accept either.", "segments": { "new": { "search": "/v1_1/dealer-groups/search", "facets": "/v1_1/dealer-groups/facets", "ids": "/v1_1/dealer-groups/ids", "rows": "redacted" }, "owned": { "search": "/v1_1/dealer-groups/owned/search", "facets": "/v1_1/dealer-groups/owned/facets", "ids": "/v1_1/dealer-groups/owned/ids", "records": "/v1_1/dealer-groups/owned/records", "rows": "full" } }, "segments_are": "disjoint - a record you own never appears in the new segment, and vice versa", "filters": ["q", "dealer_group_name", "dealer_group_id", "dealer_group_franchise", "top_provider", "operating_state", "operating_country", "min_member_count", "max_member_count", "min_inventory", "max_inventory"], "paging": { "modes": ["page", "cursor"], "cursor_param": "cursor", "cursor_field": "meta.next_cursor", "cursor_bound_to_snapshot": true, "sort": "selection_id ascending (the only order; deterministic across pages)" }, "limits": { "max_page_size": 500, "max_records_ids": 500, "ids_cap": 100000 }, "fields": { "free": ["selection_id", "dealer_group_name", "member_count", "dealer_group_franchises", "dealer_group_inventory_count", "operating_states", "operating_countries", "purchased"], "paid": ["dealer_group_id", "total_employee_count", "decision_maker_count", "group_hq_employee_count", "group_hq_decision_maker_count", "avg_years_in_business", "distinct_providers", "top_provider", "provider_mix", "member_dealers", "member_website_ids", "member_dealer_ids", "member_entity_dealer_ids"] }, "note": "Owning a group does not unlock its member rooftops. Those are Dealers records, bought separately at the Dealers price." } ``` meta.by_dealer publishes the rooftop lookup, quote and purchase paths and describes the blind unowned response. A single object. data_version changes when the nightly export is rebuilt - it is also the value your cursors are pinned to. ## Browse what you don't own The new segment: every group you have not bought, with the paid columns absent. Free, unlimited, and the same query vocabulary as the owned segment. ### GET /v1_1/dealer-groups/search Paged, filtered groups you don't own yet. Redacted rows. Billing class: free Parameters: - `q` (query; string; optional): Free text over group name and top provider. - `dealer_group_name` (query; string; optional): Case-insensitive substring. - `dealer_group_id` (query; string; optional): Exact match on the real group id. Works in both segments - but the id itself is a paid column, so you only have one for a group you own (or from your own records). To address a group you have not bought, use its selection_id. - `dealer_group_franchise` (query; string; optional): Matches inside the pipe-delimited franchise list. Comma-separated needles OR together. - `top_provider` (query; string; optional): The group's most-used website platform, e.g. DealerOn. - `operating_state` (query; string; optional): State/province the group has rooftops in, rolled up from its members. Comma-separated OR. - `operating_country` (query; string; optional): US or CA, rolled up from members. - `min_member_count` (query; integer; optional): Inclusive lower bound on rooftops in the group. - `max_member_count` (query; integer; optional): Inclusive upper bound. - `min_inventory` (query; integer; optional): Inclusive lower bound on combined inventory across the group. - `max_inventory` (query; integer; optional): Inclusive upper bound. - `page` (query; integer; optional): 1-based page number. Default 1. Mutually exclusive with cursor from page 2 up; page=1 alongside a cursor is accepted. A page below 1 is treated as 1. - `page_size` (query; integer; optional): Rows per page, 1–500. Default 50. Clamped silently - read meta.page_size back. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. On the first call omit it, or send it empty - an empty cursor= means "no cursor". ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/search?operating_state=TX&min_member_count=3&page_size=2' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ { "selection_id": "3f9c02ab5d7148e6b0a91c4e7d2f8503c6b1a94e0f7d2c85a3b6e1904d7c2f58", "dealer_group_name": "EXAMPLE AUTO GROUP", "member_count": "12", "dealer_group_franchises": "Buick|Chevrolet|Chrysler|Dodge|Ford|GMC|Genesis|Hyundai|Jeep|Kia|Mitsubishi|Ram|Used|Volkswagen|Volvo", "dealer_group_inventory_count": "6240", "operating_states": "TX", "operating_countries": "US", "purchased": false } ], "meta": { "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "segment": "new", "page": 1, "page_size": 1, "total": 130, "next_cursor": "eyJ2IjoiYmJiX2RlYWxlcl9ncm91cHNfMjAyNjA4MTZfMDYwMDAwXzNiMmQ…" } } // The free teaser is generous on purpose: real group name, rooftop count, // combined inventory, franchise spread, and the states/countries it operates in // - all rolled up from its member rooftops. What you don't get until you buy is // the roster, the firmographic roll-ups, and the group's real id. ``` { data, meta }. All filters AND together; a filter value that matches nothing is an empty 200, never an error. ### GET /v1_1/dealer-groups/facets Counts by top provider, franchise, and operating state over the same match set your search would return. Billing class: free Parameters: - `q` (query; string; optional): Free text over group name and top provider. - `dealer_group_name` (query; string; optional): Case-insensitive substring. - `dealer_group_id` (query; string; optional): Exact match on the real group id. Works in both segments - but the id itself is a paid column, so you only have one for a group you own (or from your own records). To address a group you have not bought, use its selection_id. - `dealer_group_franchise` (query; string; optional): Matches inside the pipe-delimited franchise list. Comma-separated needles OR together. - `top_provider` (query; string; optional): The group's most-used website platform, e.g. DealerOn. - `operating_state` (query; string; optional): State/province the group has rooftops in, rolled up from its members. Comma-separated OR. - `operating_country` (query; string; optional): US or CA, rolled up from members. - `min_member_count` (query; integer; optional): Inclusive lower bound on rooftops in the group. - `max_member_count` (query; integer; optional): Inclusive upper bound. - `min_inventory` (query; integer; optional): Inclusive lower bound on combined inventory across the group. - `max_inventory` (query; integer; optional): Inclusive upper bound. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/facets?operating_state=TX&min_member_count=3' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "segment": "new", "by_top_provider": [ { "value": "Cox Automotive", "count": 41 }, { "value": "Cars Commerce", "count": 32 }, { "value": "DealerOn", "count": 28 } ], "by_franchise": [ { "value": "Used", "count": 105 }, { "value": "Chevrolet", "count": 73 } ], "by_operating_state": [ { "value": "TX", "count": 130 }, { "value": "CA", "count": 19 } ] } ``` Buckets are ordered by count, descending. Use them to build filter menus without guessing what exists. ### GET /v1_1/dealer-groups/ids Just the ids for a filter - the cheap input to a quote, a purchase, or a batch re-fetch. Billing class: free Parameters: - `q` (query; string; optional): Free text over group name and top provider. - `dealer_group_name` (query; string; optional): Case-insensitive substring. - `dealer_group_id` (query; string; optional): Exact match on the real group id. Works in both segments - but the id itself is a paid column, so you only have one for a group you own (or from your own records). To address a group you have not bought, use its selection_id. - `dealer_group_franchise` (query; string; optional): Matches inside the pipe-delimited franchise list. Comma-separated needles OR together. - `top_provider` (query; string; optional): The group's most-used website platform, e.g. DealerOn. - `operating_state` (query; string; optional): State/province the group has rooftops in, rolled up from its members. Comma-separated OR. - `operating_country` (query; string; optional): US or CA, rolled up from members. - `min_member_count` (query; integer; optional): Inclusive lower bound on rooftops in the group. - `max_member_count` (query; integer; optional): Inclusive upper bound. - `min_inventory` (query; integer; optional): Inclusive lower bound on combined inventory across the group. - `max_inventory` (query; integer; optional): Inclusive upper bound. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/ids?operating_state=TX&min_member_count=3' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "segment": "new", "ids": ["3f9c02ab5d7148e6b0a91c4e7d2f8503c6b1a94e0f7d2c85a3b6e1904d7c2f58", "7b41e5d90c2a63f81d47a0be95c3f28d64e017ba3c95d802f6a1e473b58c920d"], "ids_are": "opaque selection tokens (selection_id)", "total": 130, "capped": false } ``` Opaque selection tokens, not real group ids - and selection tokens are what purchase accepts. Capped at 100,000. ## Read what you own The owned segment: everything you have bought, in full, forever, for free. Same filters, same envelope, same paging as above. ### GET /v1_1/dealer-groups/owned/search Paged, filtered groups you own. Full rows. Billing class: free Parameters: - `q` (query; string; optional): Free text over group name and top provider. - `dealer_group_name` (query; string; optional): Case-insensitive substring. - `dealer_group_id` (query; string; optional): Exact match on the real group id. Works in both segments - but the id itself is a paid column, so you only have one for a group you own (or from your own records). To address a group you have not bought, use its selection_id. - `dealer_group_franchise` (query; string; optional): Matches inside the pipe-delimited franchise list. Comma-separated needles OR together. - `top_provider` (query; string; optional): The group's most-used website platform, e.g. DealerOn. - `operating_state` (query; string; optional): State/province the group has rooftops in, rolled up from its members. Comma-separated OR. - `operating_country` (query; string; optional): US or CA, rolled up from members. - `min_member_count` (query; integer; optional): Inclusive lower bound on rooftops in the group. - `max_member_count` (query; integer; optional): Inclusive upper bound. - `min_inventory` (query; integer; optional): Inclusive lower bound on combined inventory across the group. - `max_inventory` (query; integer; optional): Inclusive upper bound. - `page` (query; integer; optional): 1-based page number. Default 1. Mutually exclusive with cursor from page 2 up; page=1 alongside a cursor is accepted. A page below 1 is treated as 1. - `page_size` (query; integer; optional): Rows per page, 1–500. Default 50. Clamped silently - read meta.page_size back. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. On the first call omit it, or send it empty - an empty cursor= means "no cursor". ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/owned/search?page_size=50' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ /* full group rows, member roster included */ ], "meta": { "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "segment": "owned", "page": 1, "page_size": 50, "total": 1, "next_cursor": null } } ``` { data, meta } with segment: "owned". This is the paged form of the free re-read - there is no charge and no limit on how often you call it. ### GET /v1_1/dealer-groups/owned/facets The same facet buckets, computed over what you own. Billing class: free Parameters: - `q` (query; string; optional): Free text over group name and top provider. - `dealer_group_name` (query; string; optional): Case-insensitive substring. - `dealer_group_id` (query; string; optional): Exact match on the real group id. Works in both segments - but the id itself is a paid column, so you only have one for a group you own (or from your own records). To address a group you have not bought, use its selection_id. - `dealer_group_franchise` (query; string; optional): Matches inside the pipe-delimited franchise list. Comma-separated needles OR together. - `top_provider` (query; string; optional): The group's most-used website platform, e.g. DealerOn. - `operating_state` (query; string; optional): State/province the group has rooftops in, rolled up from its members. Comma-separated OR. - `operating_country` (query; string; optional): US or CA, rolled up from members. - `min_member_count` (query; integer; optional): Inclusive lower bound on rooftops in the group. - `max_member_count` (query; integer; optional): Inclusive upper bound. - `min_inventory` (query; integer; optional): Inclusive lower bound on combined inventory across the group. - `max_inventory` (query; integer; optional): Inclusive upper bound. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/owned/facets' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "segment": "owned", "by_top_provider": [ { "value": "DealerOn", "count": 1 } ], "by_franchise": [ { "value": "Buick", "count": 1 }, { "value": "Chevrolet", "count": 1 } ], "by_operating_state": [ { "value": "TX", "count": 1 } ] } ``` Own nothing yet and every bucket list comes back empty - a 200, not an error. ### GET /v1_1/dealer-groups/owned/ids Ids of what you own, for reconciling against your own store. Billing class: free Parameters: - `q` (query; string; optional): Free text over group name and top provider. - `dealer_group_name` (query; string; optional): Case-insensitive substring. - `dealer_group_id` (query; string; optional): Exact match on the real group id. Works in both segments - but the id itself is a paid column, so you only have one for a group you own (or from your own records). To address a group you have not bought, use its selection_id. - `dealer_group_franchise` (query; string; optional): Matches inside the pipe-delimited franchise list. Comma-separated needles OR together. - `top_provider` (query; string; optional): The group's most-used website platform, e.g. DealerOn. - `operating_state` (query; string; optional): State/province the group has rooftops in, rolled up from its members. Comma-separated OR. - `operating_country` (query; string; optional): US or CA, rolled up from members. - `min_member_count` (query; integer; optional): Inclusive lower bound on rooftops in the group. - `max_member_count` (query; integer; optional): Inclusive upper bound. - `min_inventory` (query; integer; optional): Inclusive lower bound on combined inventory across the group. - `max_inventory` (query; integer; optional): Inclusive upper bound. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/owned/ids' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "segment": "owned", "ids": ["3f9c02ab5d7148e6b0a91c4e7d2f8503c6b1a94e0f7d2c85a3b6e1904d7c2f58"], "ids_are": "opaque selection tokens (selection_id)", "total": 1, "capped": false } ``` Same shape as the new-segment ids route, with segment: "owned". ### POST /v1_1/dealer-groups/owned/records Free re-fetch by id - up to 500 per call. The endpoint to wire into a nightly refresh of records you already bought. Billing class: free Parameters: - `ids` (body; string[]; required): 1–500 selection_ids or real dealer_group_ids - both resolve. ```bash curl -X POST 'https://luxe.hermesdata.io/v1_1/dealer-groups/owned/records' \ -H 'Authorization: Bearer hd_live_your_key_here' \ -H 'Content-Type: application/json' \ --data '{"ids": ["3f9c02ab5d7148e6b0a91c4e7d2f8503c6b1a94e0f7d2c85a3b6e1904d7c2f58", "exampleautogroup.com"]}' ``` Response example: ```json { "data": [ /* one full group per id you own */ ], "meta": { "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "segment": "owned", "requested": 2, "returned": 1, "not_owned": ["7b41e5d90c2a63f81d47a0be95c3f28d64e017ba3c95d802f6a1e473b58c920d"] } } // Ids you don't own and ids that don't exist come back in the same not_owned // list - deliberately indistinguishable. Nothing is silently dropped. ``` 400 batch_empty on an empty list, 400 batch_too_large over 500, 400 invalid_body if the body carries a field this endpoint doesn't know. ## Buy Quote first, then purchase. A group costs 5 credits, once, and is yours permanently. ### POST /v1_1/dealer-groups/purchase/quote What would this selection cost? Free, and it never debits or reserves anything. Billing class: free Parameters: - `dealer_id` (body; string; optional): Optional rooftop selector, sent alone (no ids or filters). Combining a nonblank dealer_id with ids or filters returns 400 dealer_id_conflicts_with_selection. A blank dealer_id is ignored; the existing ids/filters behavior is unchanged. - `ids` (body; string[]; optional): Explicit selection. Wins over filters when both are sent. - `filters` (body; object; optional): Filter selection, evaluated against the NEW segment. Same vocabulary as search. - `item_count` (body; integer; optional): Ceiling on how many net-new records to price. Applies in both modes. ```bash curl -X POST 'https://luxe.hermesdata.io/v1_1/dealer-groups/purchase/quote' \ -H 'Authorization: Bearer hd_live_your_key_here' \ -H 'Content-Type: application/json' \ --data '{"filters": {"operating_state": "TX", "min_member_count": 3}, "item_count": 2}' ``` Response example: ```json { "product": "dealer_groups", "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "credits_per_item": 5, "net_new": 2, "credits_required": 10, "credit_balance": 4996, "balance_after": 4986 } // credits_required = net_new × 5. A group is one record; its member rooftops // are not included and are not charged for here. ``` Send ids, filters, or dealer_id alone; an empty selection is 400 missing_selection. With dealer_id: unknown rooftop → 404 dealer_not_found; no sellable group → has_group: false, credits_required: 0; unowned group → has_group: true, purchased: false, credits_required: 5; owned group → has_group: true, purchased: true, credits_required: 0. These fields accompany the normal quote, which does not name the group. An ids or filters quote is unchanged and includes neither has_group nor purchased. ### POST /v1_1/dealer-groups/purchase Buy groups. Debits credits for net-new records only and returns the full rows inline. No file is produced. Billing class: credits Parameters: - `dealer_id` (body; string; optional): Optional rooftop selector, sent alone (no ids or filters). Combining a nonblank dealer_id with ids or filters returns 400 dealer_id_conflicts_with_selection. A blank dealer_id is ignored; the existing ids/filters behavior is unchanged. - `idempotency_key` (body; string; required): Required, here or as an Idempotency-Key header. A retry with the same key never charges twice. - `ids` (body; string[]; optional): Explicit selection. Wins over filters when both are sent. - `filters` (body; object; optional): Filter selection out of the NEW segment. Same vocabulary as search. - `item_count` (body; integer; optional): Ceiling on records bought, in either mode. The selection is ordered by id then truncated, so a retry buys the same records. - `page` (body; integer; optional): Paging for the inline delivery only. Default 1. - `page_size` (body; integer; optional): Rows delivered inline, max 500. Default 50. The rest is free from owned/search. ```bash curl -X POST 'https://luxe.hermesdata.io/v1_1/dealer-groups/purchase' \ -H 'Authorization: Bearer hd_live_your_key_here' \ -H 'Content-Type: application/json' \ --data '{ "idempotency_key": "3f7c1a9e-2b64-4c17-9a0d-88c4e5b1f902", "ids": ["3f9c02ab5d7148e6b0a91c4e7d2f8503c6b1a94e0f7d2c85a3b6e1904d7c2f58"] }' ``` Response example: ```json { "order_id": "6089a387-2936-46b0-9578-84088f4418ec", "product": "dealer_groups", "data_version": "bbb_dealer_groups_20260816_060000_3b2d2393", "credits_used": 5, "charged_items": 1, "replay": false, "data": [ /* the full group rows, member roster included */ ], "meta": { "page": 1, "page_size": 50, "total_purchased": 1, "remaining_rows_at": "/v1_1/dealer-groups/owned/search" } } // charged_items counts RECORDS, credits_used counts CREDITS: one group is one // charged item and five credits. ``` With dealer_id as the only selector (plus the usual idempotency key): unknown rooftop → 404 dealer_not_found; no sellable group → 400 dealer_has_no_group, no charge; unowned group → one charge of 5 credits and data containing that one full group; owned group → credits_used: 0, order_id: null, and data still containing the full group. Buying through any member rooftop unlocks the same group; the next lookup through another member is free and returns the full record. Ownership does not unlock rooftops or contacts. 402 insufficient_credits if the wallet can't cover it, 402 spend_frozen on a billing hold, 400 missing_idempotency_key if the key is missing. Ownership is recorded before the response is built, so collect large purchases from owned/search rather than paging them inline. ## Point lookup One record by id, as a bare object - full if you own it, redacted if you don't. ### GET /v1_1/dealer-groups/by-dealer/{dealer_id} Find a group from one rooftop without learning which group it is. Also on /v1_2/dealer-groups/by-dealer/{dealer_id}. No equivalent on portal /v1/dealer-groups routes. Billing class: free Parameters: - `dealer_id` (path; string; required): The rooftop id from a contact, dealer, or listing. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/by-dealer/6a1c48d0e2f7b3915c0d4471' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "dealer_id": "6a1c48d0e2f7b3915c0d4471", "has_group": true, "purchased": false, "credits_to_unlock": 5 } ``` Unknown rooftop: 404 dealer_not_found. No sellable group: 200 { "dealer_id": "…", "has_group": false }. Unowned group: the four-key blind response shown here. Owned group: the normal full group record, identical to GET /dealer-groups/{group_id}. The unpaid body omits name, selection_id, dealer_group_id, member count, franchises, inventory, states and member_dealer_ids. The free group search already publishes identifying card fields; exposing them here would let clients reconstruct which rooftops share a group. Two unowned lookups cannot be compared to determine shared membership. Group search remains the normal named card, with no dealer_id filter. ### GET /v1_1/dealer-groups/{group_id} One group, by selection_id or - once you own it - by its real dealer_group_id. Billing class: free Parameters: - `group_id` (path; string; required): Either the opaque selection_id from a redacted row, or the real dealer_group_id once you own the group. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_1/dealer-groups/3f9c02ab5d7148e6b0a91c4e7d2f8503c6b1a94e0f7d2c85a3b6e1904d7c2f58' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "selection_id": "3f9c02ab5d7148e6b0a91c4e7d2f8503c6b1a94e0f7d2c85a3b6e1904d7c2f58", "dealer_group_name": "EXAMPLE AUTO GROUP", "member_count": "12", "dealer_group_franchises": "Buick|Chevrolet|Chrysler|Dodge|Ford|GMC|…", "dealer_group_inventory_count": "6240", "operating_states": "TX", "operating_countries": "US", "purchased": false } // Addressed by selection_id while it's redacted. Once you own the group this // same URL returns the full row, and /v1_1/dealer-groups/exampleautogroup.com // (the real id) resolves to it too. ``` A bare object, no envelope. Read purchased to know which projection you got. 404 dealer_group_not_found for an id we don't hold. ## From a contact's rooftop to its group and member rooftops The lookup and quote stay blind until purchase. Group ownership does not include its rooftops or contacts. ```python import os, requests, uuid # Set API_ORIGIN to your Hermes API base URL. ORIGIN = os.environ["API_ORIGIN"].rstrip("/") H = {"Authorization": "Bearer " + os.environ["HERMES_API_KEY"]} GROUPS = f"{ORIGIN}/v1_1/dealer-groups" DEALERS = f"{ORIGIN}/v1_1/dealers" # contact is a row from contacts search, owned search, or purchase delivery. dealer_id = contact["dealer_id"] lookup = requests.get(f"{GROUPS}/by-dealer/{dealer_id}", headers=H) lookup.raise_for_status() blind = lookup.json() # For an unowned group, only: # {"dealer_id": "6a1c48d0e2f7b3915c0d4471", "has_group": true, # "purchased": false, "credits_to_unlock": 5} # If already owned, lookup returns the full group record instead. if blind.get("has_group") is False: raise SystemExit("No sellable group; nothing to buy") quote = requests.post(f"{GROUPS}/purchase/quote", headers=H, json={"dealer_id": dealer_id}) quote.raise_for_status() print(quote.json()) # No group identity; 5 credits new, 0 if already owned. order = requests.post(f"{GROUPS}/purchase", headers=H, json={ "dealer_id": dealer_id, "idempotency_key": str(uuid.uuid4()), }) order.raise_for_status() group = order.json()["data"][0] print(group) # Now the normal full record, including dealer_group_id and roster. member_ids = group["member_dealer_ids"].split("|") # Pull the rooftops from Dealers: full if owned, redacted otherwise. # Unlocking unowned rooftop details is a separate Dealers purchase. for member_id in member_ids: rooftop = requests.get(f"{DEALERS}/{member_id}", headers=H) rooftop.raise_for_status() print(rooftop.json()) ``` ## Find the groups operating in your market and buy them Operating states and rooftop counts are readable without buying, so you can qualify a group first. ```python import requests, uuid BASE = "https://luxe.hermesdata.io/v1_1/dealer-groups" H = {"Authorization": "Bearer hd_live_your_key_here"} hits = requests.get(f"{BASE}/search", headers=H, params={ "operating_state": "TX", "min_member_count": 5, "page_size": 50, }).json() for g in hits["data"]: print(g["dealer_group_name"], g["member_count"], "rooftops", g["dealer_group_inventory_count"], "units") # Buy the ones worth having - by selection_id, the address of a group you don't own yet. picks = [g["selection_id"] for g in hits["data"][:2]] print(requests.post(f"{BASE}/purchase/quote", headers=H, json={"ids": picks}).json()["credits_required"], "credits") order = requests.post(f"{BASE}/purchase", headers=H, json={ "idempotency_key": str(uuid.uuid4()), "ids": picks, }).json() print("bought", order["charged_items"], "groups for", order["credits_used"], "credits") ``` ## Explode a group's roster into its rooftops The four member_* fields are pipe-joined and index-aligned. Owning the group does not own the rooftops - member_dealer_ids is how you go buy them AND how you join them to listings; member_entity_dealer_ids rolls co-located members up into one business. ```python import requests H = {"Authorization": "Bearer hd_live_your_key_here"} GROUPS = "https://luxe.hermesdata.io/v1_1/dealer-groups" DEALERS = "https://luxe.hermesdata.io/v1_1/dealers" group = requests.get(f"{GROUPS}/owned/search", headers=H, params={"page_size": 1}).json()["data"][0] names = group["member_dealers"].split("|") sites = group["member_website_ids"].split("|") ids = group["member_dealer_ids"].split("|") # Empty slot = a rooftop whose business we could not resolve. Kept, not dropped, # so the lists stay aligned. entities = group["member_entity_dealer_ids"].split("|") for name, site, dealer_id, entity in zip(names, sites, ids, entities): # index-aligned print(f"{name:<40} {site:<30} {dealer_id} {entity or '(unresolved)'}") # Those rooftops are Dealers records, priced separately at 1 credit each. quote = requests.post(f"{DEALERS}/purchase/quote", headers=H, json={"ids": ids}).json() print(f"{quote['net_new']} of {len(ids)} rooftops unowned = {quote['credits_required']} credits") # Per-rooftop inventory keys on dealer_id, one storefront at a time. for dealer_id in ids: total = requests.get("https://luxe.hermesdata.io/v1_2/listings/search", headers=H, params={"dealer_id": dealer_id, "page_size": 1}).json()["meta"]["total"] print(dealer_id, total, "listings") # Per-CAMPUS inventory keys on the entity - and must be deduped first, because # rooftops at one address share an entity id. for entity in sorted({e for e in entities if e}): total = requests.get("https://luxe.hermesdata.io/v1_2/listings/search", headers=H, params={"entity_dealer_id": entity, "page_size": 1}).json()["meta"]["total"] print(entity, total, "listings across the campus") ``` ## Keep your owned groups current Free, unlimited re-reads. Both keys work here: the selection_id you bought with, or the real dealer_group_id you got when you bought it. ```python import requests BASE = "https://luxe.hermesdata.io/v1_1/dealer-groups" H = {"Authorization": "Bearer hd_live_your_key_here"} ids = requests.get(f"{BASE}/owned/ids", headers=H).json()["ids"] body = requests.post(f"{BASE}/owned/records", headers=H, json={"ids": ids[:500]}).json() for g in body["data"]: print(g["dealer_group_id"], g["member_count"], "rooftops", "| providers:", g["provider_mix"]) ``` ## Free API fields ```json [ "selection_id", "dealer_group_name", "member_count", "dealer_group_franchises", "dealer_group_inventory_count", "operating_states", "operating_countries", "purchased" ] ``` ## Paid API fields ```json [ "dealer_group_id", "total_employee_count", "decision_maker_count", "group_hq_employee_count", "group_hq_decision_maker_count", "avg_years_in_business", "distinct_providers", "top_provider", "provider_mix", "member_dealers", "member_website_ids", "member_dealer_ids", "member_entity_dealer_ids" ] ``` ## Full API record example ```json { "dealer_group_id": "exampleautogroup.com", "dealer_group_name": "EXAMPLE AUTO GROUP", "member_count": "12", "dealer_group_inventory_count": "6240", "dealer_group_franchises": "Buick|Chevrolet|Chrysler|Dodge|Ford|GMC|Genesis|Hyundai|Jeep|Kia|Mitsubishi|Ram|Used|Volkswagen|Volvo", "total_employee_count": "119", "decision_maker_count": "40", "group_hq_employee_count": "", "group_hq_decision_maker_count": "", "avg_years_in_business": "36.2", "distinct_providers": "4", "top_provider": "DealerOn", "provider_mix": "DealerOn:8|Cox Automotive:2|Autofusion:1|Cars Commerce:1", "member_dealers": "EXAMPLE AUTO|EXAMPLE BUICK GMC|EXAMPLE CHEVROLET|EXAMPLE CHRYSLER DODGE JEEP RAM|EXAMPLE FORD|EXAMPLE HYUNDAI|…", "member_website_ids": "exampleautogroup.com|examplebuickgmc.com|examplechevy.com|exampledcj.com|exampleford.com|examplehyundai.com|…", "member_dealer_ids": "6a1c48d0e2f7b3915c0d4471|6a1c48d1e2f7b3915c0d4488|6a1c48d3e2f7b3915c0d44b2|…", "member_entity_dealer_ids": "6a1c48d0e2f7b3915c0d4471|6a1c48d1e2f7b3915c0d4488|6a1c48d3e2f7b3915c0d44b2|…", "purchased": true } // The real id is usually the group's domain - which is why it is a paid column. // The four member_* lists are pipe-joined and index-aligned: position 3 of // member_dealers, member_website_ids, member_dealer_ids and // member_entity_dealer_ids is the same rooftop. Split on "|" and zip them. // member_dealer_ids is the join key into Dealers AND into Vehicle Listings // (a listing row carries the same dealer_id). member_entity_dealer_ids is the // campus roll-up: members at one address share a value, so the list may repeat // and a roll-up must dedupe before summing. A rooftop we cannot resolve keeps // an EMPTY slot rather than being dropped, so the lists stay aligned - and the // whole field is absent (never null) if we cannot resolve at all. ``` ## CSV field reference Portal orders produce UTF-8 comma-separated files with a header row. These are portal CSV columns; API projections are documented separately above. Re-download owned records through My Orders. ### Identity - `dealer_group_name` (free): Group name. Parent dealer-group name — visible and searchable in the free preview. - `dealer_group_id` (paid): Group ID. Stable group key (the group's primary domain). ### Size & footprint - `member_count` (free): Rooftops. Number of rooftops (members) in the group. - `dealer_group_inventory_count` (free): Combined inventory. Combined live inventory across all rooftops. - `dealer_group_franchises` (free): Franchises. Pipe-delimited franchise footprint across the whole portfolio. ### Operating geography - `operating_states` (free): Operating states. Pipe-delimited states / provinces the group's rooftops operate in. - `operating_countries` (free): Operating countries. Pipe-delimited countries the group operates in. ### Headcount - `total_employee_count` (paid): Employees. Total employees across the group. - `decision_maker_count` (paid): Decision makers. Total decision-makers across the group. - `group_hq_employee_count` (paid): HQ employees. Employees at the group headquarters. - `group_hq_decision_maker_count` (paid): HQ decision makers. Decision-makers at the group headquarters. ### Tenure & technographics - `avg_years_in_business` (paid): Avg years in business. Average years in business across member rooftops. - `distinct_providers` (paid): Distinct providers. Count of distinct website providers used across the group. - `top_provider` (paid): Top provider. Most common website provider in the group. - `provider_mix` (paid): Provider mix. Per-provider breakdown, provider:count, pipe-delimited (e.g. Cars Commerce:7|Cox Automotive:2). ### Membership roster - `member_dealers` (paid): Rooftop names. Pipe-delimited names of every rooftop in the group. - `member_website_ids` (paid): Rooftop websites. Pipe-delimited website host keys — join to dealer_website_id in Dealers. - `member_dealer_ids` (paid): Rooftop dealer IDs. Pipe-delimited Hermes rooftop IDs — join to dealer_id in Dealers. ## Record endpoint response headers ```json [ { "name": "X-Data-Version", "on": "every response", "note": "The export snapshot that served it - the same value as meta.data_version, and what your cursors are pinned to." }, { "name": "Retry-After", "on": "429", "note": "Seconds to wait before retrying. The X-RateLimit-* trio rides along on a 429 too." } ] ``` ## Errors ```json [ { "status": "400", "code": "invalid_cursor", "when": "Cursor malformed, minted in the other segment, or sent alongside page=2 or higher. An empty cursor= is fine - it just means no cursor" }, { "status": "400", "code": "snapshot_expired", "when": "Cursor was minted against an older data version - the nightly rebuild landed mid-walk. Restart the traversal" }, { "status": "400", "code": "invalid_query", "when": "page or page_size can't be parsed as a number. Filters are never rejected this way - see the note on filter parsing under Conventions" }, { "status": "400", "code": "invalid_body", "when": "Malformed JSON, or a field this endpoint doesn't know. Purchase and quote bodies reject unknown fields" }, { "status": "400", "code": "batch_empty", "when": "owned/records called with an empty ids list" }, { "status": "400", "code": "batch_too_large", "when": "More than 500 ids in one owned/records call" }, { "status": "400", "code": "missing_selection", "when": "A quote or purchase with no ids, filters, or nonblank dealer_id" }, { "status": "400", "code": "missing_idempotency_key", "when": "A purchase with no idempotency_key, in the body or as an Idempotency-Key header" }, { "status": "401", "code": "invalid_api_key", "when": "Missing, malformed, unknown, or revoked bearer key" }, { "status": "402", "code": "insufficient_credits", "when": "The wallet can't cover the purchase - top up and retry with the same idempotency key" }, { "status": "402", "code": "spend_frozen", "when": "Spending is barred by an open dispute or a past-due subscription. Buying credits does not clear it" }, { "status": "403", "code": "product_not_entitled", "when": "The key isn't entitled to this product" }, { "status": "404", "code": "dealer_group_not_found", "when": "Unknown id on a point lookup" }, { "status": "400", "code": "dealer_has_no_group", "when": "Purchase by dealer_id for a rooftop with no sellable group; no charge" }, { "status": "400", "code": "dealer_id_conflicts_with_selection", "when": "Group quote or purchase combines a nonblank dealer_id with ids or filters" }, { "status": "404", "code": "dealer_not_found", "when": "Unknown rooftop on by-dealer lookup, quote, or purchase" }, { "status": "429", "code": "rate_limited", "when": "Over the per-key budget of 100 requests/second, shared with the Vehicle Listings API. Carries Retry-After" }, { "status": "503", "code": "auth_unavailable", "when": "The key resolver is unreachable. Fails closed - it never grants access" } ] ```