PHPackages                             liujijun/amazon-sp-api-php-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. liujijun/amazon-sp-api-php-laravel

ActiveLibrary[API Development](/categories/api)

liujijun/amazon-sp-api-php-laravel
==================================

Amazon Selling Partner API Client

v2.1.2(3y ago)21.4k—0%2PHP

Since Dec 22Pushed 3y agoCompare

[ Source](https://github.com/liujijun95/amazon-sp-api-php-laravel)[ Packagist](https://packagist.org/packages/liujijun/amazon-sp-api-php-laravel)[ RSS](/packages/liujijun-amazon-sp-api-php-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (22)Used By (0)

SPAPI
=====

[](#spapi)

spapi-php is a http client for Amazon's Selling Partner API

Author: Lyubomir Slavilov

Before you start
----------------

[](#before-you-start)

Spapi is released as Composer package `double-break/spapi-php` with **no warranties or promises**.

There are couple classes (such as `Signer`, `Credentials`) which are essential for the API calls to work. Most of the issues will live here.

All of the actual API clients are autogenerated and given the disclaimer above - not heavily tested.

### Requirements

[](#requirements)

- php 7.3 (never tested on lower version)
- composer
- a lot of time reading Amazon SP API documentation

Install and update
------------------

[](#install-and-update)

Now you are ready to do

```
composer require liujijun/amazon-sp-api-php-laravel
```

### Package updates

[](#package-updates)

Once you have successfully installed the package, the updates are simple as normal Composer package updates. Just execute:

```
composer update liujijun/amazon-sp-api-php-laravel
```

Configuration
-------------

[](#configuration)

NameDescriptionType`http`Contains all the `Guzzle` configurationGuzzleConfiguration**LWA configuration**`refresh_token`Value of the refresh token issued by the Seller authorizing the applicationstring`client_id`The client id which is generated in the Seller Apps consolestring`client_secret`The client secret with which the client will identify itselfstring`access_token_longevity`The longevity in seconds of the token. It is basically the time period in which the token will be kept in the `TokenStorage`integer
Default: 3600**STS configuration**`access_key`The IAM role access keystring`secret_key`The IAM role secret keystring`role_arn`The ARN of the IAM rolestring`sts_session _longevity`The longevity of the STS session which will be createdinteger
Default: 3600**API configuration**`region`The region identifier for the region you are going to execute your calls againststring
 Example: `eu-west-1``host`The region specific host of the Selling Partner APIstring
 Example: `sellingpartnerapi-eu.amazon.com`Examples
--------

[](#examples)

### Simple use

[](#simple-use)

```
