BokaMera.API.Host

<back to all web services

EAccountingCustomerQuery

The following routes are available for this service:
GET/eaccounting/customers
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class EAccountingCustomerQuery : EAccountingPagination(), ICompany
{
    override var CompanyId:UUID? = null
}

open class EAccountingPagination
{
    /**
    * Page number that will be fetched to e-accounting client; Default 1
    */
    @DataMember(Order=1)
    @ApiMember(Description="Page number that will be fetched to e-accounting client; Default 1")
    open var PageNumber:Int? = null

    /**
    * Page size that will be fetched to e-accounting client; Default 75~
    */
    @DataMember(Order=2)
    @ApiMember(Description="Page size that will be fetched to e-accounting client; Default 75~")
    open var PageSize:Int? = null
}

open class EAccountingCustomerResponse : CreateEAccountingCustomer()
{
    open var Id:String? = null
}

open class CreateEAccountingCustomer : EAccountingInvoiceAddress()
{
    open var CustomerNumber:String? = null
    open var ContactPersonEmail:String? = null
    open var ContactPersonMobile:String? = null
    open var ContactPersonName:String? = null
    open var ContactPersonPhone:String? = null
    open var CurrencyCode:String? = null
    open var GLN:String? = null
    open var EmailAddress:String? = null
    open var EmailAddressOrder:String? = null
    open var EmailAddressQuote:String? = null
    open var DeliveryCustomerName:String? = null
    open var DeliveryAddress1:String? = null
    open var DeliveryAddress2:String? = null
    open var DeliveryCity:String? = null
    open var DeliveryCountryCode:String? = null
    open var DeliveryPostalCode:String? = null
    open var DeliveryMethodId:String? = null
    open var DeliveryTermId:String? = null
    open var PayToAccountId:String? = null
    open var Name:String? = null
    open var Note:String? = null
    open var ReverseChargeOnConstructionServices:Boolean? = null
    open var WebshopCustomerNumber:Int? = null
    open var MobilePhone:String? = null
    open var Telephone:String? = null
    open var TermsOfPaymentId:String? = null
    open var EAccountingTermsOfPayment:EAccountingTermsOfPayment? = null
    open var VatNumber:String? = null
    open var WwwAddress:String? = null
    open var LastInvoiceDate:String? = null
    open var IsPrivatePerson:Boolean? = null
    open var IsNorthernIreland:Boolean? = null
    open var DiscountPercentage:BigDecimal? = null
    open var ChangedUtc:Date? = null
    open var IsActive:Boolean? = null
    open var ForceBookkeepVat:Boolean? = null
    open var EdiGlnNumber:String? = null
    open var SalesDocumentLanguage:String? = null
    open var ElectronicAddress:String? = null
    open var ElectronicReference:String? = null
    open var EdiServiceDelivererId:String? = null
    open var AutoInvoiceActivationEmailSentDate:Date? = null
    open var AutoInvoiceRegistrationRequestSentDate:Date? = null
    open var EmailAddresses:ArrayList<String>? = null
    open var CustomerLabels:ArrayList<CustomerLabel>? = null
    open var MessageThreads:ArrayList<String>? = null
    open var Notes:ArrayList<String>? = null
    open var IsFutureInvoiceDateAllowed:Boolean? = null
    open var DeliveryBasedVat:Boolean? = null
    open var SalesPriceListId:String? = null
    open var Iban:String? = null
    open var DirectDebitCustomerSettings:DirectDebitCustomerSettings? = null
    open var DiscountAgreementId:String? = null
    open var UnpaidInvoicesAmount:BigDecimal? = null
}

open class EAccountingInvoiceAddress
{
    open var CorporateIdentityNumber:String? = null
    open var InvoiceAddress1:String? = null
    open var InvoiceAddress2:String? = null
    open var InvoiceCity:String? = null
    open var InvoicePostalCode:String? = null
    open var InvoiceCountryCode:String? = null
}

open class EAccountingTermsOfPayment
{
    open var Id:String? = null
    open var Name:String? = null
    open var NameEnglish:String? = null
    open var NumberOfDays:Int? = null
    open var TermsOfPaymentTypeId:Int? = null
    open var TermsOfPaymentTypeText:String? = null
    open var AvailableForSales:Boolean? = null
    open var AvailableForPurchase:Boolean? = null
}

open class CustomerLabel
{
    open var Id:String? = null
    open var Name:String? = null
    open var Description:String? = null
}

open class DirectDebitCustomerSettings
{
    open var MandateId:String? = null
    open var MandateType:Int? = null
    open var SequenceType:Int? = null
    open var SigningDate:Date? = null
    open var EndDate:Date? = null
    open var LatestDirectDebit:Date? = null
}

