POST api/Cashbook/Insert
Request Information
URI Parameters
None.
Body Parameters
CashbookBinddingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DateOfCollected | date |
Required |
|
| TransactionId | integer |
None. |
|
| EmployeeId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| PayerName | string |
Required |
|
| Amount | decimal number |
Required |
|
| Description | string |
None. |
|
| TypeId | byte |
Required |
|
| FileUrl | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"dateOfCollected": "2025-12-06T12:25:51.5573268+07:00",
"transactionId": 2,
"employeeId": 3,
"customerId": 4,
"payerName": "sample string 5",
"amount": 6.0,
"description": "sample string 7",
"typeId": 64,
"fileUrl": "sample string 9"
}
application/xml, text/xml
Sample:
<CashbookBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Cashbook"> <Amount>6</Amount> <CustomerId>4</CustomerId> <DateOfCollected>2025-12-06T12:25:51.5573268+07:00</DateOfCollected> <Description>sample string 7</Description> <EmployeeId>3</EmployeeId> <FileUrl>sample string 9</FileUrl> <PayerName>sample string 5</PayerName> <TransactionId>2</TransactionId> <TypeId>64</TypeId> </CashbookBinddingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CashbookBinddingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DateOfCollected | date |
Required |
|
| TransactionId | integer |
None. |
|
| EmployeeId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| PayerName | string |
Required |
|
| Amount | decimal number |
Required |
|
| Description | string |
None. |
|
| TypeId | byte |
Required |
|
| FileUrl | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"dateOfCollected": "2025-12-06T12:25:51.5729492+07:00",
"transactionId": 2,
"employeeId": 3,
"customerId": 4,
"payerName": "sample string 5",
"amount": 6.0,
"description": "sample string 7",
"typeId": 64,
"fileUrl": "sample string 9"
}
application/xml, text/xml
Sample:
<CashbookBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Cashbook"> <Amount>6</Amount> <CustomerId>4</CustomerId> <DateOfCollected>2025-12-06T12:25:51.5729492+07:00</DateOfCollected> <Description>sample string 7</Description> <EmployeeId>3</EmployeeId> <FileUrl>sample string 9</FileUrl> <PayerName>sample string 5</PayerName> <TransactionId>2</TransactionId> <TypeId>64</TypeId> </CashbookBinddingModel>