axFuelService

<back to all web services

SaveCompanyInvoice

Requires Authentication
The following routes are available for this service:
PUT/SaveCompanyInvoice
SaveCompanyInvoice Parameters:
NameParameterData TypeRequiredDescription
Idbodyint?No
DdatebodyDateTimeNo
InvNumbodystringNo
CommentbodystringNo
VatbodyboolNo
PTypebodyint?No
DatabodyList<IntDecDec>No
appnamebodystringNo
hostnamebodystringNo
IntDecDec Parameters:
NameParameterData TypeRequiredDescription
idformintNo
amount1formdecimalNo
amount2formdecimalNo
SaveInvoiceResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
Resultformint?No

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

HTTP + CSV

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

PUT /SaveCompanyInvoice HTTP/1.1 
Host: axfuel.apex.ge 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Id":0,"Ddate":"\/Date(-62135596800000-0000)\/","InvNum":"String","Comment":"String","Vat":false,"PType":0,"Data":[{"id":0,"amount1":0,"amount2":0}],"appname":"String","hostname":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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