Skip to main content
POST
/
incentives
cURL
curl -X POST \
  "https://api.incentives.leap.energy/alpha/incentives" \
  -H "x-api-key: leap_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "operation_type": "lookup",
    "reference_id": "external-ref-123",
    "address": {
      "street_1": "123 Main St",
      "street_2": "Apt 4B",
      "city": "San Francisco",
      "state_or_province_code": "CA",
      "postal_code": "94102",
      "country_code": "US"
    },
    "building_type": "single_family",
    "device_id": 42,
    "create_application": true
  }'
{
"utility": {
"eiaid": 12345,
"name": "Pacific Gas & Electric"
},
"address": "123 Main St, Apt 4B, San Francisco, CA 94102",
"possible_utilities": [
{
"eiaid": "12345",
"name": "Pacific Gas & Electric"
}
],
"building_type": "RESIDENTIAL",
"customer_id": 789,
"programs_evaluated": 3,
"incentives": {
"total_incentive_amount": 5500,
"total_eligible_combinations": 2,
"by_program": [
{
"program_id": 101,
"program_name": "Home Upgrade Program",
"total_incentive": 3000,
"eligible_combinations": 1,
"device_tier_results": [
{
"device_id": 42,
"device_name": "Heat Pump",
"tier_id": 1,
"tier_name": "Standard",
"eligible": true,
"incentive_amount": 3000,
"calculation_details": "Base incentive for heat pump installation",
"failed_requirements": [],
"ignored_requirements": [],
"completed_requirements": [
"Income verification",
"Building type check"
]
}
]
}
]
},
"reference_id": "external-ref-123",
"connect_url": "https://connect.incentives.leap.energy/your-company/refId/external-ref-123"
}

Overview

Calculate incentives across multiple utility programs for a customer address and device. This endpoint automatically handles customer creation, utility lookup, and incentive aggregation. Use lookup for first-time customers (requires full address) or refresh for returning customers (faster, uses cached data).
The reference_id is required and must be unique. It enables faster lookups on subsequent calls.
Performance Tip: Use operation_type="refresh" for returning customers to skip geocoding and use cached utility data. This is significantly faster than lookup operations.
For more details on operation types, organization scoping, and best practices, see the API Guide.

Authorizations

x-api-key
string
header
required

API key for authentication. Include your Leap API key in the x-api-key header: x-api-key: leap_live_...

Body

application/json

Customer address, building type, and device information for incentive calculation

operation_type
enum<string>
required

Operation type: 'lookup' for new calculations with geocoding, 'refresh' for using cached utility data (faster)

Available options:
lookup,
refresh
Example:

"lookup"

reference_id
string
required

Your internal reference ID for tracking this customer within your organization (unique per organization)

Example:

"external-ref-123"

building_type
enum<string>
required

Type of building for which to calculate incentives

Available options:
RESIDENTIAL,
MULTIFAMILY,
COMMERCIAL
Example:

"RESIDENTIAL"

device_id
integer
required

ID of the device for which to calculate incentives

Example:

42

address
object

Customer's address information. Required for 'lookup' operation, optional for 'refresh' operation (uses stored address if not provided)

create_application
boolean

Whether to create/update application records and return a connect_url

Example:

true

Response

Successful response with aggregated incentive data

utility
object
required

Information about the utility serving the address

address
object
required

Address object returned from the utility lookup

possible_utilities
object[]
required

List of possible utilities that could serve this address

building_type
enum<string>
required

The building type that was queried

Available options:
RESIDENTIAL,
MULTIFAMILY,
MANUFACTURED_HOME,
COMMERCIAL
Example:

"RESIDENTIAL"

customer_id
integer
required

The customer ID (created or found based on address)

Example:

453

reference_id
string
required

Your internal reference ID that was provided in the request

Example:

"ref-abc123"

programs_evaluated
integer
required

Number of programs that were evaluated

Example:

2

incentives
object
required
connect_url
string

URL to connect/apply for incentives (only returned if create_application=true)

Example:

"https://connect.leap.energy?refId=ref-abc123"