POST api/ReceiptBook/CreateOrUpdateReceiptBookCreateGory

Request Information

URI Parameters

None.

Body Parameters

AddOrUpdateReceiptBookCategoryRequest
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Icon

string

None.

Name

string

None.

Color

string

None.

Type

integer

None.

ParentId

integer

None.

Money

decimal number

None.

Note

string

None.

CreatedTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "2e7d3c33-dceb-487f-8a61-e30a498e3d95",
  "Icon": "sample string 1",
  "Name": "sample string 2",
  "Color": "sample string 3",
  "Type": 4,
  "ParentId": 5,
  "Money": 6.0,
  "Note": "sample string 7",
  "CreatedTime": "2026-04-14T21:56:54.9765878+07:00"
}

application/xml, text/xml

Sample:
<AddOrUpdateReceiptBookCategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.ReceiptBook">
  <Color>sample string 3</Color>
  <CreatedTime>2026-04-14T21:56:54.9765878+07:00</CreatedTime>
  <Icon>sample string 1</Icon>
  <Id>2e7d3c33-dceb-487f-8a61-e30a498e3d95</Id>
  <Money>6</Money>
  <Name>sample string 2</Name>
  <Note>sample string 7</Note>
  <ParentId>5</ParentId>
  <Type>4</Type>
</AddOrUpdateReceiptBookCategoryRequest>

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 'AddOrUpdateReceiptBookCategoryRequest'.

Response Information

Resource Description

None.