BokaMera.API.Host

<back to all web services

UpdateVossInvoiceConfigurations

Requires Authentication
Requires the role:superadmin
The following routes are available for this service:
GET/voss/invoiceConfigurationsinit voss invoice
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BokaMera.API.ServiceModel.Dtos;
using VossIntegration.ApiTools.Model;

namespace BokaMera.API.ServiceModel.Dtos
{
    [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
    public partial class UpdateVossInvoiceConfigurations
        : UpdateInvoiceConfigurationsRequest
    {
    }

}

namespace VossIntegration.ApiTools.Model
{
    [DataContract(Name="TimeLengthRequestDto")]
    public partial class TimeLengthRequestDto
    {
        [DataMember(Name="unit", IsRequired=true)]
        public virtual UnitEnum Unit { get; set; }

        [DataMember(Name="value", IsRequired=true)]
        public virtual int Value { get; set; }
        public enum UnitEnum
        {
            Day = 1,
            Month = 2,
            Year = 3,
        }

    }

    [DataContract(Name="UpdateInvoiceConfigurationsRequest")]
    public partial class UpdateInvoiceConfigurationsRequest
    {
        [DataMember(Name="intermediaryPlacement", IsRequired=true)]
        public virtual IntermediaryPlacementEnum IntermediaryPlacement { get; set; }

        [DataMember(Name="accrualCodeFormat", IsRequired=true)]
        public virtual AccrualCodeFormatEnum AccrualCodeFormat { get; set; }

        [DataMember(Name="dateFormat", IsRequired=true)]
        public virtual string DateFormat { get; set; }

        [DataMember(Name="delimiter", IsRequired=true)]
        public virtual string Delimiter { get; set; }

        [DataMember(Name="decimalSeparator", IsRequired=true)]
        public virtual string DecimalSeparator { get; set; }

        [DataMember(Name="orderCreatorCode", IsRequired=true)]
        public virtual string OrderCreatorCode { get; set; }

        [DataMember(Name="salesPersonId", IsRequired=true)]
        public virtual string SalesPersonId { get; set; }

        [DataMember(Name="salesDepartmentId", IsRequired=true)]
        public virtual string SalesDepartmentId { get; set; }

        [DataMember(Name="includeBillingPeriodDates")]
        public virtual bool IncludeBillingPeriodDates { get; set; }

        [DataMember(Name="trackInvoicePayments")]
        public virtual bool TrackInvoicePayments { get; set; }

        [DataMember(Name="includeInvoicedCustomerDetails")]
        public virtual bool IncludeInvoicedCustomerDetails { get; set; }

        [DataMember(Name="billingPeriodTextFormat", IsRequired=true)]
        public virtual string BillingPeriodTextFormat { get; set; }

        [DataMember(Name="customerFooterText")]
        public virtual string CustomerFooterText { get; set; }

        [DataMember(Name="addEmptyLineBeforeCustomerFooter")]
        public virtual bool AddEmptyLineBeforeCustomerFooter { get; set; }

        [DataMember(Name="includeOnlyDefaultSalesPersonAndDepartment")]
        public virtual bool IncludeOnlyDefaultSalesPersonAndDepartment { get; set; }

        [DataMember(Name="includeSubscriptionCustomerDetailsIfPayedByAnotherCustomer")]
        public virtual bool IncludeSubscriptionCustomerDetailsIfPayedByAnotherCustomer { get; set; }

        [DataMember(Name="transactionGroup", IsRequired=true)]
        public virtual string TransactionGroup { get; set; }

        [DataMember(Name="invoiceArbitraryNumber", IsRequired=true)]
        public virtual string InvoiceArbitraryNumber { get; set; }

        [DataMember(Name="deliveryMethod", IsRequired=true)]
        public virtual string DeliveryMethod { get; set; }

        [DataMember(Name="deliveryConditions", IsRequired=true)]
        public virtual string DeliveryConditions { get; set; }

        [DataMember(Name="orderType", IsRequired=true)]
        public virtual string OrderType { get; set; }

        [DataMember(Name="invoiceStatus", IsRequired=true)]
        public virtual string InvoiceStatus { get; set; }

        [DataMember(Name="useProductGroupRevenueRecognition")]
        public virtual bool UseProductGroupRevenueRecognition { get; set; }

        [DataMember(Name="productGroupLineExcludePrint", IsRequired=true)]
        public virtual string ProductGroupLineExcludePrint { get; set; }

        [DataMember(Name="productGroupLineEditPreferences", IsRequired=true)]
        public virtual string ProductGroupLineEditPreferences { get; set; }

        [DataMember(Name="productLineExcludePrint", IsRequired=true)]
        public virtual string ProductLineExcludePrint { get; set; }

        [DataMember(Name="useDiscountedPrices")]
        public virtual bool UseDiscountedPrices { get; set; }

        [DataMember(Name="terminateUnpaidSubscriptions")]
        public virtual bool TerminateUnpaidSubscriptions { get; set; }

        [DataMember(Name="allowedUnpaidAmountLimit", EmitDefaultValue=false)]
        public virtual double AllowedUnpaidAmountLimit { get; set; }

        [DataMember(Name="allowedPaymentOverdue")]
        public virtual TimeLengthRequestDto AllowedPaymentOverdue { get; set; }

        [DataMember(Name="unpaidSubscriptionTerminationReasonId")]
        public virtual Guid? UnpaidSubscriptionTerminationReasonId { get; set; }

        [DataMember(Name="unpaidSubscriptionTerminationComment")]
        public virtual string UnpaidSubscriptionTerminationComment { get; set; }

        [DataMember(Name="creditInvoiceNumberReferenceTextFormat")]
        public virtual string CreditInvoiceNumberReferenceTextFormat { get; set; }
        public enum IntermediaryPlacementEnum
        {
            None = 1,
            IncludeIn21StColumn = 2,
            IncludeIn7ThColumn = 3,
        }

        public enum AccrualCodeFormatEnum
        {
            Default = 1,
            Dutch = 2,
        }

    }

}

C# UpdateVossInvoiceConfigurations DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /voss/invoiceConfigurations HTTP/1.1 
Host: testapi.bokamera.se 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}