ApexERPHost

<back to all web services

MakeKInvoice

Requires Authentication
The following routes are available for this service:
POST/RS/Invoices/MakeKInvoice
MakeKInvoice Parameters:
NameParameterData TypeRequiredDescription
InvoiceIdbodyintNo
KTypebodyintNo
GetInvoiceViewResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
InvoiceformMOFInvoiceViewNo
ErrorformintNo
ErrorMessageformstringNo
MOFInvoiceView Parameters:
NameParameterData TypeRequiredDescription
InvoiceIDformintNo
NumberOutformstringNo
OperationDateformDateTimeNo
RegistrationDateformDateTimeNo
SellerIDformintNo
BuyerIDformintNo
StatusformintNo
DetailsformList<MOFInvoiceDet>No
NosListformList<MOFInvoiceNos>No
UserIDformintNo
K_IDformintNo
K_TYPEformintNo
R_UN_IDformintNo
DecStatusformintNo
NoTextformstringNo
WAS_REFformintNo
BuyerSNformstringNo
SellerSNformstringNo
BuyerNameformstringNo
SellerNameformstringNo
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

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

{"InvoiceId":0,"KType":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"}},"Invoice":{"InvoiceID":0,"NumberOut":"String","OperationDate":"\/Date(-62135596800000-0000)\/","RegistrationDate":"\/Date(-62135596800000-0000)\/","SellerID":0,"BuyerID":0,"Status":0,"Details":[{"ID":0,"InvoiceID":0,"Good":"String","Unit":"String","SCount":0,"FullAmount":0,"VatAmount":0,"AkcizAmount":0,"AkcizID":0,"SVatAmount":"String","WaybillId":0,"VatType":0}],"NosList":[{"NosID":0,"OverheadNo":"String","OverheadDate":"\/Date(-62135596800000-0000)\/","OverheadDateStr":"String"}],"UserID":0,"K_ID":0,"K_TYPE":0,"R_UN_ID":0,"DecStatus":0,"NoText":"String","WAS_REF":0,"BuyerSN":"String","SellerSN":"String","BuyerName":"String","SellerName":"String"},"Error":0,"ErrorMessage":"String"}