CyberStore Documentation
AddItem

Adds a new Item to the CyberStore catalog, while verifying or optionally creating the stock code in SYSPRO.

AddItem Post Parameters

The AddItem operation has the following supported properties for posting queries:

Note:

Parameters surrounded by square brackets (e.g., [TemplateStockCode] ) are optional and do not have to be sent with the request.

Parameter

Description

ClientCode

A unique value assigned to your application after it is registered within the CyberStore Console > CyberStore Connect maintenance screen. You must include this value in your request.

SessionToken

A unique value assigned by the CyberStore application to a user’s unique session. It is created after a successful login to the website via the CyberStore login screen. You must include this value in your request. Information about how to receive and capture the SessionToken is described in more detail later in this document.

ClientSession_ID

A unique identifier created by the application that runs on your registered client application. You need to capture it and send it with your request. CyberStore Connect utilizes this value, combined with the SessionToken and ClientCode, to validate the authenticity of the request.

StockCode

The stock code of the CyberStore Item to add.

 

TemplateStockCode

The SYSPRO stock code to use as a template for creating a new stock code.

Description

The description of the Item.

LongDescription2

The Long Description 2 of the Item.

Categories

The Categories section of the Item that can contain one or more Category definitions.

Categories/Category

A complete Category path in “category/subcategory/sub-subcategory” form.

[Headline]

The headline of the Item.

[SubHeadline]

The sub headline of the Item.

[ShortDescription]

The short description of the Item.

[LongDescription]

The long description of the Item returned as HTML.

[UnitsOfMeasure]

The information about the Item’s available units of measure.

[UnitsOfMesure/Stocking]

The information about the Item’s stocking unit of measure.

[UnitsOfMeasure/Stocking/UOM]

The unit of measure label for the Item’s stocking unit of measure.

[UnitsOfMeasure/Stocking/Conversion]

The conversion factor for stocking unit of measure.

[UnitsOfMeasure/Alternate]

The information about the Item’s alternate unit of measure.

[UnitsOfMeasure/Alternate/UOM]

The unit of measure label for the Item’s alternate unit of measure.

[UnitsOfMeasure/Alternate/Conversion]

The conversion factor for the alternate unit of measure.

[UnitsOfMeasure/Other]

The Item’s other unit of measure.

[UnitsOfMeasure/Other/UOM]

The unit of measure label for the Item’s other unit of measure.

[UnitsOfMeasure/Other/Conversion]

The conversion factor for the other unit of measure.

[IsHotBuy]

The hot buy status of the Item.

Values = true / false

[IsFeatured]

The featured Item status of the Item.

Values = true / false

[PDFLocation]

The fully qualified URL of the PDF linked to the Item.

[Inventory]

The details about the Item in inventory.

[Inventory/IsLimited]

The status of the Limited to Available Inventory setting for the Item.

Values = true / false

[Inventory/WarehouseToUse]

The warehouse to use for the Item.

[Inventory/UseStockCodeWarehouse]

The status of the Use Stock Code Warehouse override setting on the Item.

Values = true / false

[Inventory/Mass]

The mass of the Item’s stocking unit of measure.

[Inventory/Volume]

The volume of the Item’s stocking unit of measure.

AddItem Query Results

