CM1 Fuel purchase documentation

Associations

  1. Fuel type fuel_type

    Choose from
    Fuel types
    Default identifier
    name
    Example
    http://impact.brighterplanet.com/fuel_purchases?fuel_type=Asphalt+and+Road+Oil
    Example
    http://impact.brighterplanet.com/fuel_purchases?fuel_type[name]=Asphalt+and+Road+Oil
  2. Petroleum administration for defense district petroleum_administration_for_defense_district

    Choose from
    Petroleum administration for defense districts
    Default identifier
    code
    Example
    http://impact.brighterplanet.com/fuel_purchases?petroleum_administration_for_defense_district=1A
    Example
    http://impact.brighterplanet.com/fuel_purchases?petroleum_administration_for_defense_district[code]=1A
  3. State state

    Choose from
    States
    Default identifier
    postal_abbreviation
    Example
    http://impact.brighterplanet.com/fuel_purchases?state=AK
    Example
    http://impact.brighterplanet.com/fuel_purchases?state[postal_abbreviation]=AK
  4. Zip code zip_code

    Choose from
    Zip codes
    Default identifier
    name
    Example
    http://impact.brighterplanet.com/fuel_purchases?zip_code=00001
    Example
    http://impact.brighterplanet.com/fuel_purchases?zip_code[name]=00001

Attributes

  1. Cost cost

    Accepts
    Float
    Measures
    Dollars
    Example
    http://impact.brighterplanet.com/fuel_purchases?cost=…
  2. Date date

    Accepts
    Date
    Example
    http://impact.brighterplanet.com/fuel_purchases?date=…
  3. Price price

    Accepts
    Float
    Example
    http://impact.brighterplanet.com/fuel_purchases?price=…
  4. Volume volume

    Accepts
    Float
    Example
    http://impact.brighterplanet.com/fuel_purchases?volume=…