| POST | /POS/WissolCards/ReverseTransaction |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | body | WsReverseTransactionReq | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| agentTransactionId | form | string | No | |
| customerCardNumber | form | string | No | |
| caller | form | WsCaller | No | |
| products | form | List<WsProduct> | No | |
| totalAmount | form | float | No | |
| languageCode | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| branch | form | int | No | |
| companyCode | form | string | No | |
| companyToken | form | string | No | |
| posCode | form | string | No | |
| posDeviceCode | form | string | No | |
| operatorId | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| productCode | form | string | No | |
| productStatus | form | string | No | |
| quantity | form | float | No | |
| price | form | float | No | |
| giftDiscount | form | float | No | |
| discount | form | float | No | |
| discountedPrice | form | float | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Result | form | bool | No | |
| ErrorInfo | form | List<WsErrorInfo> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| error | form | string | No | |
| message | form | string | No | |
| translatedMessage | form | string | No | |
| field | form | string | No | |
| otpKey | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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: 10.10.0.107
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
}
]
}