Closed EinarArro closed 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": []
}
}
``
Steps