POST v1/ProductSelections/{productSelectionId}/ProductSelectionProducts

Add a new Product to the Product selection.

Request Information

Requires Authorization!

URI Parameters

NameDescriptionTypeAdditional information
productSelectionId

The ProductSelection Id

integer

Required.

Body Parameters

ProductSelectionProductChanges
NameDescriptionTypeAdditional information
VATTariffId

Gets or sets the VAT tariff identifier.

integer

None.

ProductSelectionId

Gets or sets the product selection identifier.

integer

Required

PriceExVAT

Gets or sets the price (exclude VAT).

decimal number

None.

SpecialPriceExVAT

Gets or sets the special price (exclude VAT).

decimal number

None.

ExchangeRate

Gets or sets the exchange rate.

decimal number

Required

DisableRecalculate

Gets or sets a value indicating whether the recalculation is disabled.

boolean

Required

Id

Gets or sets the identifier.

integer

Must be 0

Active

Gets or sets a value indicating whether this is active.

boolean

Required

ProductId

Gets or sets the product identifier.

integer

Required

ProductCode

Gets or sets the product code.

string

None.

ForeignPriceExVAT

Gets or sets the foreign price (exclude VAT).

decimal number

None.

ForeignPriceIncVAT

Gets or sets the foreign price (include VAT).

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "VATTariffId": 1,
  "ProductSelectionId": 2,
  "PriceExVAT": 1.0,
  "SpecialPriceExVAT": 1.0,
  "ExchangeRate": 1.0,
  "DisableRecalculate": true,
  "Id": 4,
  "Active": true,
  "ProductId": 6,
  "ProductCode": "sample string 7",
  "ForeignPriceExVAT": 1.0,
  "ForeignPriceIncVAT": 1.0
}

application/xml, text/xml

Sample:
<ProductSelectionProductChanges xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>4</Id>
  <Active>true</Active>
  <ProductId>6</ProductId>
  <ProductCode>sample string 7</ProductCode>
  <ForeignPriceExVAT>1</ForeignPriceExVAT>
  <ForeignPriceIncVAT>1</ForeignPriceIncVAT>
  <VATTariffId>1</VATTariffId>
  <ProductSelectionId>2</ProductSelectionId>
  <PriceExVAT>1</PriceExVAT>
  <SpecialPriceExVAT>1</SpecialPriceExVAT>
  <ExchangeRate>1</ExchangeRate>
  <DisableRecalculate>true</DisableRecalculate>
</ProductSelectionProductChanges>

Response Information

Resource Description


ProductSelectionProduct
NameDescriptionTypeAdditional information
VATTariffId

Gets or sets the VAT tariff identifier.

integer

None.

ProductSelectionId

Gets or sets the product selection identifier.

integer

Required

PriceExVAT

Gets or sets the price (exclude VAT).

decimal number

None.

SpecialPriceExVAT

Gets or sets the special price (exclude VAT).

decimal number

None.

ExchangeRate

Gets or sets the exchange rate.

decimal number

Required

DisableRecalculate

Gets or sets a value indicating whether the recalculation is disabled.

boolean

Required

Id

Gets or sets the identifier.

integer

Must be 0

Active

Gets or sets a value indicating whether this is active.

boolean

Required

ProductId

Gets or sets the product identifier.

integer

Required

ProductCode

Gets or sets the product code.

string

None.

ForeignPriceExVAT

Gets or sets the foreign price (exclude VAT).

decimal number

None.

ForeignPriceIncVAT

Gets or sets the foreign price (include VAT).

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "VATTariffId": 1,
  "ProductSelectionId": 2,
  "PriceExVAT": 1.0,
  "SpecialPriceExVAT": 1.0,
  "ExchangeRate": 1.0,
  "DisableRecalculate": true,
  "Id": 4,
  "Active": true,
  "ProductId": 6,
  "ProductCode": "sample string 7",
  "ForeignPriceExVAT": 1.0,
  "ForeignPriceIncVAT": 1.0
}

application/xml, text/xml

Sample:
<ProductSelectionProduct xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>4</Id>
  <Active>true</Active>
  <ProductId>6</ProductId>
  <ProductCode>sample string 7</ProductCode>
  <ForeignPriceExVAT>1</ForeignPriceExVAT>
  <ForeignPriceIncVAT>1</ForeignPriceIncVAT>
  <VATTariffId>1</VATTariffId>
  <ProductSelectionId>2</ProductSelectionId>
  <PriceExVAT>1</PriceExVAT>
  <SpecialPriceExVAT>1</SpecialPriceExVAT>
  <ExchangeRate>1</ExchangeRate>
  <DisableRecalculate>true</DisableRecalculate>
</ProductSelectionProduct>