POST api/Transaction/InsertTransaction

Request Information

URI Parameters

None.

Body Parameters

Collection of TransactionModel
NameDescriptionTypeAdditional information
TransactionID

integer

None.

OrderID

integer

None.

Amount

decimal number

None.

PayType

integer

None.

PayTypeName

string

None.

TransactionDate

string

None.

RewardsUsed

decimal number

None.

OtherPaymentAdded

decimal number

None.

TransactionType

integer

None.

TransactionTypeName

string

None.

OrderNo

string

None.

UserName

string

None.

BreakupType

integer

None.

BreakupTypeName

string

None.

Cash

decimal number

None.

Bank

decimal number

None.

WasteCredit

decimal number

None.

UsersID

integer

None.

CreatedDate

string

None.

UpdatedDate

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "TransactionID": 1,
    "OrderID": 2,
    "Amount": 3.0,
    "PayType": 4,
    "PayTypeName": "sample string 5",
    "TransactionDate": "sample string 6",
    "RewardsUsed": 7.0,
    "OtherPaymentAdded": 8.0,
    "TransactionType": 9,
    "TransactionTypeName": "sample string 10",
    "OrderNo": "sample string 11",
    "UserName": "sample string 12",
    "BreakupType": 13,
    "BreakupTypeName": "sample string 14",
    "Cash": 15.0,
    "Bank": 16.0,
    "WasteCredit": 17.0,
    "UsersID": 18,
    "CreatedDate": "sample string 19",
    "UpdatedDate": "sample string 20"
  },
  {
    "TransactionID": 1,
    "OrderID": 2,
    "Amount": 3.0,
    "PayType": 4,
    "PayTypeName": "sample string 5",
    "TransactionDate": "sample string 6",
    "RewardsUsed": 7.0,
    "OtherPaymentAdded": 8.0,
    "TransactionType": 9,
    "TransactionTypeName": "sample string 10",
    "OrderNo": "sample string 11",
    "UserName": "sample string 12",
    "BreakupType": 13,
    "BreakupTypeName": "sample string 14",
    "Cash": 15.0,
    "Bank": 16.0,
    "WasteCredit": 17.0,
    "UsersID": 18,
    "CreatedDate": "sample string 19",
    "UpdatedDate": "sample string 20"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTransactionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RecycleGreenAPILibrary.BusinessModel">
  <TransactionModel>
    <CreatedDate>sample string 19</CreatedDate>
    <UpdatedDate>sample string 20</UpdatedDate>
    <Amount>3</Amount>
    <Bank>16</Bank>
    <BreakupType>13</BreakupType>
    <BreakupTypeName>sample string 14</BreakupTypeName>
    <Cash>15</Cash>
    <OrderID>2</OrderID>
    <OrderNo>sample string 11</OrderNo>
    <OtherPaymentAdded>8</OtherPaymentAdded>
    <PayType>4</PayType>
    <PayTypeName>sample string 5</PayTypeName>
    <RewardsUsed>7</RewardsUsed>
    <TransactionDate>sample string 6</TransactionDate>
    <TransactionID>1</TransactionID>
    <TransactionType>9</TransactionType>
    <TransactionTypeName>sample string 10</TransactionTypeName>
    <UserName>sample string 12</UserName>
    <UsersID>18</UsersID>
    <WasteCredit>17</WasteCredit>
  </TransactionModel>
  <TransactionModel>
    <CreatedDate>sample string 19</CreatedDate>
    <UpdatedDate>sample string 20</UpdatedDate>
    <Amount>3</Amount>
    <Bank>16</Bank>
    <BreakupType>13</BreakupType>
    <BreakupTypeName>sample string 14</BreakupTypeName>
    <Cash>15</Cash>
    <OrderID>2</OrderID>
    <OrderNo>sample string 11</OrderNo>
    <OtherPaymentAdded>8</OtherPaymentAdded>
    <PayType>4</PayType>
    <PayTypeName>sample string 5</PayTypeName>
    <RewardsUsed>7</RewardsUsed>
    <TransactionDate>sample string 6</TransactionDate>
    <TransactionID>1</TransactionID>
    <TransactionType>9</TransactionType>
    <TransactionTypeName>sample string 10</TransactionTypeName>
    <UserName>sample string 12</UserName>
    <UsersID>18</UsersID>
    <WasteCredit>17</WasteCredit>
  </TransactionModel>
</ArrayOfTransactionModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.