Expense Method


The expense method allows you to access the expenses on an account.

Base Url

GET   http://www.reefware.com/api/request/v1/expense

Response

{ id: [expense_id],
tank: [taank_token],
type: [expense_type],
brand: [equipment_brand],
model: [equipment_model],
cost: [cost_of_equipment],
expense: [expense_type],
watts: [watts_used],
hours: [hours_of_operation],
date: [date_purchased],
pattern: [expense_recurrence],
token: [expense_token]
}


Data Options

id
optional

  • 'id' will return the expense id.
  • The expense id is unique for each saved expense.
  • This option will return as a number.

This option can't be changed.

tank
optional

  • 'tank' will return the tank token for the expense.
  • This option will return as a string.

This option requires a tank to be set up.

type
optional

  • 'type' will return the expense type.
  • This option will return as a number.

brand
optional

  • 'brand' will return the expense manufacturer.
  • This option will return as a string.

model
optional

  • 'model' will return the expense model.
  • This option will return as a string.

cost
optional

  • 'cost' will return the expense cost.
  • This option will return as a number.

expense
optional

  • 'expense' will return the type of expense.
  • Available options include 'electric' or 'nonelectrical'.
  • This option will return as a string.

watts
optional

  • 'watts' will return the watts used for electrical expenses.
  • This option will return as a number.

hours
optional

  • 'hours' will return the number of hours an electrical expense will run.
  • This option will return as a number.

date
optional

  • 'date' will return the date that an expense was purchased.
  • This option will return as a date timestamp.

pattern
optional

  • 'pattern' will return the recurrence pattern for the expense.
  • Available options include one and monthly.
  • This option will return as a string.

token
optional

  • 'token' will return the token created for the expense.
  • This option will return as a string.

This option can't be changed.

 

Example Request

GEThttp://www.reefware.com/api/request/v1/expense/data/brand.model.watts

Response

  1. [
  2. [
  3. {
  4. "brand": "Reef Octopus",
  5. "model": "Extreme 250",
  6. "watts": 500
  7. }
  8. ]
  9. ]