{"swagger":"2.0","info":{"version":"2.1","title":"Api Documentation"},"schemes":["https"],"paths":{"/address-lookup":{"post":{"summary":"Confirm Address is \"In Program\".","description":"Ask Ygrene if a standard address is in any of our PACE eligible jurisdictions.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"x-api-key","in":"header","description":"Ygrene Web Services api key","required":false,"type":"string"},{"in":"body","name":"AddressLookup","required":true,"schema":{"$ref":"#/definitions/AddressLookup"}}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/LookupResponse"}},"400":{"description":"400 response","schema":{"$ref":"#/definitions/ErrorJsonResponse"}},"403":{"description":"403 response"},"500":{"description":"500 response","schema":{"$ref":"#/definitions/ErrorJsonResponse"}}},"security":[{"api_key":[]}]},"options":{"consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"type":"string"},"Access-Control-Allow-Methods":{"type":"string"},"Access-Control-Allow-Credentials":{"type":"string"},"Access-Control-Allow-Headers":{"type":"string"}}}}}},"/check-eligibility":{"post":{"summary":"Check Ygrene PACE eligibility of a property.","description":"Ask Ygrene if an address is in a PACE jurisdiction and if the amount requested is conditionally fundable.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"x-api-key","in":"header","description":"Ygrene Web Services api key","required":false,"type":"string"},{"in":"body","name":"EligibilityRequest","required":true,"schema":{"$ref":"#/definitions/EligibilityRequest"}}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/EligibilityResponse"}},"400":{"description":"400 response","schema":{"$ref":"#/definitions/ErrorJsonResponse"}},"403":{"description":"403 response"},"422":{"description":"422 response","schema":{"$ref":"#/definitions/ErrorJsonResponse"}},"500":{"description":"500 response","schema":{"$ref":"#/definitions/ErrorJsonResponse"}}},"security":[{"api_key":[]}]},"options":{"consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"type":"string"},"Access-Control-Allow-Methods":{"type":"string"},"Access-Control-Allow-Credentials":{"type":"string"},"Access-Control-Allow-Headers":{"type":"string"}}}}}}},"securityDefinitions":{"api_key":{"type":"apiKey","name":"x-api-key","in":"header"}},"definitions":{"EligibilityRequest":{"type":"object","required":["amount","contractorId","property"],"properties":{"owner":{"$ref":"#/definitions/OwnerInfo"},"amount":{"type":"number"},"contractorId":{"type":"string"},"property":{"$ref":"#/definitions/Property"}}},"AddressLookup":{"$ref":"#/definitions/Property"},"EligibilityResponse":{"type":"object","required":["eligibility"],"properties":{"financing":{"type":"array","items":{"type":"object","properties":{"rate":{"example":"8.5","type":"number"},"term":{"example":"80.5","type":"number"}}}},"project":{"$ref":"#/definitions/ProjectCreatedRepsonse"},"eligibility":{"type":"object","properties":{"amount":{"type":"boolean"}}}}},"ProjectCreatedRepsonse":{"type":"object","required":["mobileUrl","token","webUrl"],"properties":{"webUrl":{"type":"string","example":"https://portal.ygrene.com/#/eligibility/ABC123/","description":"A url like portal.ygrene.com/#/eligibility/ABC123/"},"mobileUrl":{"type":"string","example":"ygrene://#/eligibility/ABC123/","description":"A protocol url like ygrene://#/eligibility/ABC123/"},"token":{"type":"string","example":"ABC123","description":"A project token ABC123"}}},"OwnerInfo":{"type":"object","required":["birthDate","firstName","lastName","middleInitial"],"properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"middleInitial":{"type":"string"},"birthDate":{"type":"string","format":"date"}}},"ErrorJsonResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}},"LookupResponse":{"type":"object","required":["isInYgreneProgram"],"properties":{"isInYgreneProgram":{"type":"boolean"},"moreInfo":{"type":"string"}}},"Property":{"type":"object","required":["address","city","state","zipCode"],"properties":{"zipCode":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"}}}},"host":"virtserver.swaggerhub.com","basePath":"/Ygrene/2.api.ygrene.com/2.1"}