Kotlin EAccountingCustomerQuery 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 /eaccounting/customers HTTP/1.1 
Host: api.bookmore.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EAccountingClientDtos.EAccountingCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
  <CorporateIdentityNumber>String</CorporateIdentityNumber>
  <InvoiceAddress1>String</InvoiceAddress1>
  <InvoiceAddress2>String</InvoiceAddress2>
  <InvoiceCity>String</InvoiceCity>
  <InvoiceCountryCode>String</InvoiceCountryCode>
  <InvoicePostalCode>String</InvoicePostalCode>
  <AutoInvoiceActivationEmailSentDate>0001-01-01T00:00:00</AutoInvoiceActivationEmailSentDate>
  <AutoInvoiceRegistrationRequestSentDate>0001-01-01T00:00:00</AutoInvoiceRegistrationRequestSentDate>
  <ChangedUtc>0001-01-01T00:00:00</ChangedUtc>
  <ContactPersonEmail>String</ContactPersonEmail>
  <ContactPersonMobile>String</ContactPersonMobile>
  <ContactPersonName>String</ContactPersonName>
  <ContactPersonPhone>String</ContactPersonPhone>
  <CurrencyCode>String</CurrencyCode>
  <CustomerLabels>
    <EAccountingClientDtos.CustomerLabel>
      <Description>String</Description>
      <Id>String</Id>
      <Name>String</Name>
    </EAccountingClientDtos.CustomerLabel>
  </CustomerLabels>
  <CustomerNumber>String</CustomerNumber>
  <DeliveryAddress1>String</DeliveryAddress1>
  <DeliveryAddress2>String</DeliveryAddress2>
  <DeliveryBasedVat>false</DeliveryBasedVat>
  <DeliveryCity>String</DeliveryCity>
  <DeliveryCountryCode>String</DeliveryCountryCode>
  <DeliveryCustomerName>String</DeliveryCustomerName>
  <DeliveryMethodId>String</DeliveryMethodId>
  <DeliveryPostalCode>String</DeliveryPostalCode>
  <DeliveryTermId>String</DeliveryTermId>
  <DirectDebitCustomerSettings>
    <EndDate>0001-01-01T00:00:00</EndDate>
    <LatestDirectDebit>0001-01-01T00:00:00</LatestDirectDebit>
    <MandateId>String</MandateId>
    <MandateType>0</MandateType>
    <SequenceType>0</SequenceType>
    <SigningDate>0001-01-01T00:00:00</SigningDate>
  </DirectDebitCustomerSettings>
  <DiscountAgreementId>String</DiscountAgreementId>
  <DiscountPercentage>0</DiscountPercentage>
  <EAccountingTermsOfPayment>
    <AvailableForPurchase>false</AvailableForPurchase>
    <AvailableForSales>false</AvailableForSales>
    <Id>String</Id>
    <Name>String</Name>
    <NameEnglish>String</NameEnglish>
    <NumberOfDays>0</NumberOfDays>
    <TermsOfPaymentTypeId>0</TermsOfPaymentTypeId>
    <TermsOfPaymentTypeText>String</TermsOfPaymentTypeText>
  </EAccountingTermsOfPayment>
  <EdiGlnNumber>String</EdiGlnNumber>
  <EdiServiceDelivererId>String</EdiServiceDelivererId>
  <ElectronicAddress>String</ElectronicAddress>
  <ElectronicReference>String</ElectronicReference>
  <EmailAddress>String</EmailAddress>
  <EmailAddressOrder>String</EmailAddressOrder>
  <EmailAddressQuote>String</EmailAddressQuote>
  <EmailAddresses xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </EmailAddresses>
  <ForceBookkeepVat>false</ForceBookkeepVat>
  <GLN>String</GLN>
  <Iban>String</Iban>
  <IsActive>false</IsActive>
  <IsFutureInvoiceDateAllowed>false</IsFutureInvoiceDateAllowed>
  <IsNorthernIreland>false</IsNorthernIreland>
  <IsPrivatePerson>false</IsPrivatePerson>
  <LastInvoiceDate>String</LastInvoiceDate>
  <MessageThreads xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </MessageThreads>
  <MobilePhone>String</MobilePhone>
  <Name>String</Name>
  <Note>String</Note>
  <Notes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Notes>
  <PayToAccountId>String</PayToAccountId>
  <ReverseChargeOnConstructionServices>false</ReverseChargeOnConstructionServices>
  <SalesDocumentLanguage>String</SalesDocumentLanguage>
  <SalesPriceListId>String</SalesPriceListId>
  <Telephone>String</Telephone>
  <TermsOfPaymentId>String</TermsOfPaymentId>
  <UnpaidInvoicesAmount>0</UnpaidInvoicesAmount>
  <VatNumber>String</VatNumber>
  <WebshopCustomerNumber>0</WebshopCustomerNumber>
  <WwwAddress>String</WwwAddress>
  <Id>String</Id>
</EAccountingClientDtos.EAccountingCustomerResponse>