When you submit a request to the AddItem operation, the response message is returned as an XML string. A query posted with the required, authenticated parameters returns results similar to the XML string below:

   
Example AddItem Query Results
Copy Code
<?xml version="1.0" encoding="utf-8"?>
<CyberStoreConnect>
  <Profile>
    <FirstName><![CDATA[Susan]]></FirstName>
    <LastName><![CDATA[Brown]]></LastName>
    <FullName><![CDATA[Susan Brown]]></FullName>
    <Username><![CDATA[sbrown@bikesblades.com]]></Username>
    <EmailAddress><![CDATA[sbrown@bikesblades.com]]></EmailAddress>
    <CustomerClass><![CDATA[Wholesaler]]></CustomerClass>
    <Customer><![CDATA[000002]]></Customer>
    <CustomerName><![CDATA[Bikes & Blades – North]]></CustomerName>
    <ViewList><![CDATA[Wholesaler View]]></ViewList>
  </Profile>
  <StockCode><![CDATA[A100]]></StockCode>
  <TemplateStockCode>><![CDATA[CS2-NEWITEM]]></TemplateStockCode>
  <Description><![CDATA[15 Speed Mountain Bike Boys]]></Description>
  <LongDescription2><![CDATA[Distribution]]></ LongDescription2>
  <Categories>
    <Category><![CDATA[Bikes]]></Category>
    <Category><![CDATA[Bikes/Moutain Bikes]]</Category>
  </Categories>
  <Headline><![CDATA[Mountain Bike]]></Headline>
  <SubHeadline><![CDATA[15 Speed - Boys]]></SubHeadline>
  <ShortDescription>
    <![CDATA[Amazing value on a lightweight aluminum bike!]]>
  </ShortDescription>
  <LongDescription>
    <![CDATA[<p>Why alloy aluminum? It's lightweight and rugged. Why dual suspension?
      All the bump-absorption you need on or off the pavement. To top it off, with a
      Gizmo 15-speed grip shifting system, this bike will match all of your riding
      needs.</p>]]>
  </LongDescription>
  <UnitsOfMeasure>
    <Stocking>
      <UOM><![CDATA[EA]]></</UOM>
      <Conversion><![CDATA[1.000]]></Conversion>
    </Stocking>
    <Alternate>
      <UOM><![CDATA[CS]]></</UOM>
      <Conversion><![CDATA[12.000]]></Conversion>
    </Alternate>
    <Other>
      <UOM>PAL</UOM>
      <Conversion><![CDATA[144.000]]></Conversion>
    <Other>
    <PreferredUOM><![CDATA[EA]]></PreferredUOM>
  </UnitsOfMeasure>
  <IsHotBuy><![CDATA[true]]></IsHotBuy>
  <IsFeatured><![CDATA[false]]></IsFeatured>
  <PDFLocation><![CDATA[http://www.theoutdoorscompany.com/A100.pdf]]></PDFLocation>
  <ItemDetailPageURL>
    <![CDATA[]]>http://www.theoutdoorscompany.com/Ecommerce/CatalogItemDetail.aspx?IID=579]]>
  </ItemDetailPageURL>
  <Inventory>
    <IsLimited><![CDATA[false]]></IsLimited>
    <WarehouseToUse><![CDATA[N]]></WharehouseToUse>
    <UseStockCodeWarehouse><![CDATA[false]]></UseStockCodeWarehouse>
    <Mass><![CDATA[10.0000000]]></Mass>
    <Volume><![CDATA[0.3000000]]></Volume>
    <OverSized><![CDATA[false]]></OverSized>
    <InsuranceRequired><![CDATA[Bikes]]></InsuranceRequired>
    <LeadTimeMessage><![CDATA[2 to 5 Days]]></LeadTimeMessage>
    <DaysToShip><![CDATA[0]]></DaysToShip>
  </Inventory>
  <EventResponse>
    <Module>API</Module>
    <Severity>0</Severity>
    <Number>000</Number>
    <Message>Success!</Message>
  </EventResponse>
</CyberStoreConnect>

 

The XML string above contains the following elements:

 

Element

Description

Profile

The information about the logged-in user’s session profile. See GetProfile for the complete definition of the Profile Results.

StockCode

The StockCode of the CyberStore Item to add.

TemplateStockCode

The SYSPRO stock code to use as a template for creating a new stock code. If this value is blank, a new Item will not be created.

Description

The description of the Item.

LongDescription2

The Long Description 2 of the Item.

Categories

The Categories section of the Item that can contain one or more Category definitions.

Categories/Category

A complete Category path in “category/subcategory/sub-subcategory” form.

Headline

The headline of the Item.

SubHeadline

The sub headline of the Item.

ShortDescription

The short description of the Item.

LongDescription

The long description of the Item returned as HTML.

UnitsOfMeasure

The information about the Item’s available units of measure.

UnitsOfMesure/Stocking

The information about the Item’s stocking unit of measure.

UnitsOfMeasure/Stocking/UOM

The unit of measure label for the Item’s stocking unit of measure.

UnitsOfMeasure/Stocking/Conversion

The conversion factor for stocking unit of measure.

UnitsOfMeasure/Alternate

The information about the Item’s alternate unit of measure.

UnitsOfMeasure/Alternate/UOM

The unit of measure label for the Item’s alternate unit of measure.

UnitsOfMeasure/Alternate/Conversion

The conversion factor for the alternate unit of measure.

UnitsOfMeasure/Other

The information about the Item’s other unit of measure.

UnitsOfMeasure/Other/UOM

The unit of measure label for the Item’s other unit of measure.

UnitsOfMeasure/Other/Conversion

The conversion factor for other unit of measure.

UnitsOfMeasure/PreferredUOM

The CyberStore preferred unit of measure label.

IsHotBuy

The hot buy status of the Item.

Values = true / false

IsFeatured

The featured Item status of the Item.

Values = true / false

PDFLocation

The fully qualified URL of the PDF linked to the Item.

Inventory

The details about the Item in inventory.

Inventory/IsLimited

The status of the Limited to Available Inventory setting for the Item.

Values = true / false

Inventory/WarehouseToUse

The warehouse to use for the Item.

Inventory/UseStockCodeWarehouse

The status of the Use Stock Code Warehouse override setting on the Item.

Values = true / false

Inventory/Mass

The mass of the Item’s stocking unit of measure.

Inventory/Volume

The volume of the Item’s stocking unit of measure.

EventResponse

The details about the success or failure of the request including a module, severity, response number and message. A response number of ‘000’ with a message of “Success!” indicates that the request has been completed successfully.

EventResponse/Module

The CyberStore module that is responsible for the response. Typically, “API” is returned.

EventResponse/Severity

The severity of the response.

Values = 0 to 9

EventResponse/Number

The value that uniquely identifies the specific response.

 

EventResponse/Message

The message returned by CyberStore that describes what occurred.

See Also

CyberStore Connect Response Number Codes