DigiOffice Gateway Web Services

<back to all web services

IDB_4PSBC_Import_Bouwnummer

Import bouwnummer record vanuit 4PS

Requires Authentication
The following routes are available for this service:
POST/api/4PSBC/ImportBouwnummer
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Header:
    # @ApiMember(Description="Inhoud van het bericht")
    contains: Optional[str] = None
    """
    Inhoud van het bericht
    """


    # @ApiMember(Description="Datum aanmaak bericht")
    date: Optional[str] = None
    """
    Datum aanmaak bericht
    """


    # @ApiMember(Description="ID voor het bericht")
    message_i_d: Optional[str] = None
    """
    ID voor het bericht
    """


    # @ApiMember(Description="Verzender van het bericht")
    sender: Optional[str] = None
    """
    Verzender van het bericht
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Response_Bouwnummer:
    # @ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
    status: Optional[str] = None
    """
    Reponse status (Ok/Error)
    """


    # @ApiMember(Description="Errors summary")
    errors: Optional[str] = None
    """
    Errors summary
    """


    # @ApiMember(Description="ID of the bouwnummer in DigiOffice", IsRequired=true)
    digi_office_bouwnummer_i_d: Optional[str] = None
    """
    ID of the bouwnummer in DigiOffice
    """


    # @ApiMember(Description="GlobalID (digiOfficeId) of the bouwnummer in DigiOffice", IsRequired=true)
    digi_office_global_i_d: Optional[str] = None
    """
    GlobalID (digiOfficeId) of the bouwnummer in DigiOffice
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class IDB_4PSBC_Response_Bouwnummer:
    # @ApiMember(Description="Header of the response", IsRequired=true)
    header: Optional[Header] = None
    """
    Header of the response
    """


    # @ApiMember(Description="Response body", IsRequired=true)
    response: Optional[Response_Bouwnummer] = None
    """
    Response body
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Data_Bouwnummer:
    system_id: Optional[str] = None
    digi_office_id: Optional[str] = None
    project_id: Optional[str] = None
    plot_no: Optional[str] = None
    address: Optional[str] = None
    address2: Optional[str] = None
    post_code: Optional[str] = None
    city: Optional[str] = None
    country_region_id: Optional[str] = None
    system_modified_by: Optional[str] = None
    company_name4ps: Optional[str] = None


# @Api(Description="Import bouwnummer record vanuit 4PS")
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class IDB_4PSBC_Import_Bouwnummer:
    """
    Import bouwnummer record vanuit 4PS
    """

    # @ApiMember(Description="Message header", IsRequired=true)
    header: Optional[Header] = None
    """
    Message header
    """


    # @ApiMember(Description="Message data", IsRequired=true)
    data: Optional[Data_Bouwnummer] = None
    """
    Message data
    """

Python IDB_4PSBC_Import_Bouwnummer DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/4PSBC/ImportBouwnummer HTTP/1.1 
Host: dogw.klokgroep.nl 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<IDB_4PSBC_Import_Bouwnummer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DO.Synchronization.IDB_4PSBC.DTO">
  <Data>
    <address>String</address>
    <address2>String</address2>
    <city>String</city>
    <companyName4ps>String</companyName4ps>
    <countryRegionId>String</countryRegionId>
    <digiOfficeId>00000000-0000-0000-0000-000000000000</digiOfficeId>
    <plotNo>String</plotNo>
    <postCode>String</postCode>
    <projectId>00000000-0000-0000-0000-000000000000</projectId>
    <systemId>00000000-0000-0000-0000-000000000000</systemId>
    <systemModifiedBy>String</systemModifiedBy>
  </Data>
  <Header>
    <Contains>String</Contains>
    <Date>String</Date>
    <MessageID>String</MessageID>
    <Sender>String</Sender>
  </Header>
</IDB_4PSBC_Import_Bouwnummer>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<IDB_4PSBC_Response_Bouwnummer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DO.Synchronization.IDB_4PSBC.DTO">
  <Header>
    <Contains>String</Contains>
    <Date>String</Date>
    <MessageID>String</MessageID>
    <Sender>String</Sender>
  </Header>
  <Response>
    <DigiOfficeBouwnummerID>String</DigiOfficeBouwnummerID>
    <DigiOfficeGlobalID>00000000-0000-0000-0000-000000000000</DigiOfficeGlobalID>
    <Errors>String</Errors>
    <Status>String</Status>
  </Response>
</IDB_4PSBC_Response_Bouwnummer>