DigiOffice Gateway Web Services

<back to all web services

IDB_4PSBC_Import_ContactPerson

Import bedrijf record vanuit 4PS

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

namespace DO.Synchronization.IDB_4PSBC.DTO
{
    public partial class Data_ContactPerson
    {
        public virtual Guid? systemId { get; set; }
        public virtual Guid? digiOfficeId { get; set; }
        public virtual string companyName4ps { get; set; }
        public virtual string no { get; set; }
        public virtual Guid crmCompanyId { get; set; }
        public virtual Guid crmPersonId { get; set; }
        public virtual string jobTitle { get; set; }
        public virtual string phoneNo { get; set; }
        public virtual string mobilePhoneNo { get; set; }
        public virtual string eMail { get; set; }
        public virtual Guid? companyId { get; set; }
        public virtual bool? blocked { get; set; }
    }

    public partial class Header
    {
        ///<summary>
        ///Inhoud van het bericht
        ///</summary>
        [ApiMember(Description="Inhoud van het bericht")]
        public virtual string Contains { get; set; }

        ///<summary>
        ///Datum aanmaak bericht
        ///</summary>
        [ApiMember(Description="Datum aanmaak bericht")]
        public virtual string Date { get; set; }

        ///<summary>
        ///ID voor het bericht
        ///</summary>
        [ApiMember(Description="ID voor het bericht")]
        public virtual string MessageID { get; set; }

        ///<summary>
        ///Verzender van het bericht
        ///</summary>
        [ApiMember(Description="Verzender van het bericht")]
        public virtual string Sender { get; set; }
    }

    ///<summary>
    ///Import bedrijf record vanuit 4PS
    ///</summary>
    [Api(Description="Import bedrijf record vanuit 4PS")]
    public partial class IDB_4PSBC_Import_ContactPerson
    {
        ///<summary>
        ///Message header
        ///</summary>
        [ApiMember(Description="Message header", IsRequired=true)]
        public virtual Header Header { get; set; }

        ///<summary>
        ///Message data
        ///</summary>
        [ApiMember(Description="Message data", IsRequired=true)]
        public virtual Data_ContactPerson Data { get; set; }
    }

    public partial class IDB_4PSBC_Response_ContactPerson
    {
        ///<summary>
        ///Header of the response
        ///</summary>
        [ApiMember(Description="Header of the response", IsRequired=true)]
        public virtual Header Header { get; set; }

        ///<summary>
        ///Response body
        ///</summary>
        [ApiMember(Description="Response body", IsRequired=true)]
        public virtual Response_ContactPerson Response { get; set; }
    }

    public partial class Response_ContactPerson
    {
        ///<summary>
        ///Reponse status (Ok/Error)
        ///</summary>
        [ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)]
        public virtual string Status { get; set; }

        ///<summary>
        ///Errors summary
        ///</summary>
        [ApiMember(Description="Errors summary")]
        public virtual string Errors { get; set; }

        ///<summary>
        ///ID of the contactperson in DigiOffice
        ///</summary>
        [ApiMember(Description="ID of the contactperson in DigiOffice", IsRequired=true)]
        public virtual string DigiOfficeContactPersonID { get; set; }

        ///<summary>
        ///GlobalID (digiOfficeId) of the contactperson in DigiOffice
        ///</summary>
        [ApiMember(Description="GlobalID (digiOfficeId) of the contactperson in DigiOffice", IsRequired=true)]
        public virtual Guid DigiOfficeGlobalID { get; set; }
    }

}

C# IDB_4PSBC_Import_ContactPerson 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/ImportContactpersoon HTTP/1.1 
Host: dogw.klokgroep.nl 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Data":{"systemId":"00000000-0000-0000-0000-000000000000","digiOfficeId":"00000000-0000-0000-0000-000000000000","companyName4ps":"String","no":"String","crmCompanyId":"00000000-0000-0000-0000-000000000000","crmPersonId":"00000000-0000-0000-0000-000000000000","jobTitle":"String","phoneNo":"String","mobilePhoneNo":"String","eMail":"String","companyId":"00000000-0000-0000-0000-000000000000","blocked":false}}
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","DigiOfficeContactPersonID":"String","DigiOfficeGlobalID":"00000000-0000-0000-0000-000000000000"}}