All URIs are relative to https://api-gateway.walmart.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getAllFeedStatuses() | GET /v3/feeds | Feed status |
getFeedItemStatus() | GET /v3/feeds/{feedId} | Feed item status |
getAllFeedStatuses($feedId, $offset, $limit): \Walmart\Models\Supplier\US\Feeds\FeedRecordResponse
Feed status
Displays an item status for a specific Feed ID. Use the Feed ID returned from the DSV Bulk Upload API.
<?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
'privateKey' => 'PRIVATE_KEY',
'consumerId' => 'CONSUMER_ID',
]);
$api = Walmart::supplier($config)->feeds();
$feedId = 'feedId_example'; // string | A unique ID returned from the Bulk Upload API, used for tracking the Feed File. Special characters must be escaped. (e.g., feedId: '...3456@789...' must be entered in the URL as '...3456%40789).
$offset = '0'; // string | The object response to start with, where 0 is the first entity that can be requested. It can only be used when includeDetails is set to true.
$limit = '50'; // string | The number of entities to be returned. It cannot be more than 50 entities. Use it only when the includeDetails is set to true.
try {
$result = $api->getAllFeedStatuses($feedId, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling FeedsApi->getAllFeedStatuses: {$e->getMessage()}\n";
}
Name | Type | Description | Notes |
---|---|---|---|
feedId | string | A unique ID returned from the Bulk Upload API, used for tracking the Feed File. Special characters must be escaped. (e.g., feedId: '...3456@789...' must be entered in the URL as '...3456%40789). | [optional] |
offset | string | The object response to start with, where 0 is the first entity that can be requested. It can only be used when includeDetails is set to true. | [optional] [default to '0'] |
limit | string | The number of entities to be returned. It cannot be more than 50 entities. Use it only when the includeDetails is set to true. | [optional] [default to '50'] |
\Walmart\Models\Supplier\US\Feeds\FeedRecordResponse
This endpoint requires the following authorization methods:
partner
: Header authentication with your Walmart partner ID, which is passed in the WM_PARTNER.ID header. Required by Supplier API endpoints. When using endpoints that require partner ID authentication, you must pass thepartnerId
option to theConfiguration
constructor.signature
: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass theprivateKey
andconsumerId
options to theConfiguration
constructor.consumerId
: Header authentication with your Walmart consumer ID, which is passed in the WM_CONSUMER.ID header. This is always used in tandem with signature authentication (below). When using endpoints that require consumer ID authentication, you must pass theconsumerId
option to theConfiguration
constructor.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]
getFeedItemStatus($feedId, $includeDetails, $offset, $limit): \Walmart\Models\Supplier\US\Feeds\PartnerFeedResponse
Feed item status
Returns the status of all items for a specific feedId. We do not recommend using this call when includeDetails is set to true because discrepancies may occur between the header and the item details (i.e., the item details may be incorrect).
<?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
'privateKey' => 'PRIVATE_KEY',
'consumerId' => 'CONSUMER_ID',
]);
$api = Walmart::supplier($config)->feeds();
$feedId = 'feedId_example'; // string | A unique ID returned from the Bulk Upload API, used for tracking the Feed File. Special characters must be escaped. (e.g., feedId: '...3456@789...' must be entered in the URL as '...3456%40789).
$includeDetails = 'false'; // string | Includes details of each entity in the feed. Do not set this parameter to true.
$offset = '0'; // string | The object response to start with, where 0 is the first entity that can be requested. It can only be used when includeDetails is set to true.
$limit = '50'; // string | The number of entities to be returned. It cannot be more than 50 entities. Use it only when the includeDetails is set to true.
try {
$result = $api->getFeedItemStatus($feedId, $includeDetails, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo "Exception when calling FeedsApi->getFeedItemStatus: {$e->getMessage()}\n";
}
Name | Type | Description | Notes |
---|---|---|---|
feedId | string | A unique ID returned from the Bulk Upload API, used for tracking the Feed File. Special characters must be escaped. (e.g., feedId: '...3456@789...' must be entered in the URL as '...3456%40789). | |
includeDetails | string | Includes details of each entity in the feed. Do not set this parameter to true. | [optional] [default to 'false'] |
offset | string | The object response to start with, where 0 is the first entity that can be requested. It can only be used when includeDetails is set to true. | [optional] [default to '0'] |
limit | string | The number of entities to be returned. It cannot be more than 50 entities. Use it only when the includeDetails is set to true. | [optional] [default to '50'] |
\Walmart\Models\Supplier\US\Feeds\PartnerFeedResponse
This endpoint requires the following authorization methods:
partner
: Header authentication with your Walmart partner ID, which is passed in the WM_PARTNER.ID header. Required by Supplier API endpoints. When using endpoints that require partner ID authentication, you must pass thepartnerId
option to theConfiguration
constructor.signature
: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass theprivateKey
andconsumerId
options to theConfiguration
constructor.consumerId
: Header authentication with your Walmart consumer ID, which is passed in the WM_CONSUMER.ID header. This is always used in tandem with signature authentication (below). When using endpoints that require consumer ID authentication, you must pass theconsumerId
option to theConfiguration
constructor.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]