Elering / estfeed-datahub-docs

Estfeed Datahub Documentation
0 stars 0 forks source link

[EDH-2402] "validFrom is not a valid property" while adding new Customer #20

Closed EinarArro closed 1 month ago

EinarArro commented 2 months ago

Description

By the Swagger schema validFrom and validTo are valid attributes, while adding a new customer But when trying to add a customer and passing those attributes, I get an error

Request

{
  "marketParticipantContext": {
    "marketParticipantIdentification": "38X-EIN-ALL----B",
    "marketParticipantRole": "GRID_OPERATOR",
    "commodityType": "ELECTRICITY"
  },
  "customer": {
    "customerType": "PHYSICAL_PERSON",
    "customerMetadata": [
      {
        "metadataType": "FIRST_NAME",
        "metadataValue": "Einari",
        "validFrom": "2024-05-08T15:12:52.172148+03:00",
        "validTo": null
      },
      {
        "metadataType": "LAST_NAME",
        "metadataValue": "Arrori",
        "validFrom": "2024-05-08T15:12:52.172148+03:00",
        "validTo": null
      }
    ],
    "customerIdentities": [
      {
        "identityType": "PERSONAL_ID",
        "identityValue": "38210245217",
        "identityExtension": null
      }
    ]
  }
}

Response

{
  "id": "71d4c237-fb44-4a2a-87a3-5215cd142d64",
  "cause": {
    "message": "validFrom is not a valid property",
    "code": "opp.error.validation.unparseable-field",
    "traceId": "16bca5034fa74105b1b74837b527ccfc",
    "args": [
      "validFrom"
    ]
  }
}