ApexERPHost

<back to all web services

CreateGainLoseDocs

Requires Authentication
The following routes are available for this service:
POST/Accounting/Docs/WinLose
CreateGainLoseDocs Parameters:
NameParameterData TypeRequiredDescription
GainLossAccbodystringNo
AccountsbodyList<string>No
DoDbbodyboolNo
DoCrbodyboolNo
DatebodyDateTimeNo
OperIdbodystringNo
SaveGainLoseDocs Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformList<Book>No
Book Parameters:
NameParameterData TypeRequiredDescription
BookIDformstringNo
DocsIDformstringNo
OpDetIDformstringNo
CurrencyIDformstringNo
CurrencyformCurrencyNo
RateformdecimalNo
DDateformDateTimeNo
DBformstringNo
DBInfoformAccountInfoNo
CRformstringNo
CRInfoformAccountInfoNo
VGformdecimalNo
VUformdecimalNo
VCformdecimalNo
ContentsformstringNo
BookNoteformstringNo
NumberInformstringNo
NumberOutformstringNo
RecStatusformbyteNo
BlockingformboolNo
CUserformstringNo
ContractIDformint?No
CreateTimeformDateTimeNo
BookTypeformintNo
Currency Parameters:
NameParameterData TypeRequiredDescription
CurrencyIDformstringNo
NameformstringNo
NameEnformstringNo
CodeformstringNo
CurTypeformintNo
ReCalcformboolNo
LastDateformDateTimeNo
RateformdecimalNo
SpendformboolNo
CurrencyCntformintNo
Currency_NformstringNo
LDefaultformboolNo
AccountInfo Parameters:
NameParameterData TypeRequiredDescription
AccformstringNo
NameformstringNo
SNformstringNo
WarehouseAddressformstringNo
AddressformstringNo
PhoneformstringNo
AccWithNameformstringNo
VatTypeformintNo
BranchIdformint?No

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

HTTP + X-PROTOBUF

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

POST /Accounting/Docs/WinLose HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: application/x-protobuf
Content-Type: application/x-protobuf
Content-Length: length

{"GainLossAcc":"String","Accounts":["String"],"DoDb":false,"DoCr":false,"Date":"\/Date(-62135596800000-0000)\/","OperId":"String"}
HTTP/1.1 200 OK
Content-Type: application/x-protobuf
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Result":[{"BookID":"String","DocsID":"String","OpDetID":"String","CurrencyID":"String","Currency":{"CurrencyID":"String","Name":"String","NameEn":"String","Code":"String","CurType":0,"ReCalc":false,"LastDate":"\/Date(-62135596800000-0000)\/","Rate":0,"Spend":false,"CurrencyCnt":0,"Currency_N":"String","LDefault":false},"Rate":0,"DDate":"\/Date(-62135596800000-0000)\/","DB":"String","DBInfo":{"Acc":"String","Name":"String","SN":"String","WarehouseAddress":"String","Address":"String","Phone":"String","AccWithName":"String - String","VatType":0,"BranchId":0},"CR":"String","CRInfo":{"Acc":"String","Name":"String","SN":"String","WarehouseAddress":"String","Address":"String","Phone":"String","AccWithName":"String - String","VatType":0,"BranchId":0},"VG":0,"VU":0,"VC":0,"Contents":"String","BookNote":"String","NumberIn":"String","NumberOut":"String","RecStatus":0,"Blocking":false,"CUser":"String","ContractID":0,"CreateTime":"\/Date(-62135596800000-0000)\/","BookType":0}]}