Amazon has deprecated product and inventory feeds for Sellers without an easy way to transition to their new JSON-based feeds. We did the painstaking research so you don't have to.
JSON_LISTINGS_FEED:
use SellingPartnerApi\FeedTransformer\Transformer;
$json = Transformer::fromFile(
'POST_PRODUCT_IMAGE_DATA', // Old feed type
'path/to/old/feed.xml', // Path to old feed file
'ATVPDKIKX0DER' // Amazon marketplace ID
);
Copied!