POST api/Transaction
Request Information
URI Parameters
None.
Body Parameters
CaptureTransactionRequestViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VoucherCode | string |
Required |
|
| Liter | decimal number |
Range: inclusive between -1.79769313486232E+308 and 1.79769313486232E+308 |
|
| Amount | integer |
Range: inclusive between -2147483648 and 2147483647 |
|
| ProductCode | string |
Required |
|
| UnitPrice | integer |
Required Range: inclusive between -2147483648 and 2147483647 |
|
| MID | integer |
Required Range: inclusive between -2147483648 and 2147483647 |
|
| DeviceId | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"VoucherCode": "sample string 1",
"Liter": 1.1,
"Amount": 1,
"ProductCode": "sample string 2",
"UnitPrice": 3,
"MID": 4,
"DeviceId": "sample string 5"
}
application/xml, text/xml
Sample:
<CaptureTransactionRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MobileAPIs.Models.Request"> <Amount>1</Amount> <DeviceId>sample string 5</DeviceId> <Liter>1.1</Liter> <MID>4</MID> <ProductCode>sample string 2</ProductCode> <UnitPrice>3</UnitPrice> <VoucherCode>sample string 1</VoucherCode> </CaptureTransactionRequestViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.