DigiOffice Gateway Web Services

<back to all web services

IDB_4PSBC_Import_Bedrijf

Import bedrijf record vanuit 4PS

Requires Authentication
The following routes are available for this service:
POST/api/4PSBC/ImportBedrijf
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports DO.Synchronization.IDB_4PSBC.DTO

Namespace Global

    Namespace DO.Synchronization.IDB_4PSBC.DTO

        Public Partial Class Data_Company
            Public Overridable Property visitAddress As String
            Public Overridable Property visitAddress2 As String
            Public Overridable Property vatRegistrationNo As String
            Public Overridable Property vendorNo As String
            Public Overridable Property customerNo As String
            Public Overridable Property eMail As String
            Public Overridable Property companyName4ps As String
            Public Overridable Property systemId As Guid?
            Public Overridable Property digiOfficeId As Guid?
            Public Overridable Property cocRegistrationNo As String
            Public Overridable Property cocLocationNo As String
            Public Overridable Property cocCity As String
            Public Overridable Property visitAddressCountryRegionId As String
            Public Overridable Property countryRegionId As String
            Public Overridable Property countryRegionCodeId As String
            Public Overridable Property mobilePhoneNo As String
            Public Overridable Property name As String
            Public Overridable Property name2 As String
            Public Overridable Property visitAddressCity As String
            Public Overridable Property city As String
            Public Overridable Property address As String
            Public Overridable Property visitAddressPostCode As String
            Public Overridable Property postCode As String
            Public Overridable Property phoneNo As String
            Public Overridable Property phoneNo2 As String
            Public Overridable Property homePage As String
            Public Overridable Property no As String
            Public Overridable Property companyId As Guid?
            Public Overridable Property blocked As Boolean?
            Public Overridable Property nameAbbreviation As String
        End Class

        Public Partial Class Header
            '''<Summary>
            '''Inhoud van het bericht
            '''</Summary>
            <ApiMember(Description:="Inhoud van het bericht")>
            Public Overridable Property Contains As String

            '''<Summary>
            '''Datum aanmaak bericht
            '''</Summary>
            <ApiMember(Description:="Datum aanmaak bericht")>
            Public Overridable Property [Date] As String

            '''<Summary>
            '''ID voor het bericht
            '''</Summary>
            <ApiMember(Description:="ID voor het bericht")>
            Public Overridable Property MessageID As String

            '''<Summary>
            '''Verzender van het bericht
            '''</Summary>
            <ApiMember(Description:="Verzender van het bericht")>
            Public Overridable Property Sender As String
        End Class

        '''<Summary>
        '''Import bedrijf record vanuit 4PS
        '''</Summary>
        <Api(Description:="Import bedrijf record vanuit 4PS")>
        Public Partial Class IDB_4PSBC_Import_Bedrijf
            '''<Summary>
            '''Message header
            '''</Summary>
            <ApiMember(Description:="Message header", IsRequired:=true)>
            Public Overridable Property Header As Header

            '''<Summary>
            '''Message data
            '''</Summary>
            <ApiMember(Description:="Message data", IsRequired:=true)>
            Public Overridable Property Data As Data_Company
        End Class

        Public Partial Class IDB_4PSBC_Response_Bedrijf
            '''<Summary>
            '''Header of the response
            '''</Summary>
            <ApiMember(Description:="Header of the response", IsRequired:=true)>
            Public Overridable Property Header As Header

            '''<Summary>
            '''Response body
            '''</Summary>
            <ApiMember(Description:="Response body", IsRequired:=true)>
            Public Overridable Property Response As Response_Company
        End Class

        Public Partial Class Response_Company
            '''<Summary>
            '''Reponse status (Ok/Error)
            '''</Summary>
            <ApiMember(Description:="Reponse status (Ok/Error)", IsRequired:=true)>
            Public Overridable Property Status As String

            '''<Summary>
            '''Errors summary
            '''</Summary>
            <ApiMember(Description:="Errors summary")>
            Public Overridable Property Errors As String

            '''<Summary>
            '''ID of the company in DigiOffice
            '''</Summary>
            <ApiMember(Description:="ID of the company in DigiOffice", IsRequired:=true)>
            Public Overridable Property DigiOfficeCompanyID As String

            '''<Summary>
            '''GlobalID (digiOfficeId) of the company in DigiOffice
            '''</Summary>
            <ApiMember(Description:="GlobalID (digiOfficeId) of the company in DigiOffice", IsRequired:=true)>
            Public Overridable Property DigiOfficeGlobalID As Guid
        End Class
    End Namespace
End Namespace

VB.NET IDB_4PSBC_Import_Bedrijf DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Data":{"visitAddress":"String","visitAddress2":"String","vatRegistrationNo":"String","vendorNo":"String","customerNo":"String","eMail":"String","companyName4ps":"String","systemId":"00000000-0000-0000-0000-000000000000","digiOfficeId":"00000000-0000-0000-0000-000000000000","cocRegistrationNo":"String","cocLocationNo":"String","cocCity":"String","visitAddressCountryRegionId":"String","countryRegionId":"String","countryRegionCodeId":"String","mobilePhoneNo":"String","name":"String","name2":"String","visitAddressCity":"String","city":"String","address":"String","visitAddressPostCode":"String","postCode":"String","phoneNo":"String","phoneNo2":"String","homePage":"String","no":"String","companyId":"00000000-0000-0000-0000-000000000000","blocked":false,"nameAbbreviation":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Response":{"Status":"String","Errors":"String","DigiOfficeCompanyID":"String","DigiOfficeGlobalID":"00000000-0000-0000-0000-000000000000"}}