axFuelService

<back to all web services

SaveFstReceipts

Requires Authentication
The following routes are available for this service:
PUT/SaveFstReceipts
SaveFstReceipts Parameters:
NameParameterData TypeRequiredDescription
ReceiptbodyReceiptsNo
appnamebodystringNo
hostnamebodystringNo
Receipts Parameters:
NameParameterData TypeRequiredDescription
ReceiptIdformGuidNo
ReceiptNumformintNo
BranchIdformintNo
FstNumformintNo
ShiftIdformint?No
OpdtformDateTimeNo
DccardidformstringNo
ProdsformList<ReceiptProds>No
PaymentsformList<ReceiptPayments>No
ReceiptProds Parameters:
NameParameterData TypeRequiredDescription
RecIdformGuidNo
ReceiptIdformGuidNo
FuelIdformintNo
ScountformdecimalNo
PriceformdecimalNo
VgformdecimalNo
ReceiptPayments Parameters:
NameParameterData TypeRequiredDescription
RecIdformGuidNo
ReceiptIdformGuidNo
PaytypeIdformintNo
VgformdecimalNo
FiscalNumberformstringNo
SaveFstReceiptsResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo

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 /SaveFstReceipts HTTP/1.1 
Host: axfuel.apex.ge 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Receipt: 
	{
		ReceiptId: 00000000000000000000000000000000,
		ReceiptNum: 0,
		BranchId: 0,
		FstNum: 0,
		ShiftId: 0,
		Opdt: 0001-01-01,
		Dccardid: String,
		Prods: 
		[
			{
				RecId: 00000000000000000000000000000000,
				ReceiptId: 00000000000000000000000000000000,
				FuelId: 0,
				Scount: 0,
				Price: 0,
				Vg: 0
			}
		],
		Payments: 
		[
			{
				RecId: 00000000000000000000000000000000,
				ReceiptId: 00000000000000000000000000000000,
				PaytypeId: 0,
				Vg: 0,
				FiscalNumber: String
			}
		]
	},
	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
		}
	}
}