POST api/Transaction/AddNew
Request Information
URI Parameters
None.
Body Parameters
TransactionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| amount | decimal number |
None. |
|
| id | integer |
None. |
|
| fk_id | integer |
None. |
|
| order_id | integer |
None. |
|
| process_by | integer |
None. |
|
| debit | decimal number |
None. |
|
| credit | decimal number |
None. |
|
| created_date | date |
None. |
|
| created_by | integer |
None. |
|
| descp | string |
None. |
|
| payment_type | string |
None. |
|
| account_type | string |
None. |
|
| account | string |
None. |
|
| TotalRows | integer |
None. |
|
| branch_id | integer |
None. |
|
| vendor_id | integer |
None. |
|
| customer_id | integer |
None. |
|
| employee_id | integer |
None. |
|
| account_id | integer |
None. |
|
| gl_id | integer |
None. |
|
| date | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"amount": 1.0,
"id": 2,
"fk_id": 3,
"order_id": 4,
"process_by": 5,
"debit": 6.0,
"credit": 7.0,
"created_date": "2025-12-18T16:07:47.7069179+05:00",
"created_by": 9,
"descp": "sample string 10",
"payment_type": "sample string 11",
"account_type": "sample string 12",
"account": "sample string 13",
"TotalRows": 14,
"branch_id": 15,
"vendor_id": 16,
"customer_id": 17,
"employee_id": 18,
"account_id": 19,
"gl_id": 20,
"date": "2025-12-18T16:07:47.7069179+05:00"
}
application/xml, text/xml
Sample:
<TransactionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models"> <TotalRows>14</TotalRows> <account>sample string 13</account> <account_id>19</account_id> <account_type>sample string 12</account_type> <amount>1</amount> <branch_id>15</branch_id> <created_by>9</created_by> <created_date>2025-12-18T16:07:47.7069179+05:00</created_date> <credit>7</credit> <customer_id>17</customer_id> <date>2025-12-18T16:07:47.7069179+05:00</date> <debit>6</debit> <descp>sample string 10</descp> <employee_id>18</employee_id> <fk_id>3</fk_id> <gl_id>20</gl_id> <id>2</id> <order_id>4</order_id> <payment_type>sample string 11</payment_type> <process_by>5</process_by> <vendor_id>16</vendor_id> </TransactionModel>
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.