Server

<back to all web services

GetCustomersWithObjekte

Requires Authentication
The following routes are available for this service:
GET/CustomersObjekte
"use strict";
export class CustomerAddress {
    /** @param {{AdresseGuid?:string,IstPrimaer?:boolean,AdressTypBezeichnung?:string,AdressTyp?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    AdresseGuid;
    /** @type {boolean} */
    IstPrimaer;
    /** @type {string} */
    AdressTypBezeichnung;
    /** @type {string} */
    AdressTyp;
}
export class CustomerObjekt {
    /** @param {{Guid?:string,ZeitraumVon?:string,ZeitraumBis?:string,IstKunde?:boolean,IstEigent_mer?:boolean,IstEigent_merPseudo?:boolean,ObjektGuid?:string,KundeGuid?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {string} */
    ZeitraumVon;
    /** @type {?string} */
    ZeitraumBis;
    /** @type {boolean} */
    IstKunde;
    /** @type {boolean} */
    IstEigent_mer;
    /** @type {boolean} */
    IstEigent_merPseudo;
    /** @type {string} */
    ObjektGuid;
    /** @type {string} */
    KundeGuid;
}
export class Customer {
    /** @param {{Guid?:string,Name1?:string,Name2?:string,Name3?:string,Kundennummer?:string,Anrede?:string,KundenAdressen?:CustomerAddress[],KundenObjekte?:CustomerObjekt[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {string} */
    Name1;
    /** @type {string} */
    Name2;
    /** @type {string} */
    Name3;
    /** @type {string} */
    Kundennummer;
    /** @type {string} */
    Anrede;
    /** @type {CustomerAddress[]} */
    KundenAdressen;
    /** @type {CustomerObjekt[]} */
    KundenObjekte;
}
export class Objekt {
    /** @param {{Guid?:string,Objektnummer?:string,IstAbgeschlossen?:string,Uvi?:string,IsUviDisabled?:string,AbgeschlossenDatum?:string,AdressGuid?:string,AnmerkungKundenportal?:string,KundenportalMarkedDone?:boolean,MarkedDoneAt?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Guid;
    /** @type {string} */
    Objektnummer;
    /** @type {string} */
    IstAbgeschlossen;
    /** @type {string} */
    Uvi;
    /** @type {string} */
    IsUviDisabled;
    /** @type {?string} */
    AbgeschlossenDatum;
    /** @type {string} */
    AdressGuid;
    /** @type {string} */
    AnmerkungKundenportal;
    /** @type {boolean} */
    KundenportalMarkedDone;
    /** @type {?string} */
    MarkedDoneAt;
}
export class GetCustomersWithObjekteResponse {
    /** @param {{responseStatus?:ResponseStatus,kunden?:Customer[],objekte?:Objekt[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    responseStatus;
    /** @type {Customer[]} */
    kunden;
    /** @type {Objekt[]} */
    objekte;
}
export class GetCustomersWithObjekte {
    /** @param {{KundenGuids?:string[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string[]} */
    KundenGuids;
}

JavaScript GetCustomersWithObjekte 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.

GET /CustomersObjekte HTTP/1.1 
Host: eca-abrechnungsservice-servdesk.eras-online.de 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetCustomersWithObjekteResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Customers">
  <Kunden xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Models">
    <d2p1:Customer>
      <d2p1:Anrede>String</d2p1:Anrede>
      <d2p1:Guid>String</d2p1:Guid>
      <d2p1:KundenAdressen>
        <d2p1:CustomerAddress>
          <d2p1:AdressTyp>String</d2p1:AdressTyp>
          <d2p1:AdressTypBezeichnung>String</d2p1:AdressTypBezeichnung>
          <d2p1:AdresseGuid>String</d2p1:AdresseGuid>
          <d2p1:IstPrimaer>false</d2p1:IstPrimaer>
        </d2p1:CustomerAddress>
      </d2p1:KundenAdressen>
      <d2p1:KundenObjekte>
        <d2p1:CustomerObjekt>
          <d2p1:Guid>String</d2p1:Guid>
          <d2p1:IstEigentümer>false</d2p1:IstEigentümer>
          <d2p1:IstEigentümerPseudo>false</d2p1:IstEigentümerPseudo>
          <d2p1:IstKunde>false</d2p1:IstKunde>
          <d2p1:KundeGuid>String</d2p1:KundeGuid>
          <d2p1:ObjektGuid>String</d2p1:ObjektGuid>
          <d2p1:ZeitraumBis>0001-01-01T00:00:00</d2p1:ZeitraumBis>
          <d2p1:ZeitraumVon>0001-01-01T00:00:00</d2p1:ZeitraumVon>
        </d2p1:CustomerObjekt>
      </d2p1:KundenObjekte>
      <d2p1:Kundennummer>String</d2p1:Kundennummer>
      <d2p1:Name1>String</d2p1:Name1>
      <d2p1:Name2>String</d2p1:Name2>
      <d2p1:Name3>String</d2p1:Name3>
    </d2p1:Customer>
  </Kunden>
  <Objekte xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Models">
    <d2p1:Objekt>
      <d2p1:AbgeschlossenDatum>0001-01-01T00:00:00</d2p1:AbgeschlossenDatum>
      <d2p1:AdressGuid>String</d2p1:AdressGuid>
      <d2p1:AnmerkungKundenportal>String</d2p1:AnmerkungKundenportal>
      <d2p1:Guid>String</d2p1:Guid>
      <d2p1:IsUviDisabled>String</d2p1:IsUviDisabled>
      <d2p1:IstAbgeschlossen>String</d2p1:IstAbgeschlossen>
      <d2p1:KundenportalMarkedDone>false</d2p1:KundenportalMarkedDone>
      <d2p1:MarkedDoneAt>0001-01-01T00:00:00</d2p1:MarkedDoneAt>
      <d2p1:Objektnummer>String</d2p1:Objektnummer>
      <d2p1:Uvi>String</d2p1:Uvi>
    </d2p1:Objekt>
  </Objekte>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</GetCustomersWithObjekteResponse>