Visitar URL original
Query Location Values | Klaviyo API ReferenceSkip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/query_location_values_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/query_location_values_beta.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers

This endpoint is in beta. Call it with the revision header 2026-10-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

POSThttps://a.klaviyo.com/api/location-values-reports

Get totals for a live event.

Returns how many people your campaigns for the event reached on each channel, and in-store sales during the event.

Set filter.live_event_id to the event, and set the timeframe to {"key": "all_time"}. Other timeframes aren't supported: reach always counts every campaign sent for the event, and sales always cover the event's start and end time.

To get sales for one host location, also set filter.location_id. You can't combine this filter with reach statistics.

Revision header
revision: 2026-10-15.prerequired
Scopes
locations:read
Rate limits
Burst: 3/sSteady: 60/m

Query parameters

  • fields[location-values-report]#string[]

    For more information please visit API overview

    Allowed values:
    • id
    • results

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15.pre

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • location-values-report
    • attributes#objectrequired
      Show 3 fields
      • statistics#string[]required

        Statistics to return. email_reach, sms_reach, and push_reach count the people your campaigns for this event reached on each channel. whatsapp_messages_delivered counts messages, not people. Someone reached on two channels is counted on both, so don't add the channels together. gross_revenue, purchasers, and order_count are in-store sales during the event.

        Allowed values:
        • email_reach
        • sms_reach
        • push_reach
        • whatsapp_messages_delivered
        • gross_revenue
        • purchasers
        • order_count
      • timeframe#objectrequired

        Must be {"key": "all_time"}. Reach always counts every campaign sent for the event, and sales always cover the event's start and end time.

        Show 3 fields
        • key#stringnullable

          Named preset window.

          Show 15 allowed values
          • all_time
          • today
          • yesterday
          • this_week
          • last_7_days
          • last_week
          • this_month
          • last_30_days
          • last_month
          • last_90_days
          • last_3_months
          • last_365_days
          • last_12_months
          • this_year
          • last_year

          Example: last_30_days

        • start#string<date-time>nullable

          First day to include, in the account's timezone.

          Example: 2026-09-01T00:00:00+00:00

        • end#string<date-time>nullable

          Last day to include, in the account's timezone.

          Example: 2026-09-30T00:00:00+00:00

      • filter#objectnullable

        Which live event to report on.

        Show 2 fields
        • live_event_id#stringnullable

          The live event to report on. Required.

          Example: 01JABCDEFGHJKMNPQRSTVWXYZ1

        • location_id#stringnullable

          Only count sales at this host location. Can't be used with reach statistics.

          Example: 01JABCDEFGHJKMNPQRSTVWXYZ0

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • location-values-report
    • id#stringrequired

      Opaque identifier for this report response.

      Example: b13f8dea-895a-4a7c-a349-cc8efd25b1ba

    • attributes#objectrequired
      Show 1 field
      • results#object[]required

        One row per live event.

        Show 2 fields
        • groupings#objectrequired

          The live event, and the host location if you filtered by one.

        • statistics#objectrequired

          Each requested statistic and its value. Null if it isn't available.

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string