Skip to content

Instantly share code, notes, and snippets.

@cokara
Created September 29, 2021 20:34
Show Gist options
  • Save cokara/697a676f629117ed9a13ac16c8e6997d to your computer and use it in GitHub Desktop.
Save cokara/697a676f629117ed9a13ac16c8e6997d to your computer and use it in GitHub Desktop.
Received a webhook with data:
[0] {
[0] type: 'utility_credential_verified',
[0] created_at: '2021-09-29T13:11:20.353-04:00',
[0] data: {
[0] id: 1820,
[0] username: 'co-75189935@a.arcadiapower.com',
[0] created_at: '2021-09-29T13:11:01.029-04:00',
[0] updated_at: '2021-09-29T13:11:18.735-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] verification_status: 'correct',
[0] verification_updated_at: '2021-09-29T13:11:18.715-04:00',
[0] accounts_load_in_progress: true
[0] }
[0] }
[0] Received a webhook with data:
[0] {
[0] type: 'historical_utility_statements_discovered',
[0] created_at: '2021-09-29T13:13:08.287-04:00',
[0] data: {
[0] statements: [
[0] {
[0] id: 63650,
[0] kwh: 263,
[0] tariff: null,
[0] due_date: '2019-12-06',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:05.584-04:00',
[0] updated_at: '2021-09-29T13:13:05.602-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2019-11-15',
[0] utility_charge: 15.03,
[0] service_end_date: '2019-11-14',
[0] service_start_date: '2019-10-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63649,
[0] kwh: 298,
[0] tariff: null,
[0] due_date: '2020-01-07',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:05.510-04:00',
[0] updated_at: '2021-09-29T13:13:05.526-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2019-12-17',
[0] utility_charge: 25.57,
[0] service_end_date: '2019-12-16',
[0] service_start_date: '2019-11-15',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63648,
[0] kwh: 189,
[0] tariff: null,
[0] due_date: '2020-02-10',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:05.433-04:00',
[0] updated_at: '2021-09-29T13:13:05.450-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-01-20',
[0] utility_charge: 19.76,
[0] service_end_date: '2020-01-17',
[0] service_start_date: '2019-12-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63647,
[0] kwh: 332,
[0] tariff: null,
[0] due_date: '2020-03-10',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:05.355-04:00',
[0] updated_at: '2021-09-29T13:13:05.374-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-02-18',
[0] utility_charge: 29.57,
[0] service_end_date: '2020-02-17',
[0] service_start_date: '2020-01-18',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63646,
[0] kwh: 247,
[0] tariff: null,
[0] due_date: '2020-04-10',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:05.222-04:00',
[0] updated_at: '2021-09-29T13:13:05.276-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-03-20',
[0] utility_charge: 21.08,
[0] service_end_date: '2020-03-17',
[0] service_start_date: '2020-02-18',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63645,
[0] kwh: 288,
[0] tariff: null,
[0] due_date: '2020-05-12',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:05.142-04:00',
[0] updated_at: '2021-09-29T13:13:05.159-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-04-21',
[0] utility_charge: 16.22,
[0] service_end_date: '2020-04-16',
[0] service_start_date: '2020-03-18',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63644,
[0] kwh: 299,
[0] tariff: null,
[0] due_date: '2020-06-09',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:05.061-04:00',
[0] updated_at: '2021-09-29T13:13:05.078-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-05-19',
[0] utility_charge: 9.68,
[0] service_end_date: '2020-05-16',
[0] service_start_date: '2020-04-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63643,
[0] kwh: 336,
[0] tariff: null,
[0] due_date: '2020-07-09',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.982-04:00',
[0] updated_at: '2021-09-29T13:13:04.999-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-06-18',
[0] utility_charge: 44.7,
[0] service_end_date: '2020-06-16',
[0] service_start_date: '2020-05-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63642,
[0] kwh: 332,
[0] tariff: null,
[0] due_date: '2020-08-11',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.904-04:00',
[0] updated_at: '2021-09-29T13:13:04.921-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-07-21',
[0] utility_charge: 43.56,
[0] service_end_date: '2020-07-17',
[0] service_start_date: '2020-06-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63641,
[0] kwh: 341,
[0] tariff: null,
[0] due_date: '2020-09-10',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.826-04:00',
[0] updated_at: '2021-09-29T13:13:04.843-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-08-20',
[0] utility_charge: 43.79,
[0] service_end_date: '2020-08-18',
[0] service_start_date: '2020-07-18',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63640,
[0] kwh: 281,
[0] tariff: null,
[0] due_date: '2020-10-13',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.746-04:00',
[0] updated_at: '2021-09-29T13:13:04.763-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-09-22',
[0] utility_charge: 38.14,
[0] service_end_date: '2020-09-17',
[0] service_start_date: '2020-08-19',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63639,
[0] kwh: 241,
[0] tariff: null,
[0] due_date: '2020-11-11',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.667-04:00',
[0] updated_at: '2021-09-29T13:13:04.687-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-10-21',
[0] utility_charge: 10.3,
[0] service_end_date: '2020-10-16',
[0] service_start_date: '2020-09-18',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63638,
[0] kwh: 286,
[0] tariff: null,
[0] due_date: '2020-12-10',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.587-04:00',
[0] updated_at: '2021-09-29T13:13:04.605-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-11-19',
[0] utility_charge: 20.48,
[0] service_end_date: '2020-11-16',
[0] service_start_date: '2020-10-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63637,
[0] kwh: 329,
[0] tariff: null,
[0] due_date: '2021-01-08',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.507-04:00',
[0] updated_at: '2021-09-29T13:13:04.526-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2020-12-18',
[0] utility_charge: 31.63,
[0] service_end_date: '2020-12-16',
[0] service_start_date: '2020-11-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63636,
[0] kwh: 447,
[0] tariff: null,
[0] due_date: '2021-02-11',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.428-04:00',
[0] updated_at: '2021-09-29T13:13:04.445-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2021-01-21',
[0] utility_charge: 43.88,
[0] service_end_date: '2021-01-19',
[0] service_start_date: '2020-12-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63635,
[0] kwh: 358,
[0] tariff: null,
[0] due_date: '2021-03-10',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.342-04:00',
[0] updated_at: '2021-09-29T13:13:04.362-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2021-02-17',
[0] utility_charge: 34.37,
[0] service_end_date: '2021-02-15',
[0] service_start_date: '2021-01-20',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63634,
[0] kwh: 315,
[0] tariff: null,
[0] due_date: '2021-04-08',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.255-04:00',
[0] updated_at: '2021-09-29T13:13:04.275-04:00',
[0] utility_name: 'Pepco',
client_user_id: '29094',
[0] statement_date: '2021-03-18',
[0] utility_charge: 35.24,
[0] service_end_date: '2021-03-16',
[0] service_start_date: '2021-02-16',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63633,
[0] kwh: 320,
[0] tariff: null,
[0] due_date: '2021-05-11',
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.175-04:00',
[0] updated_at: '2021-09-29T13:13:04.194-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2021-04-20',
[0] utility_charge: 23.13,
[0] service_end_date: '2021-04-16',
[0] service_start_date: '2021-03-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63632,
[0] kwh: 260,
[0] tariff: null,
[0] due_date: null,
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.094-04:00',
[0] updated_at: '2021-09-29T13:13:04.111-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2021-05-20',
[0] utility_charge: 0,
[0] service_end_date: '2021-05-17',
[0] service_start_date: '2021-04-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63631,
[0] kwh: 232,
[0] tariff: null,
[0] due_date: null,
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:04.011-04:00',
[0] updated_at: '2021-09-29T13:13:04.030-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2021-06-22',
[0] utility_charge: 0,
[0] service_end_date: '2021-06-16',
[0] service_start_date: '2021-05-18',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63630,
[0] kwh: 319,
[0] tariff: null,
[0] due_date: null,
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:03.931-04:00',
[0] updated_at: '2021-09-29T13:13:03.948-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2021-07-21',
[0] utility_charge: 0,
[0] service_end_date: '2021-07-19',
[0] service_start_date: '2021-06-17',
[0] utility_account_id: 6512
[0] },
[0] {
[0] id: 63629,
[0] kwh: 231,
[0] tariff: null,
[0] due_date: null,
[0] past_due: false,
[0] created_at: '2021-09-29T13:13:03.836-04:00',
[0] updated_at: '2021-09-29T13:13:03.854-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2021-08-19',
[0] utility_charge: 0,
[0] service_end_date: '2021-08-17',
[0] service_start_date: '2021-07-20',
[0] utility_account_id: 6512
[0] }
[0] ],
[0] client_user_id: '29094',
[0] utility_account_id: 6512
[0] }
[0] }
[0] Received a webhook with data:
[0] {
[0] type: 'historical_utility_statements_discovered',
[0] created_at: '2021-09-29T13:13:08.540-04:00',
[0] data: {
[0] statements: [
[0] {
[0] id: 63605,
[0] kwh: 79,
[0] tariff: null,
[0] due_date: '2017-01-26',
[0] past_due: true,
[0] created_at: '2021-09-29T13:11:53.116-04:00',
[0] updated_at: '2021-09-29T13:11:53.133-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2016-12-30',
[0] utility_charge: 0,
[0] service_end_date: '2016-12-30',
[0] service_start_date: '2016-12-24',
[0] utility_account_id: 6515
[0] }
[0] ],
[0] client_user_id: '29094',
[0] utility_account_id: 6515
[0] }
[0] }
[0] Received a webhook with data:
[0] {
[0] type: 'historical_utility_statements_discovered',
[0] created_at: '2021-09-29T13:13:08.822-04:00',
[0] data: {
[0] statements: [
[0] {
[0] id: 63604,
[0] kwh: 900,
[0] tariff: null,
[0] due_date: null,
[0] past_due: false,
[0] created_at: '2021-09-29T13:11:52.566-04:00',
[0] updated_at: '2021-09-29T13:11:52.598-04:00',
[0] utility_name: 'Pepco',
[0] client_user_id: '29094',
[0] statement_date: '2019-08-04',
[0] utility_charge: 0,
[0] service_end_date: '2019-08-04',
[0] service_start_date: '2019-07-09',
[0] utility_account_id: 6514
[0] }
[0] ],
[0] client_user_id: '29094',
[0] utility_account_id: 6514
[0] }
[0] }
[0] Received a webhook with data:
[0] {
[0] type: 'utility_account_updated',
[0] created_at: '2021-09-29T13:13:10.418-04:00',
[0] data: {
[0] id: 6512,
[0] flags: [ 'utility_statement_past_due' ],
[0] status: 'active',
[0] services: [ 'electric' ],
[0] created_at: '2021-09-29T13:11:01.042-04:00',
[0] updated_at: '2021-09-29T13:13:08.941-04:00',
[0] utility_name: 'Pepco',
[0] account_number: '50017132494',
[0] client_user_id: '29094',
[0] most_recent_tariff: null,
[0] service_address_zip: '20002',
[0] feature_availability: {
[0] charge_cost: 'NOT_READY',
[0] smart_charge: 'NOT_READY',
[0] utility_intervals: 'NOT_AVAILABLE',
[0] utility_statements: 'AVAILABLE'
[0] },
[0] service_address_city: 'WASHINGTON',
[0] service_address_state: 'DC',
[0] utility_credential_id: 1820,
[0] service_address_street_one: '360 H ST NE # 327',
[0] service_address_street_two: null
[0] }
[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment