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
import Foundation
import ServiceStack

/**
* Import bedrijf record vanuit 4PS
*/
// @Api(Description="Import bedrijf record vanuit 4PS")
public class IDB_4PSBC_Import_Bedrijf : Codable
{
    /**
    * Message header
    */
    // @ApiMember(Description="Message header", IsRequired=true)
    public var header:Header

    /**
    * Message data
    */
    // @ApiMember(Description="Message data", IsRequired=true)
    public var data:Data_Company

    required public init(){}
}

public class Header : Codable
{
    /**
    * Inhoud van het bericht
    */
    // @ApiMember(Description="Inhoud van het bericht")
    public var contains:String

    /**
    * Datum aanmaak bericht
    */
    // @ApiMember(Description="Datum aanmaak bericht")
    public var date:String

    /**
    * ID voor het bericht
    */
    // @ApiMember(Description="ID voor het bericht")
    public var messageID:String

    /**
    * Verzender van het bericht
    */
    // @ApiMember(Description="Verzender van het bericht")
    public var sender:String

    required public init(){}
}

public class Data_Company : Codable
{
    public var visitAddress:String
    public var visitAddress2:String
    public var vatRegistrationNo:String
    public var vendorNo:String
    public var customerNo:String
    public var eMail:String
    public var companyName4ps:String
    public var systemId:String?
    public var digiOfficeId:String?
    public var cocRegistrationNo:String
    public var cocLocationNo:String
    public var cocCity:String
    public var visitAddressCountryRegionId:String
    public var countryRegionId:String
    public var countryRegionCodeId:String
    public var mobilePhoneNo:String
    public var name:String
    public var name2:String
    public var visitAddressCity:String
    public var city:String
    public var address:String
    public var visitAddressPostCode:String
    public var postCode:String
    public var phoneNo:String
    public var phoneNo2:String
    public var homePage:String
    public var no:String
    public var companyId:String?
    public var blocked:Bool?
    public var nameAbbreviation:String

    required public init(){}
}

public class IDB_4PSBC_Response_Bedrijf : Codable
{
    /**
    * Header of the response
    */
    // @ApiMember(Description="Header of the response", IsRequired=true)
    public var header:Header

    /**
    * Response body
    */
    // @ApiMember(Description="Response body", IsRequired=true)
    public var response:Response_Company

    required public init(){}
}

public class Response_Company : Codable
{
    /**
    * Reponse status (Ok/Error)
    */
    // @ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
    public var status:String

    /**
    * Errors summary
    */
    // @ApiMember(Description="Errors summary")
    public var errors:String

    /**
    * ID of the company in DigiOffice
    */
    // @ApiMember(Description="ID of the company in DigiOffice", IsRequired=true)
    public var digiOfficeCompanyID:String

    /**
    * GlobalID (digiOfficeId) of the company in DigiOffice
    */
    // @ApiMember(Description="GlobalID (digiOfficeId) of the company in DigiOffice", IsRequired=true)
    public var digiOfficeGlobalID:String

    required public init(){}
}


Swift IDB_4PSBC_Import_Bedrijf DTOs

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

HTTP + OTHER

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: text/jsonl
Content-Type: text/jsonl
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: text/jsonl
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"}}