POST api/AccAccounts

Upload Accounts to E-SOFT. Update existing ones by providing the company, account and account type code with the fields that will be modified.

Request Information

URI Parameters

None.

Body Parameters

accAccount
NameDescriptionTypeAdditional information
msgControl

Contains information about the response

MsgControl

None.

Company

The company name

string

Required

String length: inclusive between 0 and 6

Code

The account code

string

Required

String length: inclusive between 0 and 15

Name1

The account name

string

String length: inclusive between 0 and 50

Name2

The account second name

string

String length: inclusive between 0 and 50

AccountType

The account type

string

Required

String length: inclusive between 0 and 5

AccountShort

Account shortcode for additional details

string

String length: inclusive between 0 and 15

Currency

The account currency (restricted)

string

String length: inclusive between 0 and 3

DefaultVatCode

The default vat code

string

String length: inclusive between 0 and 1

AccountGroupDisc

The account group discount code

string

String length: inclusive between 0 and 6

AccountPriceList

The account price list code

string

String length: inclusive between 0 and 6

Store

The store related with the account

string

String length: inclusive between 0 and 5

AccountPriceCode

The account price code. Values null,1, 2, 3, 4, 5, 6, 7, 8, 9, U, M, L, A, S, C, G or P

string

String length: inclusive between 0 and 1

AccountPaymentMethod

The account payment method. Values null, CH: Cash, CR: Credit, VS: Visa, CQ: Cheque

string

String length: inclusive between 0 and 2

Accountsalesperson

The account salesperson

string

String length: inclusive between 0 and 5

AccGroup1

Account group 1 code

string

String length: inclusive between 0 and 6

AccGroup2

Account group 2 code

string

String length: inclusive between 0 and 6

AccGroup3

Account group 3 code

string

String length: inclusive between 0 and 6

AccGroup4

Account group 4 code

string

String length: inclusive between 0 and 6

AccGroup5

Account group 5 code

string

String length: inclusive between 0 and 6

AccGroup6

Account group 6 code

string

String length: inclusive between 0 and 6

AccGroup7

Account group 7 code

string

String length: inclusive between 0 and 6

AccGroup8

Account group 8 code

string

String length: inclusive between 0 and 6

AccGroup9

Account group 9 code

string

String length: inclusive between 0 and 6

AccGroup10

Account group 10 code

string

String length: inclusive between 0 and 6

AccGroup11

Account group 11 code

string

String length: inclusive between 0 and 6

AccGroup12

Account group 12 code

string

String length: inclusive between 0 and 6

AccGroup13

Account group 13 code

string

String length: inclusive between 0 and 6

AccGroup14

Account group 14 code

string

String length: inclusive between 0 and 6

AccGroup15

Account group 15 code

string

String length: inclusive between 0 and 6

AccGroup16

Account group 16 code

string

String length: inclusive between 0 and 6

AccGroup17

Account group 17 code

string

String length: inclusive between 0 and 6

AccGroup18

Account group 18 code

string

String length: inclusive between 0 and 6

AccGroup19

Account group 19 code

string

String length: inclusive between 0 and 6

AccGroup20

Account group 20 code

string

String length: inclusive between 0 and 6

Text1

Text field to store additional info

string

String length: inclusive between 0 and 50

Text2

Text field to store additional info

string

String length: inclusive between 0 and 50

Text3

Text field to store additional info

string

String length: inclusive between 0 and 50

Text4

Text field to store additional info

string

String length: inclusive between 0 and 50

Text5

Text field to store additional info

string

String length: inclusive between 0 and 50

Text6

Text field to store additional info

string

String length: inclusive between 0 and 50

Text7

Text field to store additional info

string

String length: inclusive between 0 and 50

Text8

Text field to store additional info

string

String length: inclusive between 0 and 50

Text9

Text field to store additional info

string

String length: inclusive between 0 and 50

Date1

Additional date field to store more info

date

None.

Date2

Additional date field to store more info

date

None.

Date3

Additional date field to store more info

date

None.

Date4

Additional date field to store more info

date

None.

Date5

Additional date field to store more info

date

None.

Number1

Additional int field to store more info

decimal number

None.

Number2

Additional int field to store more info

decimal number

None.

Number3

Additional int field to store more info

decimal number

None.

Number4

Additional int field to store more info

decimal number

None.

Number5

Additional int field to store more info

decimal number

None.

StockH1

The header analysis 1 code for stock purposes

string

String length: inclusive between 0 and 30

StockH2

The header analysis 2 code for stock purposes

string

String length: inclusive between 0 and 30

StockH3

The header analysis 3 code for stock purposes

string

String length: inclusive between 0 and 30

StockH4

The header analysis 4 code for stock purposes

string

String length: inclusive between 0 and 30

StockH5

The header analysis 5 code for stock purposes

string

String length: inclusive between 0 and 30

ActiveAnalysis1

Active analysis info

boolean

None.

ActiveAnalysis2

Active analysis info

boolean

None.

ActiveAnalysis3

Active analysis info

boolean

None.

ActiveAnalysis4

Active analysis info

boolean

None.

ActiveAnalysis5

Active analysis info

boolean

None.

ActiveAnalysis6

Active analysis info

boolean

None.

ActiveAnalysis7

Active analysis info

boolean

None.

ActiveAnalysis8

Active analysis info

boolean

None.

ActiveAnalysis9

Active analysis info

boolean

None.

Notes

Notes about the account

string

String length: inclusive between 0 and 500

IBAN

The IBAN of the account

string

String length: inclusive between 0 and 34

SWIFT

The SWIFT of the account

string

String length: inclusive between 0 and 11

