1. Product Import

In order to add a new product to Valigara, use the product_import action:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_import&data={IMPORT_DATA}

All of the necessary information about the imported product is sent using the data parameter, which is mandatory for this action.

The IMPORT_DATA is a JSON array. Its structure should look similar to:

2. Product Update

In order to update an existing product, use the product_update action:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_update&data={UPDATE_DATA}

All of the necessary information about the updated product is sent using the data parameter, which is mandatory for this action.

The UPDATE_DATA is a JSON array. Its structure should look similar to:

Important:

* skip data you don’t wish to update.

* empty options will override existing data.

* when sending arrays such as gemstones or images, make sure to send existing values if you want to keep them.

* to change default behaviour for “metals“,”gemstones” and “images” you may append to request optional parametr “actions” as follows:

if some parametr inside “actions” will be not defined default value will be used

3. Product Search

In order to search for a product id, use the action product_search:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_search[&data={SEARCH_DATA}]

data is optional. if you wish to filter your search result, set SEARCH_DATA as:

search action result example:

which means that our search returned product ids 1,2,3

4. Sold Product

In order to notify Valigara of a sold product, use the action product_sold:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_sold&data={SOLD_DATA}

data is mandatory. An example of using SOLD_DATA is:

quantity refers to the quantity that was sold (not the quantity left!)

sold_action is optional, its value can be one of: “remove”, “revise” or “no_action” (default)
remove – removes product from all channels
revise – revise product (please note that when the product’s quantity is less than 1, you will receive a 201 error)

5. Delete products

In order to delete products by their product id, use the action product_delete:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_delete&data={DELETE_DATA}

data is mandatory. An example of using DELETE_DATA is:

The channels parameter is optional. if it is set to true, the product won’t be deleted from its associated channels (Ebay, Etsy, etc.).

By default, the `channels` parameter is set to false, meaning: when you delete a product, it will be deleter from Valigara.com and from all of the associated channels.

5. Product List Fields

In order to retrive list of allowed product fields, use the action product_listfields:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_listfields

An example of using Product List Fields is:

Optional parameter ‘preview’ will show the list of product fields in readable mode for preview purposes only:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_listfields&preview=1

6. Product List Listing Accounts

In order to retrive list of allowed product listings accounts, use the action listings_accounts_get:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=listings_accounts_get

An example of using Product List Listing accounts is:

7. Product Update Listings

In order to update product listings, use the action product_update_listings:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_update_listings&data={DATA}

All of the necessary information about the product & listing accounts is sent using the data parameter, which is mandatory for this action.

The DATA is a JSON array.

An DATA example for all Listing Accounts is:

An DATA example for specified Listing Accounts only is:

An response example of using Product Update Listings is:

8. Product Export

In order to export single product, use the action product_export:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=product_export&data={DATA}

The DATA is a JSON array.

An DATA example:

An success response example:

An failed response example:


9. Products Export

In order to export multiple products, use the action products_export:

https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=products_export&data={DATA}

The DATA is a JSON array.

An DATA example:

An success response example:

An failed response example: