DigiOffice API Services 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
namespace DO.Synchronization.IDB_4PSBC.DTO

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Header() = 
        ///<summary>
        ///Inhoud van het bericht
        ///</summary>
        [<ApiMember(Description="Inhoud van het bericht")>]
        member val Contains:String = null with get,set

        ///<summary>
        ///Datum aanmaak bericht
        ///</summary>
        [<ApiMember(Description="Datum aanmaak bericht")>]
        member val Date:String = null with get,set

        ///<summary>
        ///ID voor het bericht
        ///</summary>
        [<ApiMember(Description="ID voor het bericht")>]
        member val MessageID:String = null with get,set

        ///<summary>
        ///Verzender van het bericht
        ///</summary>
        [<ApiMember(Description="Verzender van het bericht")>]
        member val Sender:String = null with get,set

    [<AllowNullLiteral>]
    type Response_Company() = 
        ///<summary>
        ///Reponse status (Ok/Error)
        ///</summary>
        [<ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)>]
        member val Status:String = null with get,set

        ///<summary>
        ///Errors summary
        ///</summary>
        [<ApiMember(Description="Errors summary")>]
        member val Errors:String = null with get,set

        ///<summary>
        ///ID of the company in DigiOffice
        ///</summary>
        [<ApiMember(Description="ID of the company in DigiOffice", IsRequired=true)>]
        member val DigiOfficeCompanyID:String = null with get,set

        ///<summary>
        ///GlobalID (digiOfficeId) of the company in DigiOffice
        ///</summary>
        [<ApiMember(Description="GlobalID (digiOfficeId) of the company in DigiOffice", IsRequired=true)>]
        member val DigiOfficeGlobalID:Guid = new Guid() with get,set

    [<AllowNullLiteral>]
    type IDB_4PSBC_Response_Bedrijf() = 
        ///<summary>
        ///Header of the response
        ///</summary>
        [<ApiMember(Description="Header of the response", IsRequired=true)>]
        member val Header:Header = null with get,set

        ///<summary>
        ///Response body
        ///</summary>
        [<ApiMember(Description="Response body", IsRequired=true)>]
        member val Response:Response_Company = null with get,set

    [<AllowNullLiteral>]
    type Data_Company() = 
        member val visitAddress:String = null with get,set
        member val visitAddress2:String = null with get,set
        member val vatRegistrationNo:String = null with get,set
        member val vendorNo:String = null with get,set
        member val customerNo:String = null with get,set
        member val eMail:String = null with get,set
        member val companyName4ps:String = null with get,set
        member val systemId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val digiOfficeId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val cocRegistrationNo:String = null with get,set
        member val cocLocationNo:String = null with get,set
        member val cocCity:String = null with get,set
        member val visitAddressCountryRegionId:String = null with get,set
        member val countryRegionId:String = null with get,set
        member val countryRegionCodeId:String = null with get,set
        member val mobilePhoneNo:String = null with get,set
        member val name:String = null with get,set
        member val name2:String = null with get,set
        member val visitAddressCity:String = null with get,set
        member val city:String = null with get,set
        member val address:String = null with get,set
        member val visitAddressPostCode:String = null with get,set
        member val postCode:String = null with get,set
        member val phoneNo:String = null with get,set
        member val phoneNo2:String = null with get,set
        member val homePage:String = null with get,set
        member val no:String = null with get,set
        member val companyId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val blocked:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val nameAbbreviation:String = null with get,set

    ///<summary>
    ///Import bedrijf record vanuit 4PS
    ///</summary>
    [<Api(Description="Import bedrijf record vanuit 4PS")>]
    [<AllowNullLiteral>]
    type IDB_4PSBC_Import_Bedrijf() = 
        ///<summary>
        ///Message header
        ///</summary>
        [<ApiMember(Description="Message header", IsRequired=true)>]
        member val Header:Header = null with get,set

        ///<summary>
        ///Message data
        ///</summary>
        [<ApiMember(Description="Message data", IsRequired=true)>]
        member val Data:Data_Company = null with get,set

F# IDB_4PSBC_Import_Bedrijf 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/ImportBedrijf HTTP/1.1 
Host: test-do-services.klokgroep.nl 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<IDB_4PSBC_Import_Bedrijf 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>
    <blocked>false</blocked>
    <city>String</city>
    <cocCity>String</cocCity>
    <cocLocationNo>String</cocLocationNo>
    <cocRegistrationNo>String</cocRegistrationNo>
    <companyId>00000000-0000-0000-0000-000000000000</companyId>
    <companyName4ps>String</companyName4ps>
    <countryRegionCodeId>String</countryRegionCodeId>
    <countryRegionId>String</countryRegionId>
    <customerNo>String</customerNo>
    <digiOfficeId>00000000-0000-0000-0000-000000000000</digiOfficeId>
    <eMail>String</eMail>
    <homePage>String</homePage>
    <mobilePhoneNo>String</mobilePhoneNo>
    <name>String</name>
    <name2>String</name2>
    <nameAbbreviation>String</nameAbbreviation>
    <no>String</no>
    <phoneNo>String</phoneNo>
    <phoneNo2>String</phoneNo2>
    <postCode>String</postCode>
    <systemId>00000000-0000-0000-0000-000000000000</systemId>
    <vatRegistrationNo>String</vatRegistrationNo>
    <vendorNo>String</vendorNo>
    <visitAddress>String</visitAddress>
    <visitAddress2>String</visitAddress2>
    <visitAddressCity>String</visitAddressCity>
    <visitAddressCountryRegionId>String</visitAddressCountryRegionId>
    <visitAddressPostCode>String</visitAddressPostCode>
  </Data>
  <Header>
    <Contains>String</Contains>
    <Date>String</Date>
    <MessageID>String</MessageID>
    <Sender>String</Sender>
  </Header>
</IDB_4PSBC_Import_Bedrijf>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<IDB_4PSBC_Response_Bedrijf 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>
    <DigiOfficeCompanyID>String</DigiOfficeCompanyID>
    <DigiOfficeGlobalID>00000000-0000-0000-0000-000000000000</DigiOfficeGlobalID>
    <Errors>String</Errors>
    <Status>String</Status>
  </Response>
</IDB_4PSBC_Response_Bedrijf>