GET
/
contract
/
search
curl --request GET \
  --url https://demo.enneo.ai/api/mind/contract/search
[
  {
    "id": 123,
    "similarity": 123,
    "contract": {
      "id": 746839,
      "orderId": 123,
      "tenant": null,
      "customerId": 123,
      "signupDate": 1661126400,
      "status": "active",
      "statusCode": 5000,
      "statusCodeTitle": "active",
      "energy": "electricity",
      "energyTypeId": 1,
      "energySubTypeId": 1,
      "email": "johndoe@example.com",
      "firstname": "John",
      "lastname": "Doe",
      "deliveryAddress": "Hugo-Junkers-Str. 5, 82031 Grünwald",
      "iban": "DE89370400440532013000",
      "monthlyDeposit": 53,
      "startDate": 1661990400,
      "endDate": null,
      "consumption": 3477,
      "counterNumber": "1ESY1160669167",
      "productId": 1,
      "productName": "Flex 24",
      "productCode": "flx_24",
      "campaignId": 1,
      "salesChannelId": 1,
      "unpaidDebt": 109.21,
      "vatRate": 0.09,
      "basePrice": 0.09,
      "workingPrice": 0.09,
      "billingAddress": "Rechnungssstraße 24, 10587 Berlin",
      "business": false,
      "phone": 491721041689,
      "gridOperatorName": "E.ON Bayern AG",
      "gridOperatorCode": 1000000000000,
      "registers": [
        {}
      ],
      "erpUrls": [
        {
          "url": "https://erp-system.com/contract/123",
          "logo": "powercloud"
        }
      ],
      "rawData": null,
      "agentPreview": [
        {
          "label": "Tarif",
          "value": "Flex 24",
          "tooltip": "AP: 28.5 ct/kWh\nGP: 149.88 €/Jahr",
          "url": "https://erp.example.com/contract/123"
        }
      ],
      "tabPreview": {
        "color": "green",
        "icon": "electricity"
      }
    }
  }
]

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Query Parameters

contractId
integer

The ID of the contract, e.g. 829211

customerId
integer

The ID of the customer, e.g. 101020120

firstname
string

The first name to search for, e.g. John

lastname
string

The last name to search for, e.g. Smith

fullname
string

The full name to search for, e.g. John Smith

birthday
string

The birthday to search for, e.g. 1980-01-01

company
string

The company to search for, e.g. enneo GmbH

email
string

The email to search for, e.g. john@smith.com

meterNumber
string

The meter number to search for, e.g. 1ESY1160669167

address
string

The address to search for. Format is e.g. Eppendorfer Landstr. 32, 20249 Hamburg

postalCode
string

The postal code to search for, e.g. 20249

city
string

The city to search for, e.g. Hamburg

includeRawData
boolean
default:
false

If yes, then the raw source data coming from the ERP is included in the response

Response

200
application/json
Successful operation
id
integer
similarity
number

How well the contract fits to the search parameters. Exact match on contractId always returns 1 (=100%)

contract
object

A contract of a customer. Either electricity or gas. IDs match the backend system (powercloud)