Skip to content

Instantly share code, notes, and snippets.

View sfletche's full-sized avatar

Scott Fletcher sfletche

  • Premise
  • Portland, OR
View GitHub Profile
{
  "errors": {},
  "applications": [
    {
      "id": "80994",
      "api_version": "2.5.0",
      "created_at": "2017-05-23T18:21:43.612+00:00",
      "updated_at": "2017-05-23T18:23:04.517+00:00",
      "origination_source": "champ_superuser",
{
  "id": "80994",
  "api_version": "2.0.0",
  "created_at": "2017-05-23T18:21:43.612+00:00",
  "updated_at": "2017-05-23T18:23:04.517+00:00",
  "origination_source": "champ_superuser",
  "sponsor": {
    "identifier": "cscda",
    "name": "CSCDA"
"phases": [
{
"name": "application_submission",
"steps": [
{
"name": "application_submission",
"type": "milestone",
"completed_at": "2017-06-01T00:25:24.842+00:00"
},
{
@sfletche
sfletche / lead_details.json
Last active November 7, 2016 18:31
JSON response to a specific lead
{
"id": { "type": "string" },
"status": { "enum": ["offered", "accepted", "applied", "declined", "disqualified", "expired", "unavailable"] },
"archived": { "type": "boolean" },
"expire_at": { "type": "datetime" },
"critical_at": { "type": "datetime" },
"contractor_location": { "type": "location" },
"lead_contact": {
"type": "object",
"properties": {
View existing Lead in SF
Click Clone
Make sure Lead Status is Unassigned
Change Lead Measure (to help differentiate in Champ) (NOTE: make sure lead measures will align with existing contractors)
Remove Location
Save
Trigger Availability Check
- System Information -> Lead Owner -> Change
- Queue / Homeowner Availability Queue
- Save
{
"property": {
"address": {
"full": "977 Stannage Ave, Albany, CA 94706",
"street1": "977 Stannage Ave",
"street2": null,
"city": "Albany",
"county": "Alameda",
"zip": "94706",
"state": "CA",
"plan_groups": [
{
"group_code": "default",
"plans": [
{
"code": "A600400",
"term_months": 60,
"interest_rate": 7.99,
"approved_amount_financed": 20000.0
},
{
"id": 14919,
"created_at": "2016-01-24T00:22:10.000Z",
"updated_at": "2016-01-24T00:22:10.000Z",
"origination_source": "CHAMP",
"transaction_identifier": "910c068c-5d76-4183-9985-3bf579825cc0",
"self_install": false,
"contractor": {
"location_id": "LOC3",
"sales_rep_id": "55A93D21-C920-4408-9DDE-152DC088CE3F",
{
"id": 14919,
"created_at": "2016-01-24T00:22:10.000Z",
"updated_at": "2016-01-24T00:22:10.000Z",
"origination_source": "CHAMP",
"transaction_identifier": "46ef6022-fd8c-48f3-b80a-8ee4da780438",
"program": "re_home",
"self_install": false,
"contractor": {
"location_id": "LOC3",
{
"plan_groups": [
{
"group_code": "default",
"plans": [
{
"code": "A",
"term_months": 60,
"interest_rate": 6.99,
"approved_amount_financed": 20000.0