API Reference

It may be the case that your application doesn't capture data that aligns neatly with SPENDiD budget facets. For this scenario, grouped inputs allow developers to map a fixed value across multiple facets.

Simply supply the Spendid budget facets you want to group along with a fixed value.

We distribute your value across the items in an appropriate ratio determined by the underlying demographic model.

Items strings are subject to validation and correspond to Spendid budget object attributes.

{
  "items": [
    "natural_gas",
    "electricity",
    "heating_fuels_other",
    "telephone_services",
    "water_and_public_services"
  ],
  "value": 2500
}