AlternativeCode

The alternative code

string

String length: inclusive between 0 and 28

Address

Address related to the account user

addAddress

None.

Request Formats

application/json, text/json

Sample:
{
  "msgControl": {
    "result": 0,
    "Message": "Corresponding success and error message",
    "MethodName": "api/AccAccounts GET",
    "AppName": "EsoftWebApi",
    "EsoftUser": "ESOFT",
    "User": "Username",
    "Password": "Password",
    "SystemDate": "2025-01-06T22:32:15.2033729+02:00",
    "GenList": [],
    "GenMsg1": "",
    "GenMsg2": "",
    "GenMsg3": ""
  },
  "Company": "DEMO",
  "Code": "320020",
  "Name1": "Demo User3",
  "Name2": "",
  "AccountType": "Debtors",
  "AccountShort": "d_u3",
  "Currency": "EUR",
  "DefaultVatCode": "3",
  "AccountGroupDisc": "001",
  "AccountPriceList": "10",
  "Store": "2",
  "AccountPriceCode": "1",
  "AccountPaymentMethod": "CH",
  "Accountsalesperson": null,
  "AccGroup1": "User defined",
  "AccGroup2": "User defined",
  "AccGroup3": "User defined",
  "AccGroup4": "User defined",
  "AccGroup5": "User defined",
  "AccGroup6": "User defined",
  "AccGroup7": "User defined",
  "AccGroup8": "User defined",
  "AccGroup9": "User defined",
  "AccGroup10": "User defined",
  "AccGroup11": "User defined",
  "AccGroup12": "User defined",
  "AccGroup13": "User defined",
  "AccGroup14": "User defined",
  "AccGroup15": "User defined",
  "AccGroup16": "User defined",
  "AccGroup17": "User defined",
  "AccGroup18": "User defined",
  "AccGroup19": "User defined",
  "AccGroup20": "User defined",
  "Text1": "",
  "Text2": "",
  "Text3": "",
  "Text4": "",
  "Text5": "",
  "Text6": "",
  "Text7": "",
  "Text8": "",
  "Text9": "",
  "Date1": "2025-01-06T22:32:15.2033729+02:00",
  "Date2": "2025-01-06T22:32:15.2033729+02:00",
  "Date3": "2025-01-06T22:32:15.2033729+02:00",
  "Date4": "2025-01-06T22:32:15.2033729+02:00",
  "Date5": "2025-01-06T22:32:15.2033729+02:00",
  "Number1": 0.0,
  "Number2": 0.0,
  "Number3": 0.0,
  "Number4": 0.0,
  "Number5": 0.0,
  "StockH1": "user defined",
  "StockH2": "user defined",
  "StockH3": "user defined",
  "StockH4": "user defined",
  "StockH5": "user defined",
  "ActiveAnalysis1": true,
  "ActiveAnalysis2": true,
  "ActiveAnalysis3": true,
  "ActiveAnalysis4": true,
  "ActiveAnalysis5": true,
  "ActiveAnalysis6": true,
  "ActiveAnalysis7": true,
  "ActiveAnalysis8": true,
  "ActiveAnalysis9": true,
  "Notes": "Some notes",
  "IBAN": "",
  "SWIFT": "",
  "AlternativeCode": null,
  "Address": {
    "DellAddress1": "1 Naxou street",
    "DellAddress2": "",
    "DelTown": "Strovolos",
    "DelCity": "Nicosia",
    "DelPostCode": "2087",
    "DelCountry": "Cyprus",
    "PostalAddress1": "",
    "PostalAddress2": "",
    "PostalTown": "",
    "PostalCity": "",
    "PostalPostCode": "",
    "PostalCountry": "",
    "POBOX": "",
    "POBOXPostCode": "",
    "POBOXCity": "",
    "WorkPhone": "",
    "HomePhone": "",
    "MobilePhone": "",
    "Fax": "",
    "Email": "",
    "Url": "",
    "CompanyRegNo": "",
    "VatRegNo": "",
    "Notes": "",
    "Text1": "",
    "Text2": "",
    "Text3": "",
    "Text4": "",
    "Text5": "",
    "Text6": "",
    "Text7": "",
    "Text8": "",
    "Text9": "",
    "Text10": "",
    "Date1": "",
    "Date2": "",
    "Date3": "",
    "Date4": "",
    "Date5": "",
    "Number1": 0.0,
    "Number2": 0.0,
    "Number3": 0.0,
    "Number4": 0.0,
    "Number5": 0.0,
    "LicenceNo": "",
    "RegNoID": "",
    "ContactsList": null
  }
}

Response Information

Resource Description

MsgControl
NameDescriptionTypeAdditional information
result

Response flag: 1 = success else something went wrong: see Message

integer

Required

Message

Corresponding success and error message

string

Required

MethodName

The name of the API

string

None.

AppName

The name of the current API method

string

None.

EsoftUser

The username of the logged in Esoft user. Can be empty

string

None.

User

Username

string

None.

Password

Password

string

None.

SystemDate

Current date

date

None.

GenList

List of additional message for calls with multiple object

Collection of Collection of string

None.

GenMsg1

Additional message

string

None.

GenMsg2

Additional message

string

None.

GenMsg3

Additional message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "result": 0,
  "Message": "Corresponding success and error message",
  "MethodName": "api/<Method>",
  "AppName": "EsoftWebApi",
  "EsoftUser": "ESOFT",
  "User": "Username",
  "Password": "Password",
  "SystemDate": "2025-01-06T22:32:15.1720865+02:00",
  "GenList": [],
  "GenMsg1": "",
  "GenMsg2": "",
  "GenMsg3": ""
}