Elering / estfeed-datahub-docs

Estfeed Datahub Documentation
0 stars 0 forks source link

[EDH-2271] /meter/search/customer returns "opp.error.technical.general" if "legalConsent": true while searching by physical person's EIC #7

Closed EinarArro closed 5 months ago

EinarArro commented 5 months ago

Steps

EinarArro commented 5 months ago

Message:

{
  "marketParticipantContext": {
    "marketParticipantIdentification": "38X-EIN-ALL----B",
    "marketParticipantRole": "GRID_OPERATOR",
    "commodityType": "ELECTRICITY"
  },
  "customerEic": [
    "38X-AVP-ZW6700C6"
  ],
  "legalConsent": true
}

Now returns proper error:


{
  "id": "414ece45-361c-4b89-9798-bc0792c93841",
  "cause": {
    "message": "Legal consent can only be given, when the customer's business object type is legal person or organization",
    "code": "opp.error.business.legal-consent-is-not-required-for-the-given-customer",
    "traceId": "dfadf0da287b4d0d89322b600d591a62",
    "args": []
  }
}

``