Gemstones Actions
Gemstones Import
In order to add a new gemstone to Valigara, use the gemstone_import action:
https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=gemstone_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:
Gemstone Update
In order to update an existing gemstone, use the gemstone_update action:
All of the necessary information about the updated gemstone 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:
* empty options will override existing data.
* make sure to send existing values if you want to keep them.
Gemstone Search
In order to search for a gemstone id, use the action gemstone_search:
https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=gemstone_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 gemstone ids 1,2,3
Delete gemstones
In order to delete gemstones by their gemstone id, use the action gemstone_delete:
https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=gemstone_delete&data={DELETE_DATA}
data is mandatory. An example of using DELETE_DATA is:
Gemstone List Fields
In order to retrieve list of allowed gemstone fields, use the action gemstone_listfields:
https://api.valigara.com/client/V1/?auth={ACCESS_KEY}&action=gemstone_listfields
An example of using Gemstone List Fields is: