POST api/MobileTaxi/SaveTransaction

Request Information

URI Parameters

None.

Body Parameters

SaveTransactionRequest
NameDescriptionTypeAdditional information
userId

integer

None.

transactionDate

string

None.

transactionType

integer

None.

chargedPhoneNumber

string

None.

chargedCardNumber

string

None.

cashCollected

decimal number

None.

taxiScript

integer

None.

referenceNumber

string

None.

transactionTotal

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": 1,
  "transactionDate": "sample string 2",
  "transactionType": 3,
  "chargedPhoneNumber": "sample string 4",
  "chargedCardNumber": "sample string 5",
  "cashCollected": 6.0,
  "taxiScript": 7,
  "referenceNumber": "sample string 8",
  "transactionTotal": 9.0
}

application/xml, text/xml

Sample:
<MobileTaxiController.SaveTransactionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomerAPI.Controllers">
  <cashCollected>6</cashCollected>
  <chargedCardNumber>sample string 5</chargedCardNumber>
  <chargedPhoneNumber>sample string 4</chargedPhoneNumber>
  <referenceNumber>sample string 8</referenceNumber>
  <taxiScript>7</taxiScript>
  <transactionDate>sample string 2</transactionDate>
  <transactionTotal>9</transactionTotal>
  <transactionType>3</transactionType>
  <userId>1</userId>
</MobileTaxiController.SaveTransactionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.