ApexERPHost

<back to all web services

WsReverseTransaction

Requires Authentication
The following routes are available for this service:
POST/POS/WissolCards/ReverseTransaction
WsReverseTransaction Parameters:
NameParameterData TypeRequiredDescription
DatabodyWsReverseTransactionReqNo
WsReverseTransactionReq Parameters:
NameParameterData TypeRequiredDescription
agentTransactionIdformstringNo
customerCardNumberformstringNo
callerformWsCallerNo
productsformList<WsProduct>No
totalAmountformfloatNo
languageCodeformstringNo
WsCaller Parameters:
NameParameterData TypeRequiredDescription
branchformintNo
companyCodeformstringNo
companyTokenformstringNo
posCodeformstringNo
posDeviceCodeformstringNo
operatorIdformstringNo
WsProduct Parameters:
NameParameterData TypeRequiredDescription
productCodeformstringNo
productStatusformstringNo
quantityformfloatNo
priceformfloatNo
giftDiscountformfloatNo
discountformfloatNo
discountedPriceformfloatNo
WsReverseTransactionResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformboolNo
ErrorInfoformList<WsErrorInfo>No
WsErrorInfo Parameters:
NameParameterData TypeRequiredDescription
errorformstringNo
messageformstringNo
translatedMessageformstringNo
fieldformstringNo
otpKeyformstringNo

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.

POST /POS/WissolCards/ReverseTransaction HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Data: 
	{
		agentTransactionId: String,
		customerCardNumber: String,
		caller: 
		{
			branch: 0,
			companyCode: String,
			companyToken: String,
			posCode: String,
			posDeviceCode: String,
			operatorId: String
		},
		products: 
		[
			{
				productCode: String,
				productStatus: String,
				quantity: 0,
				price: 0,
				giftDiscount: 0,
				discount: 0,
				discountedPrice: 0
			}
		],
		totalAmount: 0,
		languageCode: 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: False,
	ErrorInfo: 
	[
		{
			error: String,
			message: String,
			translatedMessage: String,
			field: String,
			otpKey: String
		}
	]
}