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

GezagPersoonBeperkt: requesting adressering fields with fields/fields alias

#language: en

Feature: GezagPersoonBeperkt: requesting adressering fields with fields/fields alias

  When a consumer of the BRP API is not authorized to query the address line fields for a residence abroad
  Then the consumer must use the adresseringBinnenland fields alias to indicate that it is requesting address line fields for a domestic residence

  Rule: the 'adresseringBinnenland' fields alias must be used by a consumer that is not authorized to request address lines belonging to a residence abroad

    Scenario: the consumer is not authorized for 'adressering buitenland' and uses the fields alias to request all address line fields of an address by their full path
      Given the consumer with indication '000008' is authorized for 'adressering binnenland' data
      And the person with citizen service number '000000097' has the following 'verblijfplaats' data
      | naam                  | waarde |
      | functie adres (10.10) | W      |
      And the 'verblijfplaats' has the following 'adres' data
      | naam                                     | waarde           |
      | gemeentecode (92.10)                     | 0518             |
      | straatnaam (11.10)                       | Borgesiusstraat  |
      | huisnummer (11.20)                       | 103              |
      | postcode (11.60)                         | 2497BV           |
      | woonplaats (11.70)                       | Scheveningen     |
      | identificatiecode verblijfplaats (11.80) | 0599010051001502 |
      When persons are searched with the following parameters
      | naam                             | waarde                                                              |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie                             |
      | adresseerbaarObjectIdentificatie | 0599010051001502                                                    |
      | fields                           | adresseringBinnenland.adresregel1,adresseringBinnenland.adresregel2 |
      Then the response has a person with the following 'adressering' data
      | naam        | waarde                |
      | adresregel1 | Borgesiusstraat 103   |
      | adresregel2 | 2497 BV  SCHEVENINGEN |