PrestaShop
PrestaShop is an open source web application that allows you to create an online store for the purpose of e-commerce. You can use PrestaShop to fetch commercial information about your users who have an e-commerce business.
This provider supports these data types:
Link your user PrestaShop web site to Qard API:
To retrieve your user commercial data, you will have to:
1. Enable PrestaShop provider:
(PUT) /api/v6/providers/prestashop
{
"enable": true
}
2. Settings PrestaShop provider:
(PUT) /api/v6/providers/prestashop/settings
{
"auto_connect": true
}
3. Create a data connection:
(POST) /api/v6/users/{userId}/data-connections
{
"provider_name": "prestashop",
"requested_data_types": [
"COMMERCE_LOCATION",
"COMMERCE_CUSTOMER",
"COMMERCE_PRODUCT",
"COMMERCE_ORDER"
]
}
4. Create a synchronization
After finishing the connecting process by your user, and after validating that the data connection status is CONNECTED, you can run a new synchronization.
(POST) /api/v6/users/{userId}/sync
{
"data_types": [
"COMMERCE_LOCATION",
"COMMERCE_CUSTOMER",
"COMMERCE_PRODUCT",
"COMMERCE_ORDER"
]
}
To verify that you are receiving your user's commercial data, check out these endpoints:
- GET
/api/v6/users/{userId}/commerce-locations
- GET
/api/v6/users/{userId}/commerce-customers
- GET
/api/v6/users/{userId}/commerce-products
- GET
/api/v6/users/{userId}/commerce-orders