Amazon Feed Transformer
  • Installation
  • Getting started
  • Feed Types
    • XML feeds
      • Inventory Availability
      • Product Pricing
      • Product Images
      • Product Relationships
      • Products
    • Flat file feeds
      • Inventory Loader
      • Price and Quantity Update
      • Flat File Listings
      • Convergence Listings
      • Flat File Bookloader
      • UIEE Bookloader
  • Validation
Powered by GitBook
On this page
  • Parameters
  • merchantId
  • shippingGroupMap
  • Usage
  • Known columns
  1. Feed Types
  2. Flat file feeds

Price and Quantity Update

PreviousInventory LoaderNextFlat File Listings

Last updated 3 months ago

Parameters

merchantId

Required

There is documentation on how to retrieve your merchantId in the section of the Flat file feeds page.

shippingGroupMap

Required if the merchant_shipping_group_name field is present in the feed file being converted.

This is a mapping of your account's shipping group names to their internal Amazon identifiers. Instructions on how to generate this mapping are here:

Usage

To convert a POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA feed to the newer JSON_LISTINGS_FEED format:

use SellingPartnerApi\FeedTransformer\Transformer;
use SellingPartnerApi\FeedTransformer\FeedTypes\PriceAndQuantityUpdateOnly;

// See the documentation referenced in the Parameters section for more information
// about what's going on in this line
$shippingGroupMap = Transformer::parseShippingGroups($jsonSchemaUrl);

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

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

Known columns

  • sku

  • price

  • quantity

  • handling-time

This is an exhaustive list of the columns we support for this feed type. If you are successfully passing feed files with additional columns, and we'll add support for the ones we're missing.

let us know
shippingGroupMap
Common required parameters