HAALCENTRAAL English translation
BRP API / Personen / Features / fields-gba

requesting verificatie fields with fields (Persoon)

#language: en

@gba
Feature: requesting verificatie fields with fields (Persoon)

    Background:
      Given the person with citizen service number '000000152' has the following 'inschrijving' data
      | naam                             | waarde               |
      | datum verificatie (71.10)        | 20020701             |
      | omschrijving verificatie (71.20) | bewijs nationaliteit |

  Rule: verificatie of the personal data is returned with every request

    Scenario Outline: the personal data has been verified and verificatie is not requested
      When gba persons are searched with the following parameters
      | naam                | waarde                          |
      | type                | RaadpleegMetBurgerservicenummer |
      | burgerservicenummer | 000000152                       |
      | fields              | <fields>                        |
      Then the response has a person with the following 'verificatie' data
      | naam         | waarde               |
      | datum        | 20020701             |
      | omschrijving | bewijs nationaliteit |

      Examples:
      | fields           |
      | naam.voorvoegsel |
      | verblijfstitel   |
      | overlijden.datum |
      | immigratie       |

  Rule: verificatie may not be requested, because it is supplied automatically

    @fout-case
    Scenario Outline: field <fields> may not be requested, because it is supplied automatically
      When gba persons are searched with the following parameters
      | naam                | waarde                          |
      | type                | RaadpleegMetBurgerservicenummer |
      | burgerservicenummer | 000000024                       |
      | fields              | <fields>                        |
      Then the response has an object with the following data
      | naam     | waarde                                                      |
      | type     | https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.1 |
      | title    | Een of meerdere parameters zijn niet correct.               |
      | status   | 400                                                         |
      | detail   | De foutieve parameter(s) zijn: fields[0].                   |
      | code     | paramsValidation                                            |
      | instance | /haalcentraal/api/brp/personen                              |
      And the object has the following 'invalidParams' data
      | code   | name      | reason                                        |
      | fields | fields[0] | Parameter bevat een niet toegestane veldnaam. |

      Examples:
      | fields                        |
      | verificatie                   |
      | verificatie.datum             |
      | verificatie.datum.type        |
      | verificatie.datum.datum       |
      | verificatie.datum.jaar        |
      | verificatie.datum.maand       |
      | verificatie.datum.onbekend    |
      | verificatie.datum.langFormaat |
      | verificatie.omschrijving      |