> For the complete documentation index, see [llms.txt](https://docs.highsidelabs.co/feed-transformer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.highsidelabs.co/feed-transformer/feed-types/tab/priceandquantityonly-update.md).

# Price and Quantity Update

## Parameters

### `merchantId`

{% hint style="danger" %}
**Required**
{% endhint %}

There is documentation on how to retrieve your `merchantId`  in the [Flat file feeds](/feed-transformer/feed-types/tab.md#common-required-parameters)section of the [Flat file feeds](/feed-transformer/feed-types/tab.md) page.

### `shippingGroupMap`

{% hint style="warning" %}
Required if the `merchant_shipping_group_name` field is present in the feed file being converted.
{% endhint %}

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: [Inventory Loader](/feed-transformer/feed-types/tab/invloader.md#shippinggroupmap)

## Usage

To convert a `POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA` feed to the newer `JSON_LISTINGS_FEED` format:

```php
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

This is an exhaustive list of the columns we support for this feed type. If you are successfully passing feed files with additional columns, [let us know](mailto:hi@highsidelabs.co) and we'll add support for the ones we're missing.

* `sku`
* `price`
* `quantity`
* `handling-time`
