axFuelService

<back to all web services

SaveInvoice

Requires Authentication
The following routes are available for this service:
PUT/SaveInvoice
SaveInvoice Parameters:
NameParameterData TypeRequiredDescription
Idbodyint?No
DdatebodyDateTimeNo
CompanyIdbodyintNo
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 .jsv suffix or ?format=jsv

HTTP + JSV

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

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

{
	Id: 0,
	Ddate: 0001-01-01,
	CompanyId: 0,
	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/jsv
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
}