DELETE api/chgServiceCode/{id}

Delete a single record from the ServiceCodes table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

UpsertRetOfchgServiceCodeDb
NameDescriptionTypeAdditional information
returnID

integer

None.

results

Collection of ValidationResult

None.

returnItem

chgServiceCodeDb

None.

displayMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "returnID": 1,
  "results": null,
  "returnItem": {
    "results": null,
    "ServiceCodeID": 1,
    "ServiceCode": 2,
    "ServiceName": "sample string 3",
    "ServiceUnit": "sample string 4",
    "ServiceCharge": 5.0,
    "ServiceIsCostBased": true,
    "ServiceCostMarkup": 1.0,
    "ServiceDescription": "sample string 6",
    "ServiceProcessCode": "sample string 7",
    "ExternalReference": "sample string 8",
    "ManualShipment": true,
    "ManualShipmentByPallet": true,
    "IsActive": true,
    "CreatedBy": 12,
    "CreatedDate": "2025-12-06T23:42:53.1885539+00:00",
    "UpdatedBy": 14,
    "UpdatedDate": "2025-12-06T23:42:53.1885539+00:00"
  },
  "displayMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<UpsertRetOfchgServiceCodeDb66KPc_SrH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility">
  <displayMessage>sample string 1</displayMessage>
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
  <returnID>1</returnID>
  <returnItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
    <d2p1:CreatedBy>12</d2p1:CreatedBy>
    <d2p1:CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:42:53.1885539Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:CreatedDate>
    <d2p1:ExternalReference>sample string 8</d2p1:ExternalReference>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:ManualShipment>true</d2p1:ManualShipment>
    <d2p1:ManualShipmentByPallet>true</d2p1:ManualShipmentByPallet>
    <d2p1:ServiceCharge>5</d2p1:ServiceCharge>
    <d2p1:ServiceCode>2</d2p1:ServiceCode>
    <d2p1:ServiceCodeID>1</d2p1:ServiceCodeID>
    <d2p1:ServiceCostMarkup>1</d2p1:ServiceCostMarkup>
    <d2p1:ServiceDescription>sample string 6</d2p1:ServiceDescription>
    <d2p1:ServiceIsCostBased>true</d2p1:ServiceIsCostBased>
    <d2p1:ServiceName>sample string 3</d2p1:ServiceName>
    <d2p1:ServiceProcessCode>sample string 7</d2p1:ServiceProcessCode>
    <d2p1:ServiceUnit>sample string 4</d2p1:ServiceUnit>
    <d2p1:UpdatedBy>14</d2p1:UpdatedBy>
    <d2p1:UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:42:53.1885539Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:UpdatedDate>
  </returnItem>
</UpsertRetOfchgServiceCodeDb66KPc_SrH>