# API tools

URL: https://shoptet.dev/tools-resources/api-tools

Two official tools make working with the [Shoptet REST API](https://api.docs.shoptet.com/shoptet-api/openapi) 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](https://github.com/shoptet/api-sdk?tab=MIT-1-ov-file#readme) . It is published on [Packagist](https://packagist.org/packages/shoptet/api-sdk-php) and [GitHub](https://github.com/shoptet/api-sdk) .

### Requirements

- PHP 8.3 or later
- the PHP extensions [curl](https://www.php.net/manual/en/book.curl.php) (you can plug in your own non-cURL HTTP client instead), [json](https://www.php.net/manual/en/book.json.php) and zlib
- [psr/log](https://www.php-fig.org/psr/psr-3/)
Composer installs and checks these for you.

### Installation

Install the SDK with Composer:

```bash
composer require shoptet/api-sdk-php
```

For the complete setup – autoloading, manual installation, authorization and examples – see the [README](https://github.com/shoptet/api-sdk/blob/master/README.md) on GitHub and the [SDK section](https://api.docs.shoptet.com/shoptet-api/openapi/section/sdk) of the API reference.

## Postman collection

The Shoptet API collection lets you explore and test the Shoptet REST API in [Postman](https://www.postman.com/) . 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](https://www.postman.com/shoptet-developers/shoptet-public-api-workspace) . A fork lets you pull in the latest changes of the collection easily. See Postman's guide to [forking elements](https://learning.postman.com/docs/collaborating-in-postman/using-version-control/forking-elements/) .

### Import the OpenAPI file

Alternatively, download the [openapi.yaml](https://github.com/shoptet/developers/blob/master/openapi/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](https://github.com/shoptet/developers/tree/master/postman) is deprecated – use one of the two options above instead.

For authorization and environment variables, see the [Postman collection section](https://api.docs.shoptet.com/shoptet-api/openapi/section/postman-collection) of the API reference.

## Feedback

Send your comments and ideas about the SDK and the Postman collection to [api@shoptet.com](mailto:api@shoptet.com) .
