BokaMera.API.Host

<back to all web services

EAccountingCustomerQuery

The following routes are available for this service:
GET/eaccounting/customers
namespace BokaMera.API.ServiceModel.Dtos

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type InvoiceAddress() = 
        member val CorporateIdentityNumber:String = null with get,set
        member val InvoiceAddress1:String = null with get,set
        member val InvoiceAddress2:String = null with get,set
        member val InvoiceCity:String = null with get,set
        member val InvoicePostalCode:String = null with get,set
        member val InvoiceCountryCode:String = null with get,set

    [<AllowNullLiteral>]
    type EAccountingTermsOfPayment() = 
        member val Id:String = null with get,set
        member val Name:String = null with get,set
        member val NameEnglish:String = null with get,set
        member val NumberOfDays:Int32 = new Int32() with get,set
        member val TermsOfPaymentTypeId:Int32 = new Int32() with get,set
        member val TermsOfPaymentTypeText:String = null with get,set
        member val AvailableForSales:Boolean = new Boolean() with get,set
        member val AvailableForPurchase:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type CustomerLabel() = 
        member val Id:String = null with get,set
        member val Name:String = null with get,set
        member val Description:String = null with get,set

    [<AllowNullLiteral>]
    type DirectDebitCustomerSettings() = 
        member val MandateId:String = null with get,set
        member val MandateType:Int32 = new Int32() with get,set
        member val SequenceType:Int32 = new Int32() with get,set
        member val SigningDate:DateTime = new DateTime() with get,set
        member val EndDate:DateTime = new DateTime() with get,set
        member val LatestDirectDebit:DateTime = new DateTime() with get,set

    [<AllowNullLiteral>]
    type CreateEAccountingCustomer() = 
        inherit InvoiceAddress()
        member val CustomerNumber:String = null with get,set
        member val ContactPersonEmail:String = null with get,set
        member val ContactPersonMobile:String = null with get,set
        member val ContactPersonName:String = null with get,set
        member val ContactPersonPhone:String = null with get,set
        member val CurrencyCode:String = null with get,set
        member val GLN:String = null with get,set
        member val EmailAddress:String = null with get,set
        member val EmailAddressOrder:String = null with get,set
        member val EmailAddressQuote:String = null with get,set
        member val DeliveryCustomerName:String = null with get,set
        member val DeliveryAddress1:String = null with get,set
        member val DeliveryAddress2:String = null with get,set
        member val DeliveryCity:String = null with get,set
        member val DeliveryCountryCode:String = null with get,set
        member val DeliveryPostalCode:String = null with get,set
        member val DeliveryMethodId:String = null with get,set
        member val DeliveryTermId:String = null with get,set
        member val PayToAccountId:String = null with get,set
        member val Name:String = null with get,set
        member val Note:String = null with get,set
        member val ReverseChargeOnConstructionServices:Boolean = new Boolean() with get,set
        member val WebshopCustomerNumber:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val MobilePhone:String = null with get,set
        member val Telephone:String = null with get,set
        member val TermsOfPaymentId:String = null with get,set
        member val EAccountingTermsOfPayment:EAccountingTermsOfPayment = null with get,set
        member val VatNumber:String = null with get,set
        member val WwwAddress:String = null with get,set
        member val LastInvoiceDate:String = null with get,set
        member val IsPrivatePerson:Boolean = new Boolean() with get,set
        member val IsNorthernIreland:Boolean = new Boolean() with get,set
        member val DiscountPercentage:Decimal = new Decimal() with get,set
        member val ChangedUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val IsActive:Boolean = new Boolean() with get,set
        member val ForceBookkeepVat:Boolean = new Boolean() with get,set
        member val EdiGlnNumber:String = null with get,set
        member val SalesDocumentLanguage:String = null with get,set
        member val ElectronicAddress:String = null with get,set
        member val ElectronicReference:String = null with get,set
        member val EdiServiceDelivererId:String = null with get,set
        member val AutoInvoiceActivationEmailSentDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val AutoInvoiceRegistrationRequestSentDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val EmailAddresses:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val CustomerLabels:ResizeArray<CustomerLabel> = new ResizeArray<CustomerLabel>() with get,set
        member val MessageThreads:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val Notes:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val IsFutureInvoiceDateAllowed:Boolean = new Boolean() with get,set
        member val DeliveryBasedVat:Boolean = new Boolean() with get,set
        member val SalesPriceListId:String = null with get,set
        member val Iban:String = null with get,set
        member val DirectDebitCustomerSettings:DirectDebitCustomerSettings = null with get,set
        member val DiscountAgreementId:String = null with get,set
        member val UnpaidInvoicesAmount:Decimal = new Decimal() with get,set

    [<AllowNullLiteral>]
    type EAccountingCustomerResponse() = 
        inherit CreateEAccountingCustomer()
        member val Id:String = null with get,set

    [<AllowNullLiteral>]
    type EAccountingPagination() = 
        ///<summary>
        ///Page number that will be fetched to e-accounting client; Default 1
        ///</summary>
        [<DataMember(Order=1)>]
        [<ApiMember(Description="Page number that will be fetched to e-accounting client; Default 1")>]
        member val PageNumber:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///Page size that will be fetched to e-accounting client; Default 75~
        ///</summary>
        [<DataMember(Order=2)>]
        [<ApiMember(Description="Page size that will be fetched to e-accounting client; Default 75~")>]
        member val PageSize:Nullable<Int32> = new Nullable<Int32>() with get,set

    [<AllowNullLiteral>]
    type EAccountingCustomerQuery() = 
        inherit EAccountingPagination()
        member val CompanyId:Nullable<Guid> = new Nullable<Guid>() with get,set

F# 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.bokamera.se 
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>