Skip to main content
GET
/
v3
/
profiles
/
{profile}
/
aggregations
/
calculate
Calculate Profile Aggregations
curl --request GET \
  --url http://localhost/api/v3/profiles/{profile}/aggregations/calculate
{
  "data": {
    "profile_id": "<string>",
    "shop_days": "<string>",
    "spend_12m": "<string>",
    "spend_12m_now": "<string>",
    "spend_all": "<string>",
    "spend_atv_12m": "<string>",
    "spend_atv_all": "<string>",
    "discount_avg": "<string>",
    "spend_first_date": "<string>",
    "spend_last_date": "<string>",
    "dimension_frequency": "<string>",
    "dimension_recency": "<string>",
    "dimension_join": "<string>",
    "channel": "<string>",
    "shop_count": "<string>",
    "total_referred": "<string>",
    "store_join": {
      "id": 123,
      "type": "<string>",
      "name": "<string>",
      "handle": "<string>",
      "description": "<string>",
      "phone": "<string>",
      "email": "<string>",
      "timezone": "<string>",
      "external_id": "<string>",
      "external_code": "<string>",
      "is_published": true,
      "is_permanently_closed": true,
      "address": {
        "id": 123,
        "address_line_1": "<string>",
        "address_line_2": "<string>",
        "address_line_3": "<string>",
        "company": "<string>",
        "latitude": 123,
        "longitude": 123,
        "city": "<string>",
        "postcode": "<string>",
        "state": "<string>",
        "country": "<string>",
        "notes": "<string>",
        "external_id": "<string>",
        "is_default": true,
        "created_at": "<string>",
        "updated_at": "<string>",
        "meta": [
          "<unknown>"
        ],
        "name": "<string>",
        "type": "<string>",
        "phone": "<string>",
        "iso": "<string>",
        "iso_state": "<string>",
        "profile_id": "<string>",
        "custom_fields": {}
      },
      "normal_hours": [
        [
          "<unknown>"
        ]
      ],
      "special_hours": [
        [
          "<unknown>"
        ]
      ],
      "tags": [
        "<string>"
      ],
      "custom_fields": {},
      "icon": "<string>",
      "country_iso_3": "<string>",
      "image_url": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "departments": [
        {
          "id": 123,
          "name": "<string>",
          "handle": "<string>",
          "external_id": "<string>",
          "external_code": "<string>",
          "description": "<string>",
          "short_description": "<string>",
          "url": "<string>",
          "image_url": "<string>",
          "internal_note": "<string>",
          "meta": [
            "<unknown>"
          ],
          "brand_id": 123,
          "location_id": 123,
          "brand": {
            "name": "<string>",
            "handle": "<string>"
          },
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      ]
    },
    "likely_country": "<string>",
    "likely_country_score": "<string>",
    "purchased_brands": "<string>",
    "total_shop_days": "<string>",
    "first_shop_days": "<string>",
    "second_shop_days": "<string>",
    "latest_shop_days": "<string>",
    "average_shop_days": "<string>",
    "second_shop_date": "<string>",
    "previous_shop_date": "<string>",
    "at_risk_date": "<string>",
    "most_transacted_location": {
      "id": 123,
      "type": "<string>",
      "name": "<string>",
      "handle": "<string>",
      "description": "<string>",
      "phone": "<string>",
      "email": "<string>",
      "timezone": "<string>",
      "external_id": "<string>",
      "external_code": "<string>",
      "is_published": true,
      "is_permanently_closed": true,
      "address": {
        "id": 123,
        "address_line_1": "<string>",
        "address_line_2": "<string>",
        "address_line_3": "<string>",
        "company": "<string>",
        "latitude": 123,
        "longitude": 123,
        "city": "<string>",
        "postcode": "<string>",
        "state": "<string>",
        "country": "<string>",
        "notes": "<string>",
        "external_id": "<string>",
        "is_default": true,
        "created_at": "<string>",
        "updated_at": "<string>",
        "meta": [
          "<unknown>"
        ],
        "name": "<string>",
        "type": "<string>",
        "phone": "<string>",
        "iso": "<string>",
        "iso_state": "<string>",
        "profile_id": "<string>",
        "custom_fields": {}
      },
      "normal_hours": [
        [
          "<unknown>"
        ]
      ],
      "special_hours": [
        [
          "<unknown>"
        ]
      ],
      "tags": [
        "<string>"
      ],
      "custom_fields": {},
      "icon": "<string>",
      "country_iso_3": "<string>",
      "image_url": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "departments": [
        {
          "id": 123,
          "name": "<string>",
          "handle": "<string>",
          "external_id": "<string>",
          "external_code": "<string>",
          "description": "<string>",
          "short_description": "<string>",
          "url": "<string>",
          "image_url": "<string>",
          "internal_note": "<string>",
          "meta": [
            "<unknown>"
          ],
          "brand_id": 123,
          "location_id": 123,
          "brand": {
            "name": "<string>",
            "handle": "<string>"
          },
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      ]
    },
    "most_spend_location": {
      "id": 123,
      "type": "<string>",
      "name": "<string>",
      "handle": "<string>",
      "description": "<string>",
      "phone": "<string>",
      "email": "<string>",
      "timezone": "<string>",
      "external_id": "<string>",
      "external_code": "<string>",
      "is_published": true,
      "is_permanently_closed": true,
      "address": {
        "id": 123,
        "address_line_1": "<string>",
        "address_line_2": "<string>",
        "address_line_3": "<string>",
        "company": "<string>",
        "latitude": 123,
        "longitude": 123,
        "city": "<string>",
        "postcode": "<string>",
        "state": "<string>",
        "country": "<string>",
        "notes": "<string>",
        "external_id": "<string>",
        "is_default": true,
        "created_at": "<string>",
        "updated_at": "<string>",
        "meta": [
          "<unknown>"
        ],
        "name": "<string>",
        "type": "<string>",
        "phone": "<string>",
        "iso": "<string>",
        "iso_state": "<string>",
        "profile_id": "<string>",
        "custom_fields": {}
      },
      "normal_hours": [
        [
          "<unknown>"
        ]
      ],
      "special_hours": [
        [
          "<unknown>"
        ]
      ],
      "tags": [
        "<string>"
      ],
      "custom_fields": {},
      "icon": "<string>",
      "country_iso_3": "<string>",
      "image_url": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "departments": [
        {
          "id": 123,
          "name": "<string>",
          "handle": "<string>",
          "external_id": "<string>",
          "external_code": "<string>",
          "description": "<string>",
          "short_description": "<string>",
          "url": "<string>",
          "image_url": "<string>",
          "internal_note": "<string>",
          "meta": [
            "<unknown>"
          ],
          "brand_id": 123,
          "location_id": 123,
          "brand": {
            "name": "<string>",
            "handle": "<string>"
          },
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      ]
    },
    "most_spend_12m_location": {
      "id": 123,
      "type": "<string>",
      "name": "<string>",
      "handle": "<string>",
      "description": "<string>",
      "phone": "<string>",
      "email": "<string>",
      "timezone": "<string>",
      "external_id": "<string>",
      "external_code": "<string>",
      "is_published": true,
      "is_permanently_closed": true,
      "address": {
        "id": 123,
        "address_line_1": "<string>",
        "address_line_2": "<string>",
        "address_line_3": "<string>",
        "company": "<string>",
        "latitude": 123,
        "longitude": 123,
        "city": "<string>",
        "postcode": "<string>",
        "state": "<string>",
        "country": "<string>",
        "notes": "<string>",
        "external_id": "<string>",
        "is_default": true,
        "created_at": "<string>",
        "updated_at": "<string>",
        "meta": [
          "<unknown>"
        ],
        "name": "<string>",
        "type": "<string>",
        "phone": "<string>",
        "iso": "<string>",
        "iso_state": "<string>",
        "profile_id": "<string>",
        "custom_fields": {}
      },
      "normal_hours": [
        [
          "<unknown>"
        ]
      ],
      "special_hours": [
        [
          "<unknown>"
        ]
      ],
      "tags": [
        "<string>"
      ],
      "custom_fields": {},
      "icon": "<string>",
      "country_iso_3": "<string>",
      "image_url": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "departments": [
        {
          "id": 123,
          "name": "<string>",
          "handle": "<string>",
          "external_id": "<string>",
          "external_code": "<string>",
          "description": "<string>",
          "short_description": "<string>",
          "url": "<string>",
          "image_url": "<string>",
          "internal_note": "<string>",
          "meta": [
            "<unknown>"
          ],
          "brand_id": 123,
          "location_id": 123,
          "brand": {
            "name": "<string>",
            "handle": "<string>"
          },
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      ]
    },
    "latest_shop_spend": "<string>",
    "latest_shop_currency": {
      "id": 123,
      "from": "<string>",
      "to": "<string>",
      "rate": 123,
      "is_system": true,
      "created_at": "<string>",
      "updated_at": "<string>"
    },
    "latest_transacted_location": {
      "id": 123,
      "type": "<string>",
      "name": "<string>",
      "handle": "<string>",
      "description": "<string>",
      "phone": "<string>",
      "email": "<string>",
      "timezone": "<string>",
      "external_id": "<string>",
      "external_code": "<string>",
      "is_published": true,
      "is_permanently_closed": true,
      "address": {
        "id": 123,
        "address_line_1": "<string>",
        "address_line_2": "<string>",
        "address_line_3": "<string>",
        "company": "<string>",
        "latitude": 123,
        "longitude": 123,
        "city": "<string>",
        "postcode": "<string>",
        "state": "<string>",
        "country": "<string>",
        "notes": "<string>",
        "external_id": "<string>",
        "is_default": true,
        "created_at": "<string>",
        "updated_at": "<string>",
        "meta": [
          "<unknown>"
        ],
        "name": "<string>",
        "type": "<string>",
        "phone": "<string>",
        "iso": "<string>",
        "iso_state": "<string>",
        "profile_id": "<string>",
        "custom_fields": {}
      },
      "normal_hours": [
        [
          "<unknown>"
        ]
      ],
      "special_hours": [
        [
          "<unknown>"
        ]
      ],
      "tags": [
        "<string>"
      ],
      "custom_fields": {},
      "icon": "<string>",
      "country_iso_3": "<string>",
      "image_url": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "departments": [
        {
          "id": 123,
          "name": "<string>",
          "handle": "<string>",
          "external_id": "<string>",
          "external_code": "<string>",
          "description": "<string>",
          "short_description": "<string>",
          "url": "<string>",
          "image_url": "<string>",
          "internal_note": "<string>",
          "meta": [
            "<unknown>"
          ],
          "brand_id": 123,
          "location_id": 123,
          "brand": {
            "name": "<string>",
            "handle": "<string>"
          },
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      ]
    },
    "transacted_locations": "<string>",
    "likely_country_iso": "<string>",
    "likely_country_iso_score": "<string>",
    "likely_state_iso": "<string>",
    "likely_state_iso_score": "<string>",
    "likely_region": "<string>",
    "likely_region_score": "<string>",
    "top_historic_status": {
      "id": "<string>",
      "name": "<string>",
      "handle": "<string>",
      "sort_order": "<string>",
      "description": "<string>",
      "short_description": "<string>",
      "long_description": "<string>",
      "terms_conditions": "<string>",
      "icon": "<string>",
      "image_url": "<string>",
      "earn_instructions": "<string>",
      "colour": "<string>",
      "primary_colour": "<string>",
      "secondary_colour": "<string>",
      "text_colour": "<string>",
      "code": "<string>",
      "internal_notes": "<string>",
      "group_name": "<string>",
      "group_handle": "<string>",
      "timezone": "<string>",
      "period": "<string>",
      "period_type": "<string>",
      "absolute_expiry": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.omneo.io/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

profile
string<uuid>
required

The profile ID

Response

ProfileAggregation

data
ProfileAggregation · object
required