POST api/Code

Request Information

URI Parameters

None.

Body Parameters

CodeEntity
NameDescriptionTypeAdditional information
Deleted

boolean

None.

CodeType

string

String length: inclusive between 0 and 50

Code

string

String length: inclusive between 0 and 50

CodeDescription

string

None.

CodeCategory

string

String length: inclusive between 0 and 50

CodeCategoryDescription

string

String length: inclusive between 0 and 50

BasePrice

decimal number

None.

IsGroup

boolean

None.

Inactive

boolean

None.

SiteId

string

String length: inclusive between 0 and 50

ApiCreateDate

date

Required

ApiLastChangeDate

date

None.

CheckSum

integer

None.

RowKey

integer

Required

Id

string

Required

String length: inclusive between 0 and 50

SyncId

string

Required

String length: inclusive between 0 and 50

SubscriberId

string

Required

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "Deleted": true,
  "CodeType": "sample string 1",
  "Code": "sample string 2",
  "CodeDescription": "sample string 3",
  "CodeCategory": "sample string 4",
  "CodeCategoryDescription": "sample string 5",
  "BasePrice": 1.0,
  "IsGroup": true,
  "Inactive": true,
  "SiteId": "sample string 7",
  "ApiCreateDate": "2025-12-16T00:52:11.0964532+00:00",
  "ApiLastChangeDate": "2025-12-16T00:52:11.0964532+00:00",
  "CheckSum": 9,
  "RowKey": 10,
  "Id": "sample string 11",
  "SyncId": "sample string 12",
  "SubscriberId": "sample string 13"
}

application/xml, text/xml

Sample:
<CodeEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PVExDataModel">
  <ApiCreateDate>2025-12-16T00:52:11.0964532+00:00</ApiCreateDate>
  <ApiLastChangeDate>2025-12-16T00:52:11.0964532+00:00</ApiLastChangeDate>
  <BasePrice>1</BasePrice>
  <CheckSum>9</CheckSum>
  <Code>sample string 2</Code>
  <CodeCategory>sample string 4</CodeCategory>
  <CodeCategoryDescription>sample string 5</CodeCategoryDescription>
  <CodeDescription>sample string 3</CodeDescription>
  <CodeType>sample string 1</CodeType>
  <Deleted>true</Deleted>
  <Id>sample string 11</Id>
  <Inactive>true</Inactive>
  <IsGroup>true</IsGroup>
  <RowKey>10</RowKey>
  <SiteId>sample string 7</SiteId>
  <SubscriberId>sample string 13</SubscriberId>
  <SyncId>sample string 12</SyncId>
</CodeEntity>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.