All URIs are relative to https://marketplace.walmartapis.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createStrategy() | POST /v3/repricer/strategy | Create Repricer Strategy |
| deleteStrategy() | DELETE /v3/repricer/strategy/{strategyCollectionId} | Delete Repricer Strategy |
| getRepricerFeed() | POST /v3/repricerFeeds | Assign/Unassign items to/from Repricer Strategy |
| getRepricerIncentive() | GET /v3/repricer/incentive | List of Incentive Items |
| getStrategies() | GET /v3/repricer/strategies | List of Repricer Strategies |
| optCapProgramInPrice() | POST /v3/cppreference | Set up CAP SKU All |
| priceBulkUploads() | POST /v3/feeds | Update bulk prices (Multiple) |
| updatePrice() | PUT /v3/price | Update a price |
| updateRepricerIncentive() | PUT /v3/repricer/incentive | Assign Incentive items to Repricer |
| updateStrategy() | PUT /v3/repricer/strategy/{strategyCollectionId} | Update Repricer Strategy |
createStrategy($repricerEntityRequest): \Walmart\Models\MP\US\Prices\RepricerEntityResponseCreate Repricer Strategy
Creates a new strategy for the seller
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$repricerEntityRequest = new \Walmart\Models\MP\US\Prices\RepricerEntityRequest(); // \Walmart\Models\MP\US\Prices\RepricerEntityRequest | The request body will have the strategy related information
try {
$result = $api->createStrategy($repricerEntityRequest);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->createStrategy: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| repricerEntityRequest | \Walmart\Models\MP\US\Prices\RepricerEntityRequest | The request body will have the strategy related information |
\Walmart\Models\MP\US\Prices\RepricerEntityResponse
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteStrategy($strategyCollectionId): \Walmart\Models\MP\US\Prices\RepricerEntityDeleteResponseDelete Repricer Strategy
Deletes the strategy
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$strategyCollectionId = 'strategyCollectionId_example'; // string
try {
$result = $api->deleteStrategy($strategyCollectionId);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->deleteStrategy: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| strategyCollectionId | string |
\Walmart\Models\MP\US\Prices\RepricerEntityDeleteResponse
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getRepricerFeed($feedUploadRequestDTO): \Walmart\Models\MP\US\Prices\FeedUploadResponseDTOAssign/Unassign items to/from Repricer Strategy
Add/Remove one or more items from a strategy
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$feedUploadRequestDTO = new \Walmart\Models\MP\US\Prices\FeedUploadRequestDTO(); // \Walmart\Models\MP\US\Prices\FeedUploadRequestDTO
try {
$result = $api->getRepricerFeed($feedUploadRequestDTO);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->getRepricerFeed: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| feedUploadRequestDTO | \Walmart\Models\MP\US\Prices\FeedUploadRequestDTO |
\Walmart\Models\MP\US\Prices\FeedUploadResponseDTO
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getRepricerIncentive($limit, $offset, $sortBy, $sortOrder): \Walmart\Models\MP\US\Prices\RepricerIncentiveCollectionResponseList of Incentive Items
Get the list of incentive items
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$limit = 25; // int | Specify number of items to return.
$offset = 0; // int | Specify the offset of item list to be returned.
$sortBy = 'INCENTIVE_LIMIT'; // string | Specify the sort criteria for items. Examples of the allowed values are INCENTIVE_END_DATE or INCENTIVE_LIMIT
$sortOrder = 'DESC'; // string | Specify the sort order for given sort criteria. Examples of the allowed values are ASC or DESC
try {
$result = $api->getRepricerIncentive($limit, $offset, $sortBy, $sortOrder);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->getRepricerIncentive: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int | Specify number of items to return. | [optional] [default to 25] |
| offset | int | Specify the offset of item list to be returned. | [optional] [default to 0] |
| sortBy | string | Specify the sort criteria for items. Examples of the allowed values are INCENTIVE_END_DATE or INCENTIVE_LIMIT | [optional] [default to 'INCENTIVE_LIMIT'] |
| sortOrder | string | Specify the sort order for given sort criteria. Examples of the allowed values are ASC or DESC | [optional] [default to 'DESC'] |
\Walmart\Models\MP\US\Prices\RepricerIncentiveCollectionResponse
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getStrategies(): \Walmart\Models\MP\US\Prices\RepricerEntityCollectionResponseList of Repricer Strategies
Get the list of strategies
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
try {
$result = $api->getStrategies();
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->getStrategies: {$e->getMessage()}\n";
}This endpoint does not need any parameter.
\Walmart\Models\MP\US\Prices\RepricerEntityCollectionResponse
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
optCapProgramInPrice($statusInfo): \Walmart\Models\MP\US\Prices\CapProgramResponseSet up CAP SKU All
This API helps Sellers to completely opt-in or opt-out from CAP program. If the subsidyEnrolled value = "true", the Seller enrolls in the CAP program. All eligible SKUs (current and future) are by default opt-in. Seller should use the SKU opt-in/opt-out API to opt-out individual items. If the subsidyEnrolled value = "false", the Seller stops participating in the CAP program and all eligible SKUs (current and future) are opt-out of the CAP program.
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$statusInfo = new \Walmart\Models\MP\US\Prices\StatusInfo(); // \Walmart\Models\MP\US\Prices\StatusInfo | Request fields
try {
$result = $api->optCapProgramInPrice($statusInfo);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->optCapProgramInPrice: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| statusInfo | \Walmart\Models\MP\US\Prices\StatusInfo | Request fields |
\Walmart\Models\MP\US\Prices\CapProgramResponse
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
priceBulkUploads($feedType, $file): \Walmart\Models\MP\US\Prices\FeedIdUpdate bulk prices (Multiple)
Updates prices in bulk. In one Feed you can update up to 10,000 items in bulk. To ensure optimal Feed processing time, we recommend sending no more than 1000 items in one Feed and keeping the Feed sizes below 10 MB. The price sequence guarantee is observed by the bulk price update functionality, subject to the following rules: The timestamp used to determine precedence is passed in the request headers. All price updates in the feed are considered to have the same timestamp. The timestamp in the XML file is used only for auditing. You can send a single SKU multiple times in one Feed. If a SKU is repeated in a Feed, the price will be set for that SKU on Walmart.com, but there is no guarantee as to which SKU's price within that feed will be used. This API should be used in preference to the update a price. It should be called no sooner than 24 hours after a new item is set up and a wpid (Walmart Part ID) is available. Thereafter, the bulk price update has an service level agreement (SLA) of 15 minutes. After the update is submitted, wait for at least five minutes before verifying whether the bulk price update was successful. Individual SKU price update success or failure is only available after the entire feed is processed. If a SKU's price update fails (for example, multiple price updates were sent for the same SKU in a single feed), an error will be returned.
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$feedType = 'feedType_example'; // string | The feed Type
$file = "/path/to/file.txt"; // \SplFileObject | Feed file to upload
try {
$result = $api->priceBulkUploads($feedType, $file);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->priceBulkUploads: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| feedType | string | The feed Type | |
| file | \SplFileObject**\SplFileObject** | Feed file to upload |
\Walmart\Models\MP\US\Prices\FeedId
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updatePrice($price): \Walmart\Models\MP\US\Prices\ItemPriceResponseUpdate a price
Updates the regular price for a given item.
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$price = {"sku":"97964_KFTest","pricing":[{"currentPriceType":"BASE","currentPrice":{"currency":"USD","amount":10}}]}; // \Walmart\Models\MP\US\Prices\Price | The request body consists of a Feed file attached to the request.
try {
$result = $api->updatePrice($price);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->updatePrice: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| price | \Walmart\Models\MP\US\Prices\Price | The request body consists of a Feed file attached to the request. |
\Walmart\Models\MP\US\Prices\ItemPriceResponse
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateRepricerIncentive($updateRepricerIncentiveRequest): \Walmart\Models\MP\US\Prices\UpdateRepricerIncentiveResponseAssign Incentive items to Repricer
Assigns incentive items to the default price incentives strategy, ‘Match Competitive Price’
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$updateRepricerIncentiveRequest = new \Walmart\Models\MP\US\Prices\UpdateRepricerIncentiveRequest(); // \Walmart\Models\MP\US\Prices\UpdateRepricerIncentiveRequest
try {
$result = $api->updateRepricerIncentive($updateRepricerIncentiveRequest);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->updateRepricerIncentive: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| updateRepricerIncentiveRequest | \Walmart\Models\MP\US\Prices\UpdateRepricerIncentiveRequest |
\Walmart\Models\MP\US\Prices\UpdateRepricerIncentiveResponse
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateStrategy($strategyCollectionId, $repricerEntityRequest): \Walmart\Models\MP\US\Prices\RepricerEntityResponseUpdate Repricer Strategy
Updates the existing strategy
<?php
use Walmart\Configuration;
use Walmart\Enums\Country;
use Walmart\Walmart;
require_once __DIR__ . '/vendor/autoload.php';
$config = new Walmart\Configuration([
'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US
'clientSecret' => 'CLIENT_SECRET', // Ditto above
'country' => Country::US, // Default Country::US if not set
]);
$api = Walmart::marketplace($config)->prices();
$strategyCollectionId = 'strategyCollectionId_example'; // string
$repricerEntityRequest = new \Walmart\Models\MP\US\Prices\RepricerEntityRequest(); // \Walmart\Models\MP\US\Prices\RepricerEntityRequest | The request body will have the strategy related information
try {
$result = $api->updateStrategy($strategyCollectionId, $repricerEntityRequest);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling PricesApi->updateStrategy: {$e->getMessage()}\n";
}| Name | Type | Description | Notes |
|---|---|---|---|
| strategyCollectionId | string | ||
| repricerEntityRequest | \Walmart\Models\MP\US\Prices\RepricerEntityRequest | The request body will have the strategy related information |
\Walmart\Models\MP\US\Prices\RepricerEntityResponse
This endpoint requires the following authorization methods:
accessToken: Header authentication with a Walmart access token, which is automatically generated using your Client ID and Client Secret. The token is valid for 15 minutes, and will be passed in the WM_SEC.ACCESS_TOKEN header
See the Authorization section of the README for more information.
[Back to top] [Back to API list] [Back to Model list] [Back to README]