POST api/Store/AddRetailCartCache

Request Information

URI Parameters

None.

Body Parameters

RetailCartCache
NameDescriptionTypeAdditional information
CustomerID

integer

None.

BusinessId

integer

None.

LoginId

integer

None.

products

Collection of RetailCart

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": 1,
  "BusinessId": 1,
  "LoginId": 1,
  "products": [
    {
      "ProductId": 1,
      "Quantity": 2,
      "Replace": true,
      "StockPointID": 3,
      "BuyingRate": 4,
      "FCLocationID": 5
    },
    {
      "ProductId": 1,
      "Quantity": 2,
      "Replace": true,
      "StockPointID": 3,
      "BuyingRate": 4,
      "FCLocationID": 5
    }
  ]
}

application/xml, text/xml

Sample:
<RetailCartCache xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <BusinessId>1</BusinessId>
  <CustomerID>1</CustomerID>
  <LoginId>1</LoginId>
  <products>
    <RetailCart>
      <BuyingRate>4</BuyingRate>
      <FCLocationID>5</FCLocationID>
      <ProductId>1</ProductId>
      <Quantity>2</Quantity>
      <Replace>true</Replace>
      <StockPointID>3</StockPointID>
    </RetailCart>
    <RetailCart>
      <BuyingRate>4</BuyingRate>
      <FCLocationID>5</FCLocationID>
      <ProductId>1</ProductId>
      <Quantity>2</Quantity>
      <Replace>true</Replace>
      <StockPointID>3</StockPointID>
    </RetailCart>
  </products>
</RetailCartCache>

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

Response Information

Resource Description

VCAPIResponse
NameDescriptionTypeAdditional information
Version

string

None.

dateTime

string

None.

StatusCode

integer

None.

ErrorMessage

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Version": "1.0.0",
  "dateTime": "2024/09/19 18:24:23",
  "StatusCode": 1,
  "ErrorMessage": "sample string 2",
  "Result": {}
}

application/xml, text/xml

Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result />
  <StatusCode>1</StatusCode>
</VCAPIResponse>