PUT | /eaccounting/settings | Create a new settings in e-accounting system; Should be uniques per company; If settings exists, they will be updated instead |
---|
"use strict";
export class EAccountingSettingsQueryResponse {
/** @param {{CompanyId?:string,Active?:boolean,DefaultArticle6PercentVat?:string,DefaultArticle12PercentVat?:number,DefaultArticle25PercentVat?:number,DefaultCreateType?:string,DefaultTermsOfPaymentId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
CompanyId;
/** @type {boolean} */
Active;
/** @type {string} */
DefaultArticle6PercentVat;
/** @type {number} */
DefaultArticle12PercentVat;
/** @type {number} */
DefaultArticle25PercentVat;
/** @type {string} */
DefaultCreateType;
/** @type {string} */
DefaultTermsOfPaymentId;
}
export class UpdateEAccountingSettingsQuery {
/** @param {{DefaultArticle25PercentVat?:string,DefaultArticle12PercentVat?:string,DefaultArticle6PercentVat?:string,DefaultCreateType?:string,EAccountingIntegrationActive?:boolean,DefaultTermsOfPaymentId?:string,CompanyId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Article id for 25% VAT in e-accounting system */
DefaultArticle25PercentVat;
/**
* @type {string}
* @description Article id for 12% VAT in e-accounting system */
DefaultArticle12PercentVat;
/**
* @type {string}
* @description Article id for 6% VAT in e-accounting system */
DefaultArticle6PercentVat;
/**
* @type {string}
* @description Default invoice create type for invoice creation */
DefaultCreateType;
/**
* @type {boolean}
* @description Determines wether e-accounting intergration is active or not */
EAccountingIntegrationActive;
/**
* @type {string}
* @description Default terms of payment value for invoice creation */
DefaultTermsOfPaymentId;
/**
* @type {?string}
* @description E-Accounting settings company Id. */
CompanyId;
}
JavaScript UpdateEAccountingSettingsQuery DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /eaccounting/settings HTTP/1.1
Host: api.bokamera.se
Accept: application/json
Content-Type: application/json
Content-Length: length
{"DefaultArticle25PercentVat":"String","DefaultArticle12PercentVat":"String","DefaultArticle6PercentVat":"String","DefaultCreateType":"String","EAccountingIntegrationActive":false,"DefaultTermsOfPaymentId":"String","CompanyId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"CompanyId":"00000000-0000-0000-0000-000000000000","Active":false,"DefaultArticle6PercentVat":"String","DefaultArticle12PercentVat":0,"DefaultArticle25PercentVat":0,"DefaultCreateType":"String","DefaultTermsOfPaymentId":"String"}