ApexERPHost

<back to all web services

SaveDocsImportDocument

Requires Authentication
The following routes are available for this service:
POST/Accounting/Docs/Document/Import
SaveDocsImportDocument Parameters:
NameParameterData TypeRequiredDescription
DocsbodyList<DocsImportDocument>No
DocsImportDocument Parameters:
NameParameterData TypeRequiredDescription
OperformstringNo
DDateformDateTimeNo
DPayformDateTime?No
DBformstringNo
CRformstringNo
DB_CRformstringNo
CurrencyCodeformstringNo
Rateformdecimal?No
Amountformdecimal?No
Percentformdecimal?No
Amount2formdecimal?No
ContentsformstringNo
BookNoteformstringNo
NumberInformstringNo
NumberOutformstringNo
PresalerNameformstringNo
PresalerIdformstringNo
hasErrorformboolNo
ErrorTextformstringNo
RowNumberformintNo
SaveDocsImportDocumentResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformboolNo

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/Document/Import HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: application/x-protobuf
Content-Type: application/x-protobuf
Content-Length: length

{"Docs":[{"Oper":"String","DDate":"\/Date(-62135596800000-0000)\/","DPay":"\/Date(-62135596800000-0000)\/","DB":"String","CR":"String","DB_CR":"String","CurrencyCode":"String","Rate":0,"Amount":0,"Percent":0,"Amount2":0,"Contents":"String","BookNote":"String","NumberIn":"String","NumberOut":"String","PresalerName":"String","PresalerId":"String","hasError":false,"ErrorText":"String","RowNumber":0}]}
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":false}