PUT api/PriceGroupDiscounts/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PriceGroupDiscount
NameDescriptionTypeAdditional information
Id

integer

None.

PriceGroupId

integer

None.

PriceGroupDiscountTypeId

integer

None.

Name

string

None.

Description

string

None.

Discount

decimal number

None.

Enabled

boolean

None.

PriceGroup

PriceGroup

None.

PriceGroupDiscountType

PriceGroupDiscountType

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "PriceGroupId": 2,
  "PriceGroupDiscountTypeId": 3,
  "Name": "sample string 4",
  "Description": "sample string 5",
  "Discount": 6.0,
  "Enabled": true,
  "PriceGroup": {
    "Id": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "Price": 4.0,
    "Enabled": true,
    "DateCreated": "2024-12-13T18:26:47.9780431-06:00"
  },
  "PriceGroupDiscountType": {
    "Id": 1,
    "Name": "sample string 2",
    "Enabled": true
  }
}

application/xml, text/xml

Sample:
<PriceGroupDiscount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OptiPort.Entities.Model">
  <_x003C_Description_x003E_k__BackingField>sample string 5</_x003C_Description_x003E_k__BackingField>
  <_x003C_Discount_x003E_k__BackingField>6</_x003C_Discount_x003E_k__BackingField>
  <_x003C_Enabled_x003E_k__BackingField>true</_x003C_Enabled_x003E_k__BackingField>
  <_x003C_Id_x003E_k__BackingField>1</_x003C_Id_x003E_k__BackingField>
  <_x003C_Name_x003E_k__BackingField>sample string 4</_x003C_Name_x003E_k__BackingField>
  <_x003C_PriceGroupDiscountTypeId_x003E_k__BackingField>3</_x003C_PriceGroupDiscountTypeId_x003E_k__BackingField>
  <_x003C_PriceGroupDiscountType_x003E_k__BackingField>
    <_x003C_Enabled_x003E_k__BackingField>true</_x003C_Enabled_x003E_k__BackingField>
    <_x003C_Id_x003E_k__BackingField>1</_x003C_Id_x003E_k__BackingField>
    <_x003C_Name_x003E_k__BackingField>sample string 2</_x003C_Name_x003E_k__BackingField>
  </_x003C_PriceGroupDiscountType_x003E_k__BackingField>
  <_x003C_PriceGroupId_x003E_k__BackingField>2</_x003C_PriceGroupId_x003E_k__BackingField>
  <_x003C_PriceGroup_x003E_k__BackingField>
    <_x003C_DateCreated_x003E_k__BackingField>2024-12-13T18:26:47.9780431-06:00</_x003C_DateCreated_x003E_k__BackingField>
    <_x003C_Description_x003E_k__BackingField>sample string 3</_x003C_Description_x003E_k__BackingField>
    <_x003C_Enabled_x003E_k__BackingField>true</_x003C_Enabled_x003E_k__BackingField>
    <_x003C_Id_x003E_k__BackingField>1</_x003C_Id_x003E_k__BackingField>
    <_x003C_Name_x003E_k__BackingField>sample string 2</_x003C_Name_x003E_k__BackingField>
    <_x003C_Price_x003E_k__BackingField>4</_x003C_Price_x003E_k__BackingField>
  </_x003C_PriceGroup_x003E_k__BackingField>
</PriceGroupDiscount>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.