POST Categories/Category_Insert
Request Information
URI Parameters
None.
Body Parameters
Category| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryId | integer |
None. |
|
| CategoryNumber | integer |
None. |
|
| CategoryPrimaryName | string |
None. |
|
| CategorySecondaryName | string |
None. |
|
| CategoryName | string |
None. |
|
| CategoryExtraCharge | decimal number |
None. |
|
| CategoryExtraChargeDate | date |
None. |
|
| CategoryTaxType | TaxType |
None. |
|
| CategoryService | boolean |
None. |
|
| IsActive | boolean |
None. |
|
| CompanyId | integer |
None. |
|
| BranchId | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| ModifiedBy | integer |
None. |
|
| TaxClassificationNo | integer |
None. |
|
| GroupId | integer |
None. |
|
| IsMaterial | boolean |
None. |
|
| FromWhere | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CategoryId": 1,
"CategoryNumber": 2,
"CategoryPrimaryName": "sample string 3",
"CategorySecondaryName": "sample string 4",
"CategoryName": "sample string 5",
"CategoryExtraCharge": 6.0,
"CategoryExtraChargeDate": "2025-10-29T06:03:52.0374684+03:00",
"CategoryTaxType": 0,
"CategoryService": true,
"IsActive": true,
"CompanyId": 9,
"BranchId": 10,
"CreatedBy": 11,
"ModifiedBy": 12,
"TaxClassificationNo": 13,
"GroupId": 14,
"IsMaterial": true,
"FromWhere": 1
}
application/xml, text/xml
Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POCO"> <BranchId>10</BranchId> <CategoryExtraCharge>6</CategoryExtraCharge> <CategoryExtraChargeDate>2025-10-29T06:03:52.0374684+03:00</CategoryExtraChargeDate> <CategoryId>1</CategoryId> <CategoryName>sample string 5</CategoryName> <CategoryNumber>2</CategoryNumber> <CategoryPrimaryName>sample string 3</CategoryPrimaryName> <CategorySecondaryName>sample string 4</CategorySecondaryName> <CategoryService>true</CategoryService> <CategoryTaxType>Taxable</CategoryTaxType> <CompanyId>9</CompanyId> <CreatedBy>11</CreatedBy> <FromWhere>1</FromWhere> <GroupId>14</GroupId> <IsActive>true</IsActive> <IsMaterial>true</IsMaterial> <ModifiedBy>12</ModifiedBy> <TaxClassificationNo>13</TaxClassificationNo> </Category>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorCode | integer |
None. |
|
| ErrorMessage | string |
None. |
|
| IsScusses | boolean |
None. |
|
| ResponseDetails | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorCode": 1,
"ErrorMessage": "sample string 2",
"IsScusses": true,
"ResponseDetails": {}
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accounting.API.Models"> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 2</ErrorMessage> <IsScusses>true</IsScusses> <ResponseDetails /> </Response>