The Webservice, and the Admin API of PrestaShop 9
PrestaShop’s Webservice gives third-party tools access to the shop’s database through a CRUD API. It answers in XML by default and in JSON on request, and its documentation follows the PrestaShop version: 1.7, 8 and 9. PrestaShop 9 adds a second API, the Admin API, built on API Platform 3, with OAuth.
Keys and tokens
On the Webservice, the merchant creates a key in the back office, under Advanced Parameters › Webservice, and picks what it may do on each resource. The key is 32 characters long and goes in HTTP Basic auth as the username, with no password. The docs state no expiry, and the merchant can disable a key at any time. The Admin API of PrestaShop 9 uses OAuth2 instead; for server-to-server calls its docs recommend the client credentials flow.
| API | Credential | Lifetime |
|---|---|---|
| Webservice | A 32-character key, as the HTTP Basic username | No expiry stated; can be disabled at any time |
| Admin API | An API client with scopes, through OAuth2 client credentials | Set on the client, in seconds; 3,600 in the docs’ example |
Scroll sideways to see every column.
Rate limits
PrestaShop publishes no rate limit for the Webservice or the Admin API. Each store runs on the merchant’s own server, so the limit is whatever that server and its host allow.
Products and combinations
Variants are combinations: a separate combinations resource linked to its product by id_product and made of product option values. A combination’s price is an impact on the product’s price, not a price of its own. The docs set no maximum number of combinations per product.
Writing prices, one at a time
The Webservice documents one resource per request and no batch endpoint. The Admin API of PrestaShop 9 has bulk endpoints for status, duplication and deletion, but none for prices. A large price update is one request per product or combination, at whatever pace the merchant’s server allows.
Pagination and hooks
Webservice lists take limit, either a count or an offset and a count, with no documented maximum; the Admin API pages with offset and limit, 50 items by default. PrestaShop sends no webhooks: a module can listen to hooks such as actionProductUpdate, which runs after a product is updated, and send its own calls.
GET /api/products?display=[id,reference,price]&limit=100,50&output_format=JSON Authorization: Basic …