POST api/Transaction/Insert
Request Information
URI Parameters
None.
Body Parameters
TransactionBinddingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DateOfTransaction | date |
Required |
|
| ProductDemandId | integer |
Required |
|
| CustomerDemandId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| EmployeeIdSale1 | integer |
None. |
|
| Percentage1 | decimal number |
None. |
|
| EmployeeIdSale2 | integer |
None. |
|
| Percentage2 | decimal number |
None. |
|
| EmployeeIdSale3 | integer |
None. |
|
| Percentage3 | decimal number |
None. |
|
| EmployeeIdSale4 | integer |
None. |
|
| Percentage4 | decimal number |
None. |
|
| Description | string |
None. |
|
| TotalPrice | decimal number |
None. |
|
| CommissionRate | decimal number |
None. |
|
| CommissionType | byte |
None. |
|
| CommissionValue | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"dateOfTransaction": "2025-12-06T12:29:09.9184738+07:00",
"productDemandId": 2,
"customerDemandId": 3,
"customerId": 4,
"employeeIdSale1": 5,
"percentage1": 6.0,
"employeeIdSale2": 7,
"percentage2": 8.0,
"employeeIdSale3": 9,
"percentage3": 10.0,
"employeeIdSale4": 11,
"percentage4": 12.0,
"description": "sample string 13",
"totalPrice": 14.0,
"commissionRate": 15.0,
"commissionType": 64,
"commissionValue": 17.0
}
application/xml, text/xml
Sample:
<TransactionBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Transaction"> <CommissionRate>15</CommissionRate> <CommissionType>64</CommissionType> <CommissionValue>17</CommissionValue> <CustomerDemandId>3</CustomerDemandId> <CustomerId>4</CustomerId> <DateOfTransaction>2025-12-06T12:29:09.9184738+07:00</DateOfTransaction> <Description>sample string 13</Description> <EmployeeIdSale1>5</EmployeeIdSale1> <EmployeeIdSale2>7</EmployeeIdSale2> <EmployeeIdSale3>9</EmployeeIdSale3> <EmployeeIdSale4>11</EmployeeIdSale4> <Percentage1>6</Percentage1> <Percentage2>8</Percentage2> <Percentage3>10</Percentage3> <Percentage4>12</Percentage4> <ProductDemandId>2</ProductDemandId> <TotalPrice>14</TotalPrice> </TransactionBinddingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TransactionBinddingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DateOfTransaction | date |
Required |
|
| ProductDemandId | integer |
Required |
|
| CustomerDemandId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| EmployeeIdSale1 | integer |
None. |
|
| Percentage1 | decimal number |
None. |
|
| EmployeeIdSale2 | integer |
None. |
|
| Percentage2 | decimal number |
None. |
|
| EmployeeIdSale3 | integer |
None. |
|
| Percentage3 | decimal number |
None. |
|
| EmployeeIdSale4 | integer |
None. |
|
| Percentage4 | decimal number |
None. |
|
| Description | string |
None. |
|
| TotalPrice | decimal number |
None. |
|
| CommissionRate | decimal number |
None. |
|
| CommissionType | byte |
None. |
|
| CommissionValue | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"dateOfTransaction": "2025-12-06T12:29:09.9184738+07:00",
"productDemandId": 2,
"customerDemandId": 3,
"customerId": 4,
"employeeIdSale1": 5,
"percentage1": 6.0,
"employeeIdSale2": 7,
"percentage2": 8.0,
"employeeIdSale3": 9,
"percentage3": 10.0,
"employeeIdSale4": 11,
"percentage4": 12.0,
"description": "sample string 13",
"totalPrice": 14.0,
"commissionRate": 15.0,
"commissionType": 64,
"commissionValue": 17.0
}
application/xml, text/xml
Sample:
<TransactionBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Transaction"> <CommissionRate>15</CommissionRate> <CommissionType>64</CommissionType> <CommissionValue>17</CommissionValue> <CustomerDemandId>3</CustomerDemandId> <CustomerId>4</CustomerId> <DateOfTransaction>2025-12-06T12:29:09.9184738+07:00</DateOfTransaction> <Description>sample string 13</Description> <EmployeeIdSale1>5</EmployeeIdSale1> <EmployeeIdSale2>7</EmployeeIdSale2> <EmployeeIdSale3>9</EmployeeIdSale3> <EmployeeIdSale4>11</EmployeeIdSale4> <Percentage1>6</Percentage1> <Percentage2>8</Percentage2> <Percentage3>10</Percentage3> <Percentage4>12</Percentage4> <ProductDemandId>2</ProductDemandId> <TotalPrice>14</TotalPrice> </TransactionBinddingModel>