POST api/Cashbook/Update?Id={Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

CashbookBinddingModel
NameDescriptionTypeAdditional 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:28:28.0587153+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:28:28.0587153+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
NameDescriptionTypeAdditional 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:28:28.0587153+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:28:28.0587153+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>