API tools
Two official tools make working with the Shoptet REST API easier: the PHP SDK and the Postman collection. Both are generated from the Shoptet OpenAPI specification, so they cover the same endpoints as the API reference.
Shoptet PHP SDK
The Shoptet SDK is the official PHP library for the Shoptet REST API. It lets your application call the API without handling HTTP requests, authentication and data structures by hand. Its structure follows the OpenAPI specification, so you can find your way around it with the API reference.
The SDK is open source under the MIT license. It is published on Packagist and GitHub.
Requirements
- PHP 8.3 or later
- the PHP extensions curl (you can plug in your own non-cURL HTTP client instead), json and zlib
- psr/log
Composer installs and checks these for you.
Installation
Install the SDK with Composer:
composer require shoptet/api-sdk-php
For the complete setup – autoloading, manual installation, authorization and examples – see the README on GitHub and the SDK section of the API reference.
Postman collection
The Shoptet API collection lets you explore and test the Shoptet REST API in Postman. It contains every API endpoint, generated from the OpenAPI specification, so you can send requests, inspect responses and try out an integration without writing any code.
Fork the collection from the Public API Workspace (recommended)
Fork the Shoptet API collection from the Shoptet Public API Workspace. A fork lets you pull in the latest changes of the collection easily. See Postman's guide to forking elements.
Import the OpenAPI file
Alternatively, download the openapi.yaml file and import it into Postman (Import in the top-left corner). Postman creates the full collection from the specification.
The older api.postman_collection.json in the
shoptet/developers repository is deprecated – use one of
the two options above instead.
For authorization and environment variables, see the Postman collection section of the API reference.
Feedback
Send your comments and ideas about the SDK and the Postman collection to api@shoptet.com.