{"id":15029995,"url":"https://github.com/sapientpro/ebay-inventory-sdk-php","last_synced_at":"2026-02-18T03:01:38.839Z","repository":{"id":176822993,"uuid":"641492287","full_name":"sapientpro/ebay-inventory-sdk-php","owner":"sapientpro","description":"PHP SDK for Ebay Inventory API","archived":false,"fork":false,"pushed_at":"2023-06-28T08:08:13.000Z","size":640,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-01T13:41:16.945Z","etag":null,"topics":["ebay-api","ebay-sdk","php","php8"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sapientpro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-16T15:23:05.000Z","updated_at":"2023-06-28T10:20:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb47d10b-5bdb-40d8-bf57-e01c67282088","html_url":"https://github.com/sapientpro/ebay-inventory-sdk-php","commit_stats":null,"previous_names":["sapientpro/ebay-inventory-sdk-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sapientpro/ebay-inventory-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Febay-inventory-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Febay-inventory-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Febay-inventory-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Febay-inventory-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapientpro","download_url":"https://codeload.github.com/sapientpro/ebay-inventory-sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapientpro%2Febay-inventory-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29566643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ebay-api","ebay-sdk","php","php8"],"created_at":"2024-09-24T20:12:11.054Z","updated_at":"2026-02-18T03:01:38.821Z","avatar_url":"https://github.com/sapientpro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ebay Inventory API SDK for PHP\nThe Inventory API is used to create and manage inventory, and then to publish and manage this inventory on an eBay marketplace. There are also methods in this API that will convert eligible, active eBay listings into the Inventory API model.\n\nThis PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:\n\n- API version: 1.16.2\n- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen\n\n## Requirements\n\n- PHP 8.1 and later\n- ext-curl and ext-json extensions enabled\n\n## Installation \u0026 Usage\n\nInstall the package using composer:\n\n```sh\ncomposer require sapientpro/ebay-account-sdk-php\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```php\n\u003c?php\nuse SapientPro\\EbayInventorySDK\\Configuration;\nuse SapientPro\\EbayInventorySDK\\Api\\InventoryItemApi;\nuse SapientPro\\EbayInventorySDK\\Models\\BulkInventoryItem;\n\n// Configure OAuth2 access token for authorization: api_auth\n$config = Configuration::getDefaultConfiguration()-\u003esetAccessToken('YOUR_ACCESS_TOKEN');\n\n$apiInstance = new InventoryItemApi(\n    config: $config\n);\n// you can create and fill a Model class that implements EbayModelInterface using fromArray() method\n// exception will be thrown if a property does not exist in the model class\n$body = BulkInventoryItem::fromArray([]);\n\ntry {\n    $result = $apiInstance-\u003ebulkCreateOrReplaceInventoryItem($body);\n    print_r($result);\n} catch (Exception $e) {\n    echo 'Exception when calling InventoryItemApi-\u003ebulkCreateOrReplaceInventoryItem: ', $e-\u003egetMessage(), PHP_EOL;\n}\n```\n\n*Note*: Some methods require `$contentLanguage` argument. It's value should be of string type and correspond to the LocaleEnum cases, but should be in kebab case:\nLocaleEnum::en_US -\u003e 'en-US'\n\n## Creating Models\n\nSome SDK methods require `$body` variable as a parameter. It refers to a Model class that implements EbayModelInterface.\nThere are several ways to create a Model class:\n\n### fromArray()\nYou can create a Model class using fromArray() method.\nIt will throw an exception if a property does not exist in the model class.\n\nIf the model has a property of type that implements EbayModelInterface, you must create an instance of that class using fromArray() method.\nIn this example, the property `price` is of type `ConvertedAmount` that also implements EbayModelInterface.\n\n```php\nItem::fromArray([\n    'price' =\u003e ConvertedAmount::fromArray([\n        'value' =\u003e '6.90',\n        'currency' =\u003e CurrencyCodeEnum::USD\n    )]\n])\n```\n### fromPlainArray()\n\nIt is also possible to create a Model from plain associative array.\nThe previous example can be rewritten as follows:\n\n```php\nItem::fromPlainArray([\n    'price' =\u003e [\n        'value' =\u003e '6.90',\n        'currency' =\u003e CurrencyCodeEnum::USD\n    ]\n])\n```\n\n### fromJson()\n\nIt is also possible to create a Model from JSON string.\n\n```php\nItem::fromJson('{\"price\": {\"value\": \"6.90\", \"currency\": \"USD\"}}')\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *https://api.ebay.com/sell/inventory/v1*\n\n| Class                     | Method                                                                                                             | HTTP request                                                     | Description |\n|---------------------------|--------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------|-------------|\n| *InventoryItemApi*        | [**bulkCreateOrReplaceInventoryItem**](docs/Api/InventoryItemApi.md#bulkcreateorreplaceinventoryitem)              | **POST** /bulk_create_or_replace_inventory_item                  |             |\n| *InventoryItemApi*        | [**bulkGetInventoryItem**](docs/Api/InventoryItemApi.md#bulkgetinventoryitem)                                      | **POST** /bulk_get_inventory_item                                |             |\n| *InventoryItemApi*        | [**bulkUpdatePriceQuantity**](docs/Api/InventoryItemApi.md#bulkupdatepricequantity)                                | **POST** /bulk_update_price_quantity                             |             |\n| *InventoryItemApi*        | [**createOrReplaceInventoryItem**](docs/Api/InventoryItemApi.md#createorreplaceinventoryitem)                      | **PUT** /inventory_item/{sku}                                    |             |\n| *InventoryItemApi*        | [**deleteInventoryItem**](docs/Api/InventoryItemApi.md#deleteinventoryitem)                                        | **DELETE** /inventory_item/{sku}                                 |             |\n| *InventoryItemApi*        | [**getInventoryItem**](docs/Api/InventoryItemApi.md#getinventoryitem)                                              | **GET** /inventory_item/{sku}                                    |             |\n| *InventoryItemApi*        | [**getInventoryItems**](docs/Api/InventoryItemApi.md#getinventoryitems)                                            | **GET** /inventory_item                                          |             |\n| *InventoryItemGroupApi*   | [**createOrReplaceInventoryItemGroup**](docs/Api/InventoryItemGroupApi.md#createorreplaceinventoryitemgroup)       | **PUT** /inventory_item_group/{inventoryItemGroupKey}            |             |\n| *InventoryItemGroupApi*   | [**deleteInventoryItemGroup**](docs/Api/InventoryItemGroupApi.md#deleteinventoryitemgroup)                         | **DELETE** /inventory_item_group/{inventoryItemGroupKey}         |             |\n| *InventoryItemGroupApi*   | [**getInventoryItemGroup**](docs/Api/InventoryItemGroupApi.md#getinventoryitemgroup)                               | **GET** /inventory_item_group/{inventoryItemGroupKey}            |             |\n| *ListingApi*              | [**bulkMigrateListing**](docs/Api/ListingApi.md#bulkmigratelisting)                                                | **POST** /bulk_migrate_listing                                   |             |\n| *LocationApi*             | [**createInventoryLocation**](docs/Api/LocationApi.md#createinventorylocation)                                     | **POST** /location/{merchantLocationKey}                         |             |\n| *LocationApi*             | [**deleteInventoryLocation**](docs/Api/LocationApi.md#deleteinventorylocation)                                     | **DELETE** /location/{merchantLocationKey}                       |             |\n| *LocationApi*             | [**disableInventoryLocation**](docs/Api/LocationApi.md#disableinventorylocation)                                   | **POST** /location/{merchantLocationKey}/disable                 |             |\n| *LocationApi*             | [**enableInventoryLocation**](docs/Api/LocationApi.md#enableinventorylocation)                                     | **POST** /location/{merchantLocationKey}/enable                  |             |\n| *LocationApi*             | [**getInventoryLocation**](docs/Api/LocationApi.md#getinventorylocation)                                           | **GET** /location/{merchantLocationKey}                          |             |\n| *LocationApi*             | [**getInventoryLocations**](docs/Api/LocationApi.md#getinventorylocations)                                         | **GET** /location                                                |             |\n| *LocationApi*             | [**updateInventoryLocation**](docs/Api/LocationApi.md#updateinventorylocation)                                     | **POST** /location/{merchantLocationKey}/update_location_details |             |\n| *OfferApi*                | [**bulkCreateOffer**](docs/Api/OfferApi.md#bulkcreateoffer)                                                        | **POST** /bulk_create_offer                                      |             |\n| *OfferApi*                | [**bulkPublishOffer**](docs/Api/OfferApi.md#bulkpublishoffer)                                                      | **POST** /bulk_publish_offer                                     |             |\n| *OfferApi*                | [**createOffer**](docs/Api/OfferApi.md#createoffer)                                                                | **POST** /offer                                                  |             |\n| *OfferApi*                | [**deleteOffer**](docs/Api/OfferApi.md#deleteoffer)                                                                | **DELETE** /offer/{offerId}                                      |             |\n| *OfferApi*                | [**getListingFees**](docs/Api/OfferApi.md#getlistingfees)                                                          | **POST** /offer/get_listing_fees                                 |             |\n| *OfferApi*                | [**getOffer**](docs/Api/OfferApi.md#getoffer)                                                                      | **GET** /offer/{offerId}                                         |             |\n| *OfferApi*                | [**getOffers**](docs/Api/OfferApi.md#getoffers)                                                                    | **GET** /offer                                                   |             |\n| *OfferApi*                | [**publishOffer**](docs/Api/OfferApi.md#publishoffer)                                                              | **POST** /offer/{offerId}/publish/                               |             |\n| *OfferApi*                | [**publishOfferByInventoryItemGroup**](docs/Api/OfferApi.md#publishofferbyinventoryitemgroup)                      | **POST** /offer/publish_by_inventory_item_group/                 |             |\n| *OfferApi*                | [**updateOffer**](docs/Api/OfferApi.md#updateoffer)                                                                | **PUT** /offer/{offerId}                                         |             |\n| *OfferApi*                | [**withdrawOffer**](docs/Api/OfferApi.md#withdrawoffer)                                                            | **POST** /offer/{offerId}/withdraw                               |             |\n| *OfferApi*                | [**withdrawOfferByInventoryItemGroup**](docs/Api/OfferApi.md#withdrawofferbyinventoryitemgroup)                    | **POST** /offer/withdraw_by_inventory_item_group                 |             |\n| *ProductCompatibilityApi* | [**createOrReplaceProductCompatibility**](docs/Api/ProductCompatibilityApi.md#createorreplaceproductcompatibility) | **PUT** /inventory_item/{sku}/product_compatibility              |             |\n| *ProductCompatibilityApi* | [**deleteProductCompatibility**](docs/Api/ProductCompatibilityApi.md#deleteproductcompatibility)                   | **DELETE** /inventory_item/{sku}/product_compatibility           |             |\n| *ProductCompatibilityApi* | [**getProductCompatibility**](docs/Api/ProductCompatibilityApi.md#getproductcompatibility)                         | **GET** /inventory_item/{sku}/product_compatibility              |             |\n\n## Documentation For Models\n\n - [Address](docs/Model/Address.md)\n - [Amount](docs/Model/Amount.md)\n - [Availability](docs/Model/Availability.md)\n - [AvailabilityDistribution](docs/Model/AvailabilityDistribution.md)\n - [AvailabilityWithAll](docs/Model/AvailabilityWithAll.md)\n - [BaseResponse](docs/Model/BaseResponse.md)\n - [BestOffer](docs/Model/BestOffer.md)\n - [BulkEbayOfferDetailsWithKeys](docs/Model/BulkEbayOfferDetailsWithKeys.md)\n - [BulkGetInventoryItem](docs/Model/BulkGetInventoryItem.md)\n - [BulkGetInventoryItemResponse](docs/Model/BulkGetInventoryItemResponse.md)\n - [BulkInventoryItem](docs/Model/BulkInventoryItem.md)\n - [BulkInventoryItemResponse](docs/Model/BulkInventoryItemResponse.md)\n - [BulkMigrateListing](docs/Model/BulkMigrateListing.md)\n - [BulkMigrateListingResponse](docs/Model/BulkMigrateListingResponse.md)\n - [BulkOffer](docs/Model/BulkOffer.md)\n - [BulkOfferResponse](docs/Model/BulkOfferResponse.md)\n - [BulkPriceQuantity](docs/Model/BulkPriceQuantity.md)\n - [BulkPriceQuantityResponse](docs/Model/BulkPriceQuantityResponse.md)\n - [BulkPublishResponse](docs/Model/BulkPublishResponse.md)\n - [Charity](docs/Model/Charity.md)\n - [Compatibility](docs/Model/Compatibility.md)\n - [CompatibleProduct](docs/Model/CompatibleProduct.md)\n - [Dimension](docs/Model/Dimension.md)\n - [EbayOfferDetailsWithAll](docs/Model/EbayOfferDetailsWithAll.md)\n - [EbayOfferDetailsWithId](docs/Model/EbayOfferDetailsWithId.md)\n - [EbayOfferDetailsWithKeys](docs/Model/EbayOfferDetailsWithKeys.md)\n - [Error](docs/Model/Error.md)\n - [ErrorParameter](docs/Model/ErrorParameter.md)\n - [ExtendedProducerResponsibility](docs/Model/ExtendedProducerResponsibility.md)\n - [Fee](docs/Model/Fee.md)\n - [FeeSummary](docs/Model/FeeSummary.md)\n - [FeesSummaryResponse](docs/Model/FeesSummaryResponse.md)\n - [FormatAllocation](docs/Model/FormatAllocation.md)\n - [GeoCoordinates](docs/Model/GeoCoordinates.md)\n - [GetInventoryItem](docs/Model/GetInventoryItem.md)\n - [GetInventoryItemResponse](docs/Model/GetInventoryItemResponse.md)\n - [Interval](docs/Model/Interval.md)\n - [InventoryItem](docs/Model/InventoryItem.md)\n - [InventoryItemGroup](docs/Model/InventoryItemGroup.md)\n - [InventoryItemListing](docs/Model/InventoryItemListing.md)\n - [InventoryItemResponse](docs/Model/InventoryItemResponse.md)\n - [InventoryItemWithSkuLocale](docs/Model/InventoryItemWithSkuLocale.md)\n - [InventoryItemWithSkuLocaleGroupKeys](docs/Model/InventoryItemWithSkuLocaleGroupKeys.md)\n - [InventoryItemWithSkuLocaleGroupid](docs/Model/InventoryItemWithSkuLocaleGroupid.md)\n - [InventoryItems](docs/Model/InventoryItems.md)\n - [InventoryLocation](docs/Model/InventoryLocation.md)\n - [InventoryLocationFull](docs/Model/InventoryLocationFull.md)\n - [InventoryLocationResponse](docs/Model/InventoryLocationResponse.md)\n - [ListingDetails](docs/Model/ListingDetails.md)\n - [ListingPolicies](docs/Model/ListingPolicies.md)\n - [Location](docs/Model/Location.md)\n - [LocationDetails](docs/Model/LocationDetails.md)\n - [LocationResponse](docs/Model/LocationResponse.md)\n - [MigrateListing](docs/Model/MigrateListing.md)\n - [MigrateListingResponse](docs/Model/MigrateListingResponse.md)\n - [NameValueList](docs/Model/NameValueList.md)\n - [OfferKeyWithId](docs/Model/OfferKeyWithId.md)\n - [OfferKeysWithId](docs/Model/OfferKeysWithId.md)\n - [OfferPriceQuantity](docs/Model/OfferPriceQuantity.md)\n - [OfferResponse](docs/Model/OfferResponse.md)\n - [OfferResponseWithListingId](docs/Model/OfferResponseWithListingId.md)\n - [OfferSkuResponse](docs/Model/OfferSkuResponse.md)\n - [Offers](docs/Model/Offers.md)\n - [OperatingHours](docs/Model/OperatingHours.md)\n - [PackageWeightAndSize](docs/Model/PackageWeightAndSize.md)\n - [PickupAtLocationAvailability](docs/Model/PickupAtLocationAvailability.md)\n - [PriceQuantity](docs/Model/PriceQuantity.md)\n - [PriceQuantityResponse](docs/Model/PriceQuantityResponse.md)\n - [PricingSummary](docs/Model/PricingSummary.md)\n - [Product](docs/Model/Product.md)\n - [ProductFamilyProperties](docs/Model/ProductFamilyProperties.md)\n - [ProductIdentifier](docs/Model/ProductIdentifier.md)\n - [PublishByInventoryItemGroupRequest](docs/Model/PublishByInventoryItemGroupRequest.md)\n - [PublishResponse](docs/Model/PublishResponse.md)\n - [ShipToLocationAvailability](docs/Model/ShipToLocationAvailability.md)\n - [ShipToLocationAvailabilityWithAll](docs/Model/ShipToLocationAvailabilityWithAll.md)\n - [ShippingCostOverride](docs/Model/ShippingCostOverride.md)\n - [SpecialHours](docs/Model/SpecialHours.md)\n - [Specification](docs/Model/Specification.md)\n - [Tax](docs/Model/Tax.md)\n - [TimeDuration](docs/Model/TimeDuration.md)\n - [VariesBy](docs/Model/VariesBy.md)\n - [Version](docs/Model/Version.md)\n - [Weight](docs/Model/Weight.md)\n - [WithdrawByInventoryItemGroupRequest](docs/Model/WithdrawByInventoryItemGroupRequest.md)\n - [WithdrawResponse](docs/Model/WithdrawResponse.md)\n\n## Authorization\n\n## api_auth\n\n- **Type**: OAuth\n- **Flow**: accessCode\n- **Authorization URL**: https://auth.ebay.com/oauth2/authorize\n- **Scopes**: \n - **https://api.ebay.com/oauth/api_scope/sell.inventory**: View and manage your inventory and offers\n - **https://api.ebay.com/oauth/api_scope/sell.inventory.readonly**: View your inventory and offers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapientpro%2Febay-inventory-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapientpro%2Febay-inventory-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapientpro%2Febay-inventory-sdk-php/lists"}