PUT api/audSurchargeType/{id}

Update an existing record from the SurchargeType table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

audSurchargeTypeDb
NameDescriptionTypeAdditional information
SurchargeTypeID

integer

None.

SurchargeTypeName

string

Required

Max length: 50

BulkBackBill

boolean

None.

GroupBackBill

boolean

None.

AllowBackBillMargin

boolean

None.

DefaultBackBillMargin

decimal number

None.

DefaultBillOption

character

None.

DefaultAddAmount

decimal number

None.

DefaultAddPercent

decimal number

None.

DefaultBackBillFuel

boolean

None.

GroupCharges

boolean

None.

ReRateBuffer

decimal number

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "SurchargeTypeID": 1,
  "SurchargeTypeName": "sample string 2",
  "BulkBackBill": true,
  "GroupBackBill": true,
  "AllowBackBillMargin": true,
  "DefaultBackBillMargin": 6.0,
  "DefaultBillOption": "A",
  "DefaultAddAmount": 8.0,
  "DefaultAddPercent": 9.0,
  "DefaultBackBillFuel": true,
  "GroupCharges": true,
  "ReRateBuffer": 12.0,
  "CreatedBy": 13,
  "CreatedDate": "2025-12-06T23:43:09.5811583+00:00",
  "UpdatedBy": 15,
  "UpdatedDate": "2025-12-06T23:43:09.5811583+00:00"
}

application/xml, text/xml

Sample:
<audSurchargeTypeDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <AllowBackBillMargin>true</AllowBackBillMargin>
  <BulkBackBill>true</BulkBackBill>
  <CreatedBy>13</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:43:09.5811583Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <DefaultAddAmount>8</DefaultAddAmount>
  <DefaultAddPercent>9</DefaultAddPercent>
  <DefaultBackBillFuel>true</DefaultBackBillFuel>
  <DefaultBackBillMargin>6</DefaultBackBillMargin>
  <DefaultBillOption>65</DefaultBillOption>
  <GroupBackBill>true</GroupBackBill>
  <GroupCharges>true</GroupCharges>
  <ReRateBuffer>12</ReRateBuffer>
  <SurchargeTypeID>1</SurchargeTypeID>
  <SurchargeTypeName>sample string 2</SurchargeTypeName>
  <UpdatedBy>15</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:43:09.5811583Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</audSurchargeTypeDb>

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

Response Information

Resource Description

audSurchargeTypeDb
NameDescriptionTypeAdditional information
SurchargeTypeID

integer

None.

SurchargeTypeName

string

Required

Max length: 50

BulkBackBill

boolean

None.

GroupBackBill

boolean

None.

AllowBackBillMargin

boolean

None.

DefaultBackBillMargin

decimal number

None.

DefaultBillOption

character

None.

DefaultAddAmount

decimal number

None.

DefaultAddPercent

decimal number

None.

DefaultBackBillFuel

boolean

None.

GroupCharges

boolean

None.

ReRateBuffer

decimal number

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "SurchargeTypeID": 1,
  "SurchargeTypeName": "sample string 2",
  "BulkBackBill": true,
  "GroupBackBill": true,
  "AllowBackBillMargin": true,
  "DefaultBackBillMargin": 6.0,
  "DefaultBillOption": "A",
  "DefaultAddAmount": 8.0,
  "DefaultAddPercent": 9.0,
  "DefaultBackBillFuel": true,
  "GroupCharges": true,
  "ReRateBuffer": 12.0,
  "CreatedBy": 13,
  "CreatedDate": "2025-12-06T23:43:09.5811583+00:00",
  "UpdatedBy": 15,
  "UpdatedDate": "2025-12-06T23:43:09.5811583+00:00"
}

application/xml, text/xml

Sample:
<audSurchargeTypeDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <AllowBackBillMargin>true</AllowBackBillMargin>
  <BulkBackBill>true</BulkBackBill>
  <CreatedBy>13</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:43:09.5811583Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <DefaultAddAmount>8</DefaultAddAmount>
  <DefaultAddPercent>9</DefaultAddPercent>
  <DefaultBackBillFuel>true</DefaultBackBillFuel>
  <DefaultBackBillMargin>6</DefaultBackBillMargin>
  <DefaultBillOption>65</DefaultBillOption>
  <GroupBackBill>true</GroupBackBill>
  <GroupCharges>true</GroupCharges>
  <ReRateBuffer>12</ReRateBuffer>
  <SurchargeTypeID>1</SurchargeTypeID>
  <SurchargeTypeName>sample string 2</SurchargeTypeName>
  <UpdatedBy>15</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:43:09.5811583Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</audSurchargeTypeDb>