Skip to main content
Tutorials

Use kreezalid API to upgrade your marketplace(WIP)

By 26 April 2023No Comments

The Kreezalid API gives you access to a large amount of data that you can use as you wish.

In this article, we will see some of the basic ways to use our API.

To begin with, you can go to this page to learn what is an API and the requirements to use our API.

We also advise you to read this article from our help center about the use of Postman to make requests to our API before reading this article.

Retrieve,update and add content to your marketplace

 

The most basic use of our API but also one of the most useful is the retrieval of your data.

Indeed with our API you can retrieve the list of the user of your marketplace for example.

To do that, you just have to do a GET request to https://yoursubdomain.mykreezalid.com/api/v1/users

//SCREEN POSTMAN DE LA REQUETE//

(of course you have to replace “yoursubdomain” by the name of your marketplace)

Moreover, you can also update the data of your marketplace with the Kreezalid API.

Indeed if you want to update the data of one our your listings or one of your users, you can do that by making a PUT or a PATCH request to https://yoursubdomain.mykreezalid.com/api/v1/listings/listing_id or https://yoursubdomain.mykreezalid.com/api/v1/users/user_id

//AUTRE SCREEN DE POSTMAN//

Finally you can do all the other types of request like POST to create a listing or a user, DELETE,…

Customize elements of your marketplace

 

We have just seen how to make an HTML request to our API to retrieve or update your data.

Now we will see how to call our API to customize the pages and/or email notifications of your marketplace.

You might have seen this in your marketplace’s dashboard

//SCREEN ENCART AVEC DES EXEMPLES D APPEL API (email notification)//

These are some example of calls that you can do with our API.

To insert a call in your templates you will have to write :
{{ api_call }}

/!the spaces between the api calls and the curly braces are important/!

Furthermore, if you need to use a loop when you are making API calls, you will need to write your loop like this :

{% for fee in order.smart_fees %}
     <p>{{ fee.fee_amount }}</p>
{% endfor %}

(in this example, we wanted to display the fees of the order)

These calls give you great freedom when customizing your templates.

 

 

Leave a Reply