POST api/StkTransMulti

Upload multi Stock Transaction. Supported transactions: SAL: invoice, SRE: Credit note, ISS: Issues, IRE: Issues return, PUR: Purchase, Purchase Order: POP, Purchase Return: PRE, TEN: Tender, ORD: Order,Jobcard WAY: Waybill, TRF: Transfer, ADJ: Adjustment, REQ: Requisition, Invoices support commitions. The toStore field is used only in TRF, REQ

Request Information

URI Parameters

None.

Body Parameters

stkTransMulti
NameDescriptionTypeAdditional information
MsgControl

Contains information about the response

MsgControl

None.

Documents

The stock transaction document. Contains message control

Collection of stkTrans

None.

Request Formats

application/json, text/json

Sample:
{
  "MsgControl": {
    "result": 0,
    "Message": "Corresponding success and error message",
    "MethodName": "api/StkTrans GET",
    "AppName": "EsoftWebApi",
    "EsoftUser": "ESOFT",
    "User": "Username",
    "Password": "Password",
    "SystemDate": "2025-01-06T22:32:15.1876806+02:00",
    "GenList": [],
    "GenMsg1": "",
    "GenMsg2": "",
    "GenMsg3": ""
  },
  "Documents": [
    {
      "msgControl": null,
      "Company": "DEMO",
      "DocNo": "SAL147852",
      "AccountCode": "321025",
      "AccountName": "Andreas Andreou",
      "DocType": "SAL",
      "DocDate": "2019-12-25T00:00:00",
      "DueDate": null,
      "Store": "100",
      "ToStore": null,
      "Salesperson": "100",
      "PaymentType": "CH",
      "currency": "EUR",
      "currencyRate": 1.0,
      "H1": "",
      "H2": "",
      "H3": "",
      "H4": "",
      "H5": "",
      "Details": "Demo details",
      "OtherReference": "",
      "Address": "",
      "Telephone": "",
      "Text1": "",
      "Text2": "",
      "Text3": "",
      "Text4": "",
      "Text5": "",
      "Text6": null,
      "Text7": null,
      "VatInLines": "I",
      "DocDiscount": 0.0,
      "Number1": 0.0,
      "Number2": null,
      "Date1": null,
      "OrderNo": "",
      "WaybillNo": "",
      "TenderNo": "",
      "ReverseCharge": null,
      "email": null,
      "user": "esoftAPI",
      "ClearingAgent": null,
      "ClearingDate": null,
      "stkTranLines": [
        {
          "ItemCode": "1001125",
          "Qty": 1,
          "PriceCode": "U",
          "PricelistCode": null,
          "PriceBeforeDisc": 11.9,
          "AmountDiscount": 0.0,
          "PercentageDiscount": 0.0,
          "PercentageDiscountAmount": 0.0,
          "Amount": 11.9,
          "Details": "",
          "VatCode": "3",
          "VatRate": 19,
          "VatAmount": 1.9,
          "Text1": "user defined",
          "Text2": "user defined",
          "Number1": 0,
          "Number2": null,
          "Money1": null,
          "Money2": null,
          "ReverseChargeItem": null,
          "TariffLine": null
        },
        {
          "ItemCode": "1001129",
          "Qty": 10,
          "PriceCode": "P",
          "PricelistCode": "001",
          "PriceBeforeDisc": 11.9,
          "AmountDiscount": 0.0,
          "PercentageDiscount": 0.0,
          "PercentageDiscountAmount": 0.0,
          "Amount": 119.0,
          "Details": "",
          "VatCode": "3",
          "VatRate": 19,
          "VatAmount": 19.0,
          "Text1": null,
          "Text2": null,
          "Number1": 0,
          "Number2": null,
          "Money1": null,
          "Money2": null,
          "ReverseChargeItem": null,
          "TariffLine": 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": ""
}