Flat file feeds

Supported feed types

The feed transformer library has support for these deprecated flat file feed types:

  • POST_FLAT_FILE_INVLOADER_DATA

  • POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA

  • POST_FLAT_FILE_LISTINGS_DATA

We're working on support for these feed types:

  • POST_FLAT_FILE_CONVERGENCE_LISTINGS_DATA

  • POST_FLAT_FILE_BOOKLOADER_DATA

  • POST_UIEE_BOOKLOADER_DATA

If you need support for one of the feed types that is still in development, let us know and we'll prioritize it.

Common required parameters

All flat file feed types require an extra merchantId parameter to be passed to the converter methods. You can find your region-specific Amazon merchant ID here.

(If you primarily sell outside the US and that merchant ID link doesn't work for you, try copying it and replacing sellercentral.amazon.com with the Seller Central URL that you usually use.)

Here's how to pass the merchant id:

use SellingPartnerApi\FeedTransformer\Transformer;
use SellingPartnerApi\FeedTransformer\FeedTypes\Invloader;

$feedFile = 'path/to/your/feed.tab';
$json = Transformer::fromFile(
    Invloader::$feedType,  // -> POST_FLAT_FILE_INVLOADER_DATA
    $feedFile,
    'ATVPDKIKX0DER',
    ['merchantId' => 'A2DI..........']
);

$jsonFeedPath = 'path/to/new/feed.json';
file_put_contents($jsonFeedPath, json_encode($json));

Check the documentation pages for the specific feed type(s) you're working with to see if you need to pass other feed-type-specific parameters.

Last updated