Spec - Store

Table Of Contents

Get Store Item Categories

This function allows the caller to retrieve Store Item Categories from the database. Search parameters should be specified inside the tag. Store Item Categories can be retrieved by category ID, category name,or group (ID or Name). Leaving all search criteria blank would return all of the Store Item Categories in the account.

Input

Specify search criteria within the GetStoreItemCategoriesRequest tag. Search criteria can be category_id, category_name, group_id (return all item categories associated with a group), group_name. If no search criteria, return all Store Item Categories in the account.

Output

Success or failure. For each Store Item Category found: Category_id, Category_name, Group_id, Group_name.

Example Request 1

<GetStoreItemCategoriesRequest></GetStoreItemCategoriesRequest>

Example Request 2

<GetStoreItemCategoriesRequest category_id="4"></GetStoreItemCategoriesRequest>

Example Request 3

<GetStoreItemCategoriesRequest group_name="my_group"></GetStoreItemCategoriesRequest>

Successful Response

<GetStoreItemCategoriesResponse>
    <Result>Success</Result>
    <StoreItemCategories>
        <StoreItemCategory>
            <Category_id>4</Category_id>
            <Category_name>My Category 4</Category_name>
            <Group_id>8</Group_id>
            <Group_name>Test Group</Group_name>
        </StoreItemCategory>
        <StoreItemCategory>
            <Category_id>5</Category_id>
            <Category_name>My Category 5</Category_name>
            <Group_id>10</Group_id>
            <Group_name>Another Test Group</Group_name>
        </StoreItemCategory>
    </StoreItemCategories>
</GetStoreItemCategoriesResponse>

Add Store Item Categories

This function allows the caller to add one or more Store Item Categories.

Input

Output

For each Store Item Category, success or failure.

Example Request

<AddStoreItemCategoriesRequest>
    <StoreItemCategories>
        <StoreItemCategory request_id="a1b2c3">
            <Category_name>My Item Category 1</Category_name>
            <Group_id>8</Group_id>
        </StoreItemCategory>
        <StoreItemCategory request_id="d4e5f6">
            <Category_name>My Item Category 2</Category_name>
            <Group_id>9</Group_id>
        </StoreItemCategory>
    </StoreItemCategories>
</AddStoreItemCategoriesRequest>

Successful Response

<AddStoreItemCategoriesResponse>
    <StoreItemCategories>
        <StoreItemCategory request_id="a1b2c3">
            <Category_id>41</Category_id>
            <Result>Success</Result>
        </StoreItemCategory>
        <StoreItemCategory request_id="d4e5f6">
            <Category_id>42</Category_id>
            <Result>Success</Result>
        </StoreItemCategory>
    </StoreItemCategories>
</AddStoreItemCategoriesResponse>

Edit Store Item Categories

This function allows the caller to edit one or more Store Item Categories.

Input

Search criteria for each Store Item Category to edit. Search criteria can be:

A single Store Item Category to edit must be returned by each set of search criteria.

For each Store Item Category to edit:

Output

For each Store Item Category, success or failure.

Example Request

<EditStoreItemCategoriesRequest>
    <StoreItemCategories>
        <StoreItemCategory category_id="9" request_id="a1b2c3">
            <Category_name>My New Item Category 3</Category_name>
            <Group_id>9</Group_id>
        </StoreItemCategory>
        <StoreItemCategory category_name="My Item Category 2" request_id="d4e5f6">
            <Category_name>My Item New Category 4</Category_name>
            <Group_id>11</Group_id>
        </StoreItemCategory>
    </StoreItemCategories>
</EditStoreItemCategoriesRequest>

Successful Response

<EditStoreItemCategoriesResponse>
    <StoreItemCategories>
        <StoreItemCategory request_id="a1b2c3">
            <Category_id>9</Category_id>
            <Result>Success</Result>
        </StoreItemCategory>
        <StoreItemCategory request_id="d4e5f6">
            <Category_id>21</Category_id>
            <Result>Success</Result>
        </StoreItemCategory>
    </StoreItemCategories>
</EditStoreItemCategoriesResponse>

Get Store Items

This function allows the caller to retrieve Store Items from the database. Search parameters should be specified inside the tag. Store Items can be retrieved by item ID, item name, category ID, category name, or group (ID or Name). Leaving all search criteria blank would return all of the Store Items in the account.

Input

Specify search criteria within the GetStoreItemsRequest tag. Search criteria can be item_id, item_name, category_id, category_name, group_id (return all store items assoicated with a group), group_name. If no search criteria, return all Store Items in the account.

Output

