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 java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


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

    /**
    * Message data
    */
    @ApiMember(Description="Message data", IsRequired=true)
    open var Data:Data_Company? = null
}

open class Header
{
    /**
    * Inhoud van het bericht
    */
    @ApiMember(Description="Inhoud van het bericht")
    open var Contains:String? = null

    /**
    * Datum aanmaak bericht
    */
    @ApiMember(Description="Datum aanmaak bericht")
    open var Date:String? = null

    /**
    * ID voor het bericht
    */
    @ApiMember(Description="ID voor het bericht")
    open var MessageID:String? = null

    /**
    * Verzender van het bericht
    */
    @ApiMember(Description="Verzender van het bericht")
    open var Sender:String? = null
}

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

open class IDB_4PSBC_Response_Bedrijf
{
    /**
    * Header of the response
    */
    @ApiMember(Description="Header of the response", IsRequired=true)
    open var Header:Header? = null

    /**
    * Response body
    */
    @ApiMember(Description="Response body", IsRequired=true)
    open var Response:Response_Company? = null
}

open class Response_Company
{
    /**
    * Reponse status (Ok/Error)
    */
    @ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
    open var Status:String? = null

    /**
    * Errors summary
    */
    @ApiMember(Description="Errors summary")
    open var Errors:String? = null

    /**
    * ID of the company in DigiOffice
    */
    @ApiMember(Description="ID of the company in DigiOffice", IsRequired=true)
    open var DigiOfficeCompanyID:String? = null

    /**
    * GlobalID (digiOfficeId) of the company in DigiOffice
    */
    @ApiMember(Description="GlobalID (digiOfficeId) of the company in DigiOffice", IsRequired=true)
    open var DigiOfficeGlobalID:UUID? = null
}

Kotlin IDB_4PSBC_Import_Bedrijf DTOs

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

HTTP + JSV

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: dogw.klokgroep.nl 
Accept: text/jsv
Content-Type: text/jsv
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/jsv
Content-Length: length

{
	Header: 
	{
		Contains: String,
		Date: String,
		MessageID: String,
		Sender: String
	},
	Response: 
	{
		Status: String,
		Errors: String,
		DigiOfficeCompanyID: String
	}
}