Fetching an Item
Each item in Crystallize is a custom-defined shape that can be anything, including a document, a folder or a product. Since the main purpose of the Catalogue API is to fetch items from the catalogue, that is what we will be covering in this section.
API Endpoint
As mentioned in the previous section, the endpoint to retrieve data from the API is:
https://api.crystallize.com/your-tenant-identifier/catalogue
https://api.crystallize.com/your-tenant-identifier/catalogue
Fetch a Product
Fetch a Document
Similar to how the product was fetched in the section above, a document can be retrieved in the same manner. The query below gets the basic information for a document.
Fetch a Folder
Fetching a folder is just as easy. The query below fetches the plants folder that is present in the demo tenant.