| POST | /api/4PSBC/ImportBedrijf |
|---|
"use strict";
export class Header {
/** @param {{Contains?:string,Date?:string,MessageID?:string,Sender?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Inhoud van het bericht */
Contains;
/**
* @type {string}
* @description Datum aanmaak bericht */
Date;
/**
* @type {string}
* @description ID voor het bericht */
MessageID;
/**
* @type {string}
* @description Verzender van het bericht */
Sender;
}
export class Response_Company {
/** @param {{Status?:string,Errors?:string,DigiOfficeCompanyID?:string,DigiOfficeGlobalID?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Reponse status (Ok/Error) */
Status;
/**
* @type {string}
* @description Errors summary */
Errors;
/**
* @type {string}
* @description ID of the company in DigiOffice */
DigiOfficeCompanyID;
/**
* @type {string}
* @description GlobalID (digiOfficeId) of the company in DigiOffice */
DigiOfficeGlobalID;
}
export class IDB_4PSBC_Response_Bedrijf {
/** @param {{Header?:Header,Response?:Response_Company}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {Header}
* @description Header of the response */
Header;
/**
* @type {Response_Company}
* @description Response body */
Response;
}
export class Data_Company {
/** @param {{visitAddress?:string,visitAddress2?:string,vatRegistrationNo?:string,vendorNo?:string,customerNo?:string,eMail?:string,companyName4ps?:string,systemId?:string,digiOfficeId?:string,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?:string,blocked?:boolean,nameAbbreviation?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
visitAddress;
/** @type {string} */
visitAddress2;
/** @type {string} */
vatRegistrationNo;
/** @type {string} */
vendorNo;
/** @type {string} */
customerNo;
/** @type {string} */
eMail;
/** @type {string} */
companyName4ps;
/** @type {?string} */
systemId;
/** @type {?string} */
digiOfficeId;
/** @type {string} */
cocRegistrationNo;
/** @type {string} */
cocLocationNo;
/** @type {string} */
cocCity;
/** @type {string} */
visitAddressCountryRegionId;
/** @type {string} */
countryRegionId;
/** @type {string} */
countryRegionCodeId;
/** @type {string} */
mobilePhoneNo;
/** @type {string} */
name;
/** @type {string} */
name2;
/** @type {string} */
visitAddressCity;
/** @type {string} */
city;
/** @type {string} */
address;
/** @type {string} */
visitAddressPostCode;
/** @type {string} */
postCode;
/** @type {string} */
phoneNo;
/** @type {string} */
phoneNo2;
/** @type {string} */
homePage;
/** @type {string} */
no;
/** @type {?string} */
companyId;
/** @type {?boolean} */
blocked;
/** @type {string} */
nameAbbreviation;
}
export class IDB_4PSBC_Import_Bedrijf {
/** @param {{Header?:Header,Data?:Data_Company}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {Header}
* @description Message header */
Header;
/**
* @type {Data_Company}
* @description Message data */
Data;
}
JavaScript 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
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>