- Docs
- API reference
- Endpoints and schemas
- GraphQL
- Selection
OperatingLocationCardTransaction
Contains quantitative information about the card transactions processed by the operating location.
Selection. This type is a selection. You reach it through a connection, and you choose which of its fields come back.
Contains quantitative information about the card transactions processed by the operating location.
Data Sources
Section titled “Data Sources”The card transaction data is derived from a panel of around a third of all U.S. credit and debit card transactions.
Where it appears
Section titled “Where it appears”Shortest path from a primary entity: Brand → operatingLocations → OperatingLocation → cardTransactions → OperatingLocationCardTransaction.
OperatingLocation.cardTransactions
Fields
Section titled “Fields”| Field | Label | Type | Description |
|---|---|---|---|
quantityType |
Quantity Type | String |
This field indicates the type of quantity represented in the record. See the values. |
period |
Period | String |
This field indicates the length of the time period represented in the record. See the values. |
id |
ID | UUID! |
The unique identifier of this object. |
firstObservedDate |
First Observed Date | String |
The earliest date of a source record that supports this attribute or relationship. The source date is, for example, the date when Enigma collected the record or when the source last updated it. Most values have a date, a time, and a UTC offset, but some have the date only. |
lastObservedDate |
Last Observed Date | String |
The latest date of a source record that supports this attribute or relationship. It uses the same source dates and the same format as firstObservedDate. |
rank |
Rank | Int |
Determines the display order of the attribute, with lower values shown first |
rawQuantity |
Raw Quantity | Float |
This field contains the raw value of the quantity specified in quantity_type. |
projectedQuantity |
Projected Quantity | Float |
This field contains the projected value for the quantity specified in quantity type. |
periodStartDate |
Period Start Date | Date |
This field contains the date that begins the period for the record. |
periodEndDate |
Period End Date | Date |
This field contains the date that ends the period for the record. |
internalId |
String |
A numeric identifier that Enigma assigns to this object when it builds its data. On most attribute objects, id is the UUID form of this number. |
|
internalOperatingLocationId |
String |
The internalId of the operating location that this attribute describes. |
quantityType values
Section titled “quantityType values”| Value | Meaning |
|---|---|
avg_transaction_size |
The record is the average transaction size in dollars for the location for that time period. |
has_transactions |
The record is a 1 if the location had any transactions in the time period, and 0 otherwise. |
refunds_amount |
The record is the total amount of refunds in dollars for the location for that time period. |
card_transactions_count |
The record is the total number of card transactions for the location for that time period. |
card_revenue_amount |
The record is the total sales amount in dollars for the location for that time period. |
card_customers_average_daily_count |
The record is the average number of unique daily customers for the location for that time period. |
card_revenue_yoy_growth |
The record is the ratio of the location’s current period’s revenue to the period one year prior’s revenue. |
card_revenue_prior_period_growth |
The record is the ratio of the location’s current period’s revenue to the previous period’s revenue. |
period values
Section titled “period values”| Value | Meaning |
|---|---|
1m |
One month. |
3m |
Three months. |
12m |
Twelve months. |
Math fields
Section titled “Math fields”Every record of this type answers count, countDistinct, has, sum, min, max, avg, collect, minDateTime, maxDateTime. Each takes field and an optional conditions. See Selection.
Example
Section titled “Example”query { search(searchInput: { entityType: BRAND name: "Safeway" conditions: { limit: 1 } }) { ... on Brand { id operatingLocations(first: 1) { edges { node { cardTransactions(first: 1) { edges { node { id quantityType period firstObservedDate lastObservedDate } } } } } } } }}Response, as returned:
{ "data": { "search": [ { "id": "0f26fbef-3436-4f85-8bcd-31fe12a4f99a", "operatingLocations": { "edges": [ { "node": { "cardTransactions": { "edges": [ { "node": { "id": "000001cc-0006-a553-0000-0b8000000000", "quantityType": "avg_transaction_size", "period": "12m", "firstObservedDate": null, "lastObservedDate": null } } ] } } } ] } } ] }}