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

Required

ProductSelectionId

Gets or sets the product selection identifier.

integer

Required

PriceExVAT

Gets or sets the price (exclude VAT).

decimal number

Required

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

Required

ForeignPriceIncVAT

Gets or sets the foreign price (include VAT).

decimal number

Required

QtyAvailable

Gets or sets the qty available.

decimal number

Required

QtyOnHand

Gets or sets the qty on hand.

decimal number

Required

QtyReserved

Gets or sets the qty reserved.

decimal number

Required

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,
  "QtyAvailable": 8.0,
  "QtyOnHand": 9.0,
  "QtyReserved": 10.0
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

Response Information

Resource Description


ProductSelectionProduct
NameDescriptionTypeAdditional information
VATTariffId

Gets or sets the VAT tariff identifier.

integer

Required

ProductSelectionId

Gets or sets the product selection identifier.

integer

Required

ShopId

Gets the ShopId of the ProductSelection.

integer

None.

PriceExVAT

Gets or sets the price (exclude VAT).

decimal number

Required

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

Required

ForeignPriceIncVAT

Gets or sets the foreign price (include VAT).

decimal number

Required

QtyAvailable

Gets or sets the qty available.

decimal number

Required

QtyOnHand

Gets or sets the qty on hand.

decimal number

Required

QtyReserved

Gets or sets the qty reserved.

decimal number

Required

Response Formats

application/json, text/json

Sample:
{
  "VATTariffId": 1,
  "ProductSelectionId": 2,
  "ShopId": 3,
  "PriceExVAT": 1.0,
  "SpecialPriceExVAT": 1.0,
  "ExchangeRate": 1.0,
  "DisableRecalculate": true,
  "Id": 5,
  "Active": true,
  "ProductId": 7,
  "ProductCode": "sample string 8",
  "ForeignPriceExVAT": 1.0,
  "ForeignPriceIncVAT": 1.0,
  "QtyAvailable": 9.0,
  "QtyOnHand": 10.0,
  "QtyReserved": 11.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>5</Id>
  <Active>true</Active>
  <ProductId>7</ProductId>
  <ProductCode>sample string 8</ProductCode>
  <ForeignPriceExVAT>1</ForeignPriceExVAT>
  <ForeignPriceIncVAT>1</ForeignPriceIncVAT>
  <QtyAvailable>9</QtyAvailable>
  <QtyOnHand>10</QtyOnHand>
  <QtyReserved>11</QtyReserved>
  <VATTariffId>1</VATTariffId>
  <ProductSelectionId>2</ProductSelectionId>
  <ShopId>3</ShopId>
  <PriceExVAT>1</PriceExVAT>
  <SpecialPriceExVAT>1</SpecialPriceExVAT>
  <ExchangeRate>1</ExchangeRate>
  <DisableRecalculate>true</DisableRecalculate>
</ProductSelectionProduct>