Using the PrestaShop Web Service -

Table of content

Using the PrestaShop Web Service

PrestaShop enables merchants to give third-party tools access to their shop's database through a CRUD API, otherwise called a web service.

Learning how to use the web service

Documentation

The quickest way to learn the intricacies of the PrestaShop web service is to use the web service one-page documentationarrow-up-right.

Tutorial

The slowest but most complete way to learn about the web service is to follow the tutorialarrow-up-right.

It demonstrates how to use the PrestaShop web service by creating a CRUD application using the dedicated PHP library.

Implementations

Files

Web service library

The latest version of the PSWebServiceLibrary.php file can be found on our code repository: https://github.com/PrestaShop/PrestaShop-webservice-lib/blob/master/PSWebServiceLibrary.phparrow-up-right To download the file:

  1. Copy/paste the file into an empty text local file, using for instance Notepad.

  2. Save the file as PSWebServiceLibrary.php

You can also directly download a zip archive of all the files in this repository, including the example files, by clicking here: https://github.com/PrestaShop/PrestaShop-webservice-lib/archive/master.ziparrow-up-right

Examples files

All the example files can be found on our code repository: https://github.com/PrestaShop/PrestaShop-webservice-lib/tree/master/examplesarrow-up-right

Last updated

Was this helpful?