The field object
A field is a key a filter’s comparison or a breakdown’s dimension may name: a field a record carries, a property a source wrote, or a dimension of the run rate movements themselves.
Attributes
idstringThe key, as a filter or a breakdown names it:
customer.first_paying_at,subscription.properties.stripe.plan_tier,movement_type.objectstringThe object’s type, always
field.Always
fieldat_supportedbooleanWhether a comparison or a dimension naming it may say
at— when the value is read: the end of each period, now, or a datetime. A dimension of the run rate movements themselves takes none.breakdown_supportedbooleanWhether a dimension in a
breakdownmay name it.filter_supportedbooleanWhether a comparison in a
filtermay name it.labelstringWhat to call it:
First Paying At,Plan, or the name a property goes by.originenumWhere its value comes from:
exclusive, a field only the source a subscription lives in may write;promoted, a customer’s field any source may write, taken from the highest-ranked source that has one;derived, one Summerbase works out;property, what one source has written about the record; orrun_rate_movement, a dimension of the revenue movements themselves.One of
exclusive,promoted,derived,property,run_rate_movementpromotedbooleanWhether the key is resolved across sources onto the record. For a property, the record field of the same name carries the resolved value:
customer.properties.stripe.nameis what Stripe said, andcustomer.nameis the answer.referencesenumWhat each value is the id of, for a field whose values name something:
countryfor a country code,currencyfor a currency code,planfor a plan id. Absent for a field holding values of its own.One of
country,currency,plan,pricesource_slugstringFor a property, the source that wrote it. Absent otherwise.
subject_typestringWhat it is about:
customer,subscription,subscription_item, orrun_rate_movementfor a dimension of the run rate movements themselves.value_typestringWhat it holds:
string,number,booleanordatetime. A breakdown by adatetimefield says which unit totruncateto, and one by anumbermay giveboundaries, or ask for them withauto.
Example
{ "at_supported": true, "breakdown_supported": true, "filter_supported": true, "id": "customer.first_paying_at", "label": "First Paying At", "object": "field", "origin": "derived", "promoted": false, "references": null, "source_slug": null, "subject_type": "customer", "value_type": "datetime"}