POST api/V3/Product/CreateUpdateProductBasket

Api for Create / Update Product Basket and Create Product-Basket Mappings

Request Information

URI Parameters

None.

Body Parameters

Products Basket to be created/updated

Collection of V3.ProductBasket
NameDescriptionTypeAdditional information
BasketName

Basket Name

string

Required

String length: inclusive between 0 and 100

BasketErpId

Basket ErpId

string

Required

String length: inclusive between 0 and 100

BasketColour

Basket Colour

string

String length: inclusive between 0 and 100

BasketConfiguration

Basket Configuration

string

String length: inclusive between 0 and 100

DisplayCategoryErpId

Display Category ErpId

string

Required

String length: inclusive between 0 and 100

Products

List of Products with their Quantity

Collection of ProductQuantity

None.

Deactivated

Basket Deactivated Or not

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "BasketName": "sample string 1",
    "BasketErpId": "sample string 2",
    "BasketColour": "sample string 3",
    "BasketConfiguration": "sample string 4",
    "DisplayCategoryErpId": "sample string 5",
    "Products": [
      {
        "ProductErpId": "sample string 1",
        "Quantity": 2
      },
      {
        "ProductErpId": "sample string 1",
        "Quantity": 2
      }
    ],
    "Deactivated": true
  },
  {
    "BasketName": "sample string 1",
    "BasketErpId": "sample string 2",
    "BasketColour": "sample string 3",
    "BasketConfiguration": "sample string 4",
    "DisplayCategoryErpId": "sample string 5",
    "Products": [
      {
        "ProductErpId": "sample string 1",
        "Quantity": 2
      },
      {
        "ProductErpId": "sample string 1",
        "Quantity": 2
      }
    ],
    "Deactivated": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductBasket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models">
  <ProductBasket>
    <BasketColour>sample string 3</BasketColour>
    <BasketConfiguration>sample string 4</BasketConfiguration>
    <BasketErpId>sample string 2</BasketErpId>
    <BasketName>sample string 1</BasketName>
    <Deactivated>true</Deactivated>
    <DisplayCategoryErpId>sample string 5</DisplayCategoryErpId>
    <Products>
      <ProductQuantity>
        <ProductErpId>sample string 1</ProductErpId>
        <Quantity>2</Quantity>
      </ProductQuantity>
      <ProductQuantity>
        <ProductErpId>sample string 1</ProductErpId>
        <Quantity>2</Quantity>
      </ProductQuantity>
    </Products>
  </ProductBasket>
  <ProductBasket>
    <BasketColour>sample string 3</BasketColour>
    <BasketConfiguration>sample string 4</BasketConfiguration>
    <BasketErpId>sample string 2</BasketErpId>
    <BasketName>sample string 1</BasketName>
    <Deactivated>true</Deactivated>
    <DisplayCategoryErpId>sample string 5</DisplayCategoryErpId>
    <Products>
      <ProductQuantity>
        <ProductErpId>sample string 1</ProductErpId>
        <Quantity>2</Quantity>
      </ProductQuantity>
      <ProductQuantity>
        <ProductErpId>sample string 1</ProductErpId>
        <Quantity>2</Quantity>
      </ProductQuantity>
    </Products>
  </ProductBasket>
</ArrayOfProductBasket>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.