Success or failure. For each Store Item found: Item_id, Item_name, Category_id, Category_name, Group_id, Group_name, Featured_item (Y or N), Item_image_url, Item_description, Item_custom_fieldname1, Item_custom_fieldoptions1, Item_custom_fieldoptionscosts1, Item_custom_inventories1, Item_custom_fieldname2, Item_custom_fieldoptions2, Item_custom_fieldoptionscosts2, Item_custom_fieldname3, Item_custom_fieldoptions3, Item_custom_fieldoptionscosts3, Shipping_options, Shipping_costs, Purchase_conversion_script, Download_url, Num_downloads, Item_price, Item_cost, Current_inventory, Annual_recurring_charge, Monthly_recurring_charge.

Example Request 1

<GetStoreItemsRequest></GetStoreItemsRequest>

Example Request 2

<GetStoreItemsRequest item_id="212"></GetStoreItemsRequest>

Example Request 3

<GetStoreItemsRequest group_name="my_group"></GetStoreItemsRequest>

Successful Response

<GetStoreItemsResponse>
    <Result>Success</Result>
    <StoreItems>
        <StoreItem>
            <Item_id>28</Item_id>
            <Item_name>Test Item 1</Item_name>
            <Category_id>14</Category_id>
            <Category_name>My Category 14</Category_name>
            <Group_id>27</Group_id>
            <Group_name>Test Group 27</Group_name>
            <Featured_item></Featured_item>
            <Item_image_url></Item_image_url>
            <Item_description>This is a description of this item.</Item_description>
            <Item_custom_fieldname1></Item_custom_fieldname1>
            <Item_custom_fieldoptions1></Item_custom_fieldoptions1>
            <Item_custom_fieldoptionscosts1></Item_custom_fieldoptionscosts1>
            <Item_custom_inventories1></Item_custom_inventories1>
            <Item_custom_fieldname2></Item_custom_fieldname2>
            <Item_custom_fieldoptions2></Item_custom_fieldoptions2>
            <Item_custom_fieldoptionscosts2></Item_custom_fieldoptionscosts2>
            <Item_custom_fieldname3></Item_custom_fieldname3>
            <Item_custom_fieldoptions3></Item_custom_fieldoptions3>
            <Item_custom_fieldoptionscosts3></Item_custom_fieldoptionscosts3>
            <Shipping_options></Shipping_options>
            <Shipping_costs></Shipping_costs>
            <Purchase_conversion_script></Purchase_conversion_script>
            <Download_url></Download_url>
            <Num_downloads></Num_downloads>
            <Item_price>199.95</Item_price>
            <Item_cost></Item_cost>
            <Current_inventory></Current_inventory>
            <Annual_recurring_charge>N</Annual_recurring_charge>
            <Monthly_recurring_charge>N</Monthly_recurring_charge>
        </StoreItem>
        <StoreItem>
            <Item_id>31</Item_id>
            <Item_name>Test Item 2</Item_name>
            <Category_id>15</Category_id>
            <Category_name>My Category 15</Category_name>
            <Group_id>28</Group_id>
            <Group_name>Test Group 28</Group_name>
            <Featured_item></Featured_item>
            <Item_image_url></Item_image_url>
            <Item_description>This is a description of another item.</Item_description>
            <Item_custom_fieldname1></Item_custom_fieldname1>
            <Item_custom_fieldoptions1></Item_custom_fieldoptions1>
            <Item_custom_fieldoptionscosts1></Item_custom_fieldoptionscosts1>
            <Item_custom_inventories1></Item_custom_inventories1>
            <Item_custom_fieldname2></Item_custom_fieldname2>
            <Item_custom_fieldoptions2></Item_custom_fieldoptions2>
            <Item_custom_fieldoptionscosts2></Item_custom_fieldoptionscosts2>
            <Item_custom_fieldname3></Item_custom_fieldname3>
            <Item_custom_fieldoptions3></Item_custom_fieldoptions3>
            <Item_custom_fieldoptionscosts3></Item_custom_fieldoptionscosts3>
            <Shipping_options></Shipping_options>
            <Shipping_costs></Shipping_costs>
            <Purchase_conversion_script></Purchase_conversion_script>
            <Download_url></Download_url>
            <Num_downloads></Num_downloads>
            <Item_price>39.95</Item_price>
            <Item_cost></Item_cost>
            <Current_inventory></Current_inventory>
            <Annual_recurring_charge>N</Annual_recurring_charge>
            <Monthly_recurring_charge>N</Monthly_recurring_charge>
        </StoreItem>
    </StoreItems>
</GetStoreItemsResponse>

Add Store Items

This function allows the caller to add one or more Store Items.

Input

Output

For each Store Item, success or failure, Item_id.

Example Request

<AddStoreItemsRequest>
    <StoreItems>
        <StoreItem request_id="a1b2c3">
            <Group_id>1</Group_id>
            <Item_name>Test Item 1</Item_name>
            <Item_description>Test Item 1 Description</Item_description>
            <Category_id>23</Category_id>
       </StoreItem>
        <StoreItem request_id="d4e5f6">
            <Group_id>1</Group_id>
            <Item_name>Test Item 1</Item_name>
            <Item_description>Test Item 1 Description</Item_description>
            <Category_id>23</Category_id>
        </StoreItem>
    </StoreItems>
</AddStoreItemsRequest>

Successful Response

<AddStoreItemsResponse>
    <StoreItems>
        <StoreItem request_id="a1b2c3">
            <Item_id>214</Item_id>
            <Result>Success</Result>
        </StoreItem>
        <StoreItem request_id="d4e5f6">
            <Item_id>215</Item_id>
            <Result>Success</Result>
        </StoreItem>
    </StoreItems>
</AddStoreItemsResponse>

Edit Store Items

This function allows the caller to edit one or more Store Items.

Input

Search criteria for each Store Item to edit. Search criteria can be:

A single Store Item to edit must be returned by each set of search criteria.

For each Store Item to edit, the following parameters may be changed:

Output

For each Store Item, success or failure, along with the Item ID.

Example Request

<EditStoreItemsRequest>
    <StoreItems>
        <StoreItem item_id="39" request_id="a1b2c3">
            <Group_id>21</Group_id>
            <Item_name>Test New Item 10</Item_name>
            <Item_description>Test New Item 10 Description</Item_description>
            <Category_id>27</Category_id>
        </StoreItem>
        <StoreItem item_name="My Item 2" request_id="d4e5f6">
            <Group_id>24</Group_id>
            <Item_name>Test New Item 22</Item_name>
            <Item_description>Test New Item 22 Description</Item_description>
            <Category_id>29</Category_id>
        </StoreItem>
    </StoreItems>
</EditStoreItemsRequest>

Successful Response

<EditStoreItemsResponse>
    <StoreItems>
        <StoreItem request_id="a1b2c3">
            <Item_id>39</Category_id>
            <Result>Success</Result>
        </StoreItem>
        <StoreItem request_id="d4e5f6">
            <Item_id>41</Item_id>
            <Result>Success</Result>
        </StoreItem>
    </StoreItems>
</EditStoreItemsResponse>

Add Store Shopping Cart

This function allows the caller to a shopping cart, consisting of one or more items..

Input

Group_id (required), CreationDate. For each item in cart, Item_id, Custom_option1, Custom_option2, Custom_option3, Shipping_option, Quantity, SubtotalAmount, Times_downloaded.

Output

Success or failure, Cart_id.

Example Request

<AddStoreShoppingCartRequest>
    <Group_id>1</Group_id>
    <CreationDate>2014-01-23 12:23:34</CreationDate>
    <Items>
        <Item>
            <Item_id>1</Item_id>
            <Quantity>2</Quantity>
            <SubtotalAmount>35.00</SubtotalAmount>
       </Item>
        <Item>
            <Item_id>2</Item_id>
            <Quantity>3</Quantity>
            <SubtotalAmount>45.00</SubtotalAmount>
        </Item>
    </Items>
</AddStoreShoppingCartRequest>

Successful Response

<AddStoreShoppingCartResponse>
    <Cart_id>432</Cart_id>
    <Result>Success</Result>
</AddStoreShoppingCartResponse>

Add Store Purchase

This function allows the caller to mark a shopping cart as purchased, with an associated transaction ID..

Input

Cart_id (required), Group_id, PurchaserEmail, PurchaserIP, TransactionDate (required), TransactionAmount (required), Transaction_id (required).

Output

Success or failure.

Example Request

<AddStorePurchaseRequest>
    <Group_id>1</Group_id>
    <Cart_id>232</Cart_id>
    <CreationDate>2014-01-23 12:23:34</CreationDate>
    <PurchaserEmail>myemail@myemail.com</PurchaserEmail>
    <PurchaserIP>127.0.0.1</PurchaserIP>
    <TransactionDate>2014-02-05</TransactionDate>
    <TransactionAmount>59.00</TransactionAmount>
    <Transaction_id>3987a89f0908d</Transaction_id>
</AddStorePurchaseRequest>

Successful Response

<AddStorePurchaseResponse>
    <Result>Success</Result>
</AddStorePurchaseResponse>