ApexERPHost

<back to all web services

SaveInvoiceDets

Requires Authentication
The following routes are available for this service:
POST/RS/Invoices/SaveInvoiceDets
SaveInvoiceDets Parameters:
NameParameterData TypeRequiredDescription
InvoiceIdbodyintNo
NewDatabodybool?No
DetsbodyList<MOFInvoiceDet>No
NosbodyList<MOFInvoiceNos>No
OpDatebodyDateTime?No
MOFInvoiceDet Parameters:
NameParameterData TypeRequiredDescription
IDformlongNo
InvoiceIDformintNo
GoodformstringNo
UnitformstringNo
SCountformdecimalNo
FullAmountformdecimalNo
VatAmountformdecimalNo
AkcizAmountformdecimalNo
AkcizIDformintNo
SVatAmountformstringNo
WaybillIdformint?No
VatTypeformint?No
MOFInvoiceNos Parameters:
NameParameterData TypeRequiredDescription
NosIDformlongNo
OverheadNoformstringNo
OverheadDateformDateTimeNo
OverheadDateStrformstringNo
CreateInvoiceResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ErrorformintNo
ErrorMessageformstringNo

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

HTTP + JSON

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

POST /RS/Invoices/SaveInvoiceDets HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"InvoiceId":0,"NewData":false,"Dets":[{"ID":0,"InvoiceID":0,"Good":"String","Unit":"String","SCount":0,"FullAmount":0,"VatAmount":0,"AkcizAmount":0,"AkcizID":0,"SVatAmount":"String","WaybillId":0,"VatType":0}],"Nos":[{"NosID":0,"OverheadNo":"String","OverheadDate":"\/Date(-62135596800000-0000)\/","OverheadDateStr":"String"}],"OpDate":"\/Date(-62135596800000-0000)\/"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Error":0,"ErrorMessage":"String"}