Optimisez votre boutique grâce à la 
Marketplace Officielle de PrestaShop !

API vendeurs

Please keep in mind: all your API calls must send the variable api_key in POST in order for us to check that it is really you who sends the request.

 
GET https://api.addons.prestashop.com/request/seller/threads
Get all your threads
Fixed parameters
api_key
The API Key you find in your contributor account, under the settings tab.
Dynamic parameters
sort
You can sort your results by date, available values: ASC / DESC

limit
How many results do you want, default is: 100

page
If there are more results, navigate through pages, default is: 1

Response
{ "success": true, "threads": { "total": 13, "per_page": 100, "current_page": 1, "last_page": 1, "next_page_url": null, "prev_page_url": null, "from": 1, "to": 13, "data": [ { "id_community_thread": 1, "id_product": 11, "topic": "Perfect product", "versionps": "", "token": "321abc123", "date_add": "2016-11-15 14:17:35", "qualification": "presale", "customer_hash": "321654987abc4568789def", "id_order": 111 }, { "id_community_thread": 2, "id_product": 22, "topic": "Beautiful product", "versionps": "", "token": "321abc123", "date_add": "2016-11-15 14:17:35", "qualification": "", "customer_hash": "321654987abc4568789def", "id_order": 222 } ] } }
GET https://api.addons.prestashop.com/request/seller/threads/{id_thread}/messages
Get all thread messages
Fixed parameters
api_key
The API Key you find in your contributor account, under the settings tab.
Dynamic parameters
id_thread
The ID of the thread you want to get all messages from.

sort
You can sort your results by date, available values: ASC / DESC

limit
How many results do you want, default is: 100

page
If there are more results, navigate through pages, default is: 1

Response
{ "success": true, "messages": { "total": 2, "per_page": 100, "current_page": 1, "last_page": 1, "next_page_url": null, "prev_page_url": null, "from": 1, "to": 2, "data": [ { "id_community_message": 1, "id_community_thread": 1, "from": "seller", "status": "accepted", "message": "test", "filename": "https://addons.prestashop.com/upload/image_id.png", "date_add": "2016-11-22 10:20:45", "id_employee": 0, "seen": 1 }, { "id_community_message": 2, "id_community_thread": 1, "from": "customer", "status": "accepted", "message": "test", "filename": "", "date_add": "2016-11-23 18:31:07", "id_employee": 0, "seen": 0 } ] } }
POST https://api.addons.prestashop.com/request/seller/threads/{id_thread}/messages/add
Post an answer to a thread
Fixed parameters
api_key
The API Key you find in your contributor account, under the settings tab.
Dynamic parameters
id_thread
The ID of the thread you want to get all messages from.


message
Your answer to the thread.
Response
{ "success": true } { "success": false, "message": "An error occurred during the file upload" }
GET https://api.addons.prestashop.com/request/seller/messages
Get all messages
Fixed parameters
api_key
The API Key you find in your contributor account, under the settings tab.
Dynamic parameters
sort
You can sort your results by date, available values: ASC / DESC

limit
How many results do you want, default is: 100

page
If there are more results, navigate through pages, default is: 1

Response
{ "success": true, "messages": { "total": 5, "per_page": 100, "current_page": 1, "last_page": 1, "next_page_url": null, "prev_page_url": null, "from": 1, "to": 5, "data": [ { "id_community_message": 1, "id_community_thread": 1, "from": "customer", "status": "accepted", "message": "Help me !", "filename": "", "date_add": "2017-02-14 17:49:20", "seen": 0 }, { "id_community_message": 2, "id_community_thread": 3, "from": "seller", "status": "accepted", "message": "Super solution !", "filename": "", "date_add": "2017-02-14 11:09:13", "seen": 0 } ] }
GET https://api.addons.prestashop.com/request/seller/thread/{id_thread}
Get all messages
Fixed parameters
api_key
The API Key you find in your contributor account, under the settings tab.
Dynamic parameters

Response
{ "success": true, "thread": { "id_community_thread": 1, "id_product": 12345, "topic": "Product question", "versionps": "", "token": "58a2d6cb29d9e", "date_add": "2017-02-14 11:07:07", "qualification": "", "customer_hash": "e6f0339e59af766ec7b3ade2529b20ba6afca3001f456602ca5e76b64ceba353", "id_order": 54321, "zen": { "type": "free", "purchase_date": "2017-02-14", "nb_days_since_purchase": "1", "nb_days_left": 89, "expiration_date": "2017-05-15", "extended_date": "2018-02-14" } } }