Price and Quantity Update
Parameters
merchantId
merchantIdshippingGroupMap
shippingGroupMapUsage
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
Last updated