POST api/BundleSku/AddUpdateBundleSku

Request Information

URI Parameters

None.

Body Parameters

AddUpdateBundleSku
NameDescriptionTypeAdditional information
businessId

integer

None.

userId

integer

None.

bundleSkuId

integer

None.

isBundleSkuDeactivated

integer

None.

primaryItemId

integer

None.

primarySkuCode

string

None.

primarySkuQuantity

integer

None.

secondaryItemId

integer

None.

secondarySkuCode

string

None.

secondarySkuQuantity

integer

None.

bizWiseDetails

Collection of BundleSkuInput

None.

Request Formats

application/json, text/json

Sample:
{
  "businessId": 1,
  "userId": 2,
  "bundleSkuId": 3,
  "isBundleSkuDeactivated": 4,
  "primaryItemId": 5,
  "primarySkuCode": "sample string 6",
  "primarySkuQuantity": 7,
  "secondaryItemId": 8,
  "secondarySkuCode": "sample string 9",
  "secondarySkuQuantity": 10,
  "bizWiseDetails": [
    {
      "businessId": 1,
      "primarySkuPrice": 2.0,
      "secondarySkuPrice": 3.0,
      "bundlePrice": 4.0,
      "isActive": 5
    },
    {
      "businessId": 1,
      "primarySkuPrice": 2.0,
      "secondarySkuPrice": 3.0,
      "bundlePrice": 4.0,
      "isActive": 5
    }
  ]
}

application/xml, text/xml

Sample:
<AddUpdateBundleSku xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <bizWiseDetails>
    <BundleSkuInput>
      <bundlePrice>4</bundlePrice>
      <businessId>1</businessId>
      <isActive>5</isActive>
      <primarySkuPrice>2</primarySkuPrice>
      <secondarySkuPrice>3</secondarySkuPrice>
    </BundleSkuInput>
    <BundleSkuInput>
      <bundlePrice>4</bundlePrice>
      <businessId>1</businessId>
      <isActive>5</isActive>
      <primarySkuPrice>2</primarySkuPrice>
      <secondarySkuPrice>3</secondarySkuPrice>
    </BundleSkuInput>
  </bizWiseDetails>
  <bundleSkuId>3</bundleSkuId>
  <businessId>1</businessId>
  <isBundleSkuDeactivated>4</isBundleSkuDeactivated>
  <primaryItemId>5</primaryItemId>
  <primarySkuCode>sample string 6</primarySkuCode>
  <primarySkuQuantity>7</primarySkuQuantity>
  <secondaryItemId>8</secondaryItemId>
  <secondarySkuCode>sample string 9</secondarySkuCode>
  <secondarySkuQuantity>10</secondarySkuQuantity>
  <userId>2</userId>
</AddUpdateBundleSku>

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

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:52",
  "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>