PHPackages                             mehr-it/sp-api-sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mehr-it/sp-api-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mehr-it/sp-api-sdk
==================

Amazon Selling Partner API - PHP SDK

2.0.1(3y ago)07.1k—0%MITPHPPHP ^7.4 || ~8.0 || ~8.1

Since Feb 3Pushed 3y agoCompare

[ Source](https://github.com/mehr-it/sp-api-sdk)[ Packagist](https://packagist.org/packages/mehr-it/sp-api-sdk)[ Docs](https://openapi-generator.tech)[ RSS](/packages/mehr-it-sp-api-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (7)Used By (0)

Amazon Selling Partner API - PHP SDK
====================================

[](#amazon-selling-partner-api---php-sdk)

This repository is not an official Amazon PHP library for their SP API.

[![social-preview](https://repository-images.githubusercontent.com/372302167/e16f602b-c263-48ee-a36a-a06177d1fa68)](https://repository-images.githubusercontent.com/372302167/e16f602b-c263-48ee-a36a-a06177d1fa68)

### Installations

[](#installations)

```
composer install mehr-it/sp-api-sdk

```

This library is not in a stable stage yet, please use with caution.

### Available SDKs

[](#available-sdks)

[SellingPartnerSDK](/src/MehrIt/AmazonSellingPartner/SellingPartnerSDK.php) - Facade for all SDK's

- [APlusSDK](/src/MehrIt/AmazonSellingPartner/Api/AplusContentApi/APlusSDK.php)
- [AuthorizationSDK](/src/MehrIt/AmazonSellingPartner/Api/AuthorizationApi/AuthorizationSDK.php)
- [CatalogItemSDK](/src/MehrIt/AmazonSellingPartner/Api/CatalogApi/CatalogItemSDK.php)
- [DeprecatedCatalogItemSDK](/src/MehrIt/AmazonSellingPartner/Api/CatalogApi/CatalogItemDeprecatedSDK.php)
- [FBAInboundSDK](/src/MehrIt/AmazonSellingPartner/Api/FbaInboundApi/FBAInboundSDK.php)
- [FBAInventorySDK](/src/MehrIt/AmazonSellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php)
- [FulfillmentInboundSDK](/src/MehrIt/AmazonSellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php)
- [FBASmallAndLightSDK](/src/MehrIt/AmazonSellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php)
- [FeedsSDK](/src/MehrIt/AmazonSellingPartner/Api/FeedsApi/FeedsSDK.php)
- [FinancesSDK](/src/MehrIt/AmazonSellingPartner/Api/DefaultApi/FinancesSDK.php)
- [FulfillmentOutboundSDK](/src/MehrIt/AmazonSellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php)
- [ListingsItemsSDK](/src/MehrIt/AmazonSellingPartner/Api/ListingsApi/ListingsItemsSDK.php)
- [MessagingSDK](/src/MehrIt/AmazonSellingPartner/Api/MessagingApi/MessagingSDK.php)
- [NotificationsSDK](/src/MehrIt/AmazonSellingPartner/Api/NotificationsApi/NotificationsSDK.php)
- [OrdersSDK](/src/MehrIt/AmazonSellingPartner/Api/OrdersV0Api/OrdersSDK.php)
- [Shipment/OrdersSDK](/src/MehrIt/AmazonSellingPartner/Api/ShipmentApi/OrdersSDK.php)
- [ProductFeesSDK](/src/MehrIt/AmazonSellingPartner/Api/FeesApi/ProductFeesSDK.php)
- [ProductPricingSDK](/src/MehrIt/AmazonSellingPartner/Api/ProductPricingApi/ProductPricingSDK.php)
- [ProductTypesDefinitionsSDK](/src/MehrIt/AmazonSellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php)
- [ReportsSDK](/src/MehrIt/AmazonSellingPartner/Api/ReportsApi/ReportsSDK.php)
- [SalesSDK](/src/MehrIt/AmazonSellingPartner/Api/SalesApi/SalesSDK.php)
- [SellersSDK](/src/MehrIt/AmazonSellingPartner/Api/SellersApi/SellersSDK.php)
- [ServicesSDK](/src/MehrIt/AmazonSellingPartner/Api/ServiceApi/ServicesSDK.php)
- [ShipmentInvoicingSDK](/src/MehrIt/AmazonSellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php)
- [ShippingSDK](/src/MehrIt/AmazonSellingPartner/Api/ShippingApi/ShippingSDK.php)
- [SolicitationsSDK](/src/MehrIt/AmazonSellingPartner/Api/SolicitationsApi/SolicitationsSDK.php)
- [TokensSDK](/src/MehrIt/AmazonSellingPartner/Api/TokensApi/TokensSDK.php)
- [UploadsSDK](/src/MehrIt/AmazonSellingPartner/Api/UploadsApi/UploadsSDK.php)
- VendorSDK
    - [VendorInvoicesSDK](/src/MehrIt/AmazonSellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php)
    - [VendorOrdersSDK](/src/MehrIt/AmazonSellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php)
    - [VendorShipmentsSDK](/src/MehrIt/AmazonSellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php)
    - [VendorTransactionStatusSDK](/src/MehrIt/AmazonSellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php)
    - [VendorDirectFulfillmentTransactionsSDK](/src/MehrIt/AmazonSellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php)
    - [VendorDirectFulfillmentShippingSDK](/src/MehrIt/AmazonSellingPartner/Api/VendorShippingApi/VendorDirectFulfillmentShippingSDK.php)
    - [VendorDirectFulfillmentShippingSDK - Labels](/src/MehrIt/AmazonSellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php)
    - [VendorDirectFulfillmentOrdersSDK](/src/MehrIt/AmazonSellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php)
    - [VendorDirectFulfillmentPaymentsSDK](/src/MehrIt/AmazonSellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php)
- ExternalFulfillmentSDK
    - [ExternalFulfillmentInventorySDK](src/MehrIt/AmazonSellingPartner/Api/UpdateInventoryApi/ExternalFulfillmentInventorySDK.php)
    - [ExternalFulfillmentShipmentsSDK](src/MehrIt/AmazonSellingPartner/Api/ShipmentRetrievalApi/ExternalFulfillmentShipmentsSDK.php)

### Authorization

[](#authorization)

In order to start using SP API you need to first register as a Developer and create application. Whole process is described in [Amazon Official Guides](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md).

Amazon recommends to use Role IAM when creating application however this requires and additional API request in order to obtain access token. It's easier to use User IAM and just make sure that the user has following Inline Policy

```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "execute-api:Invoke",
            "Resource": "arn:aws:execute-api:*:*:*"
        }
    ]
}

```

#### IAM User

[](#iam-user)

Example of changing refresh token into access token.

```
