|
| 1 | +# Walmart\Apis\MP\US\ReviewsApi |
| 2 | +All URIs are relative to https://marketplace.walmartapis.com, except if the operation defines another base path. |
| 3 | + |
| 4 | +| Method | HTTP request | Description | |
| 5 | +| ------------- | ------------- | ------------- | |
| 6 | +| [**bulkUpdateItemStatus()**](#bulkUpdateItemStatus) | **PUT** /v3/growth/reviews-accelerator/items/status | Bulk update item status | |
| 7 | +| [**getIrpCategories()**](#getIrpCategories) | **POST** /v3/growth/reviews-accelerator/categories | Get categories | |
| 8 | +| [**getIrpItems()**](#getIrpItems) | **POST** /v3/growth/reviews-accelerator/items | Get RAP post-purchase items | |
| 9 | + |
| 10 | + |
| 11 | +## `bulkUpdateItemStatus()` |
| 12 | + |
| 13 | +```php |
| 14 | +bulkUpdateItemStatus($bulkItemStatusUpdateRequest): \Walmart\Models\MP\US\Reviews\BulkItemUpdateResponse |
| 15 | +``` |
| 16 | +Bulk update item status |
| 17 | + |
| 18 | +To enroll a product in/out of the Reviews acceleration post-purchase program. |
| 19 | + |
| 20 | +### Example |
| 21 | + |
| 22 | +```php |
| 23 | +<?php |
| 24 | +use Walmart\Configuration; |
| 25 | +use Walmart\Enums\Country; |
| 26 | +use Walmart\Walmart; |
| 27 | + |
| 28 | +require_once __DIR__ . '/vendor/autoload.php'; |
| 29 | + |
| 30 | +$config = new Walmart\Configuration([ |
| 31 | + 'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US |
| 32 | + 'clientSecret' => 'CLIENT_SECRET', // Ditto above |
| 33 | + 'country' => Country::US, // Default Country::US if not set |
| 34 | +]); |
| 35 | + |
| 36 | +$api = Walmart::marketplace($config)->reviews(); |
| 37 | + |
| 38 | +$bulkItemStatusUpdateRequest = {"status":"ENROLL","items":[{"itemId":"2719243"},{"itemId":"2719255"}]}; // \Walmart\Models\MP\US\Reviews\BulkItemStatusUpdateRequest | Request fields |
| 39 | + |
| 40 | +try { |
| 41 | + $result = $api->bulkUpdateItemStatus($bulkItemStatusUpdateRequest); |
| 42 | + print_r($result); |
| 43 | +} catch (Exception $e) { |
| 44 | + echo "Exception when calling ReviewsApi->bulkUpdateItemStatus: {$e->getMessage()}\n"; |
| 45 | +} |
| 46 | +``` |
| 47 | + |
| 48 | +### Parameters |
| 49 | +| Name | Type | Description | Notes | |
| 50 | +| ------------- | ------------- | ------------- | ------------- | |
| 51 | +| **bulkItemStatusUpdateRequest** | [**\Walmart\Models\MP\US\Reviews\BulkItemStatusUpdateRequest**](../../../Models/MP/US/Reviews/BulkItemStatusUpdateRequest.md)| Request fields | | |
| 52 | + |
| 53 | + |
| 54 | +### Return type |
| 55 | + |
| 56 | +[**\Walmart\Models\MP\US\Reviews\BulkItemUpdateResponse**](../../../Models/MP/US/Reviews/BulkItemUpdateResponse.md) |
| 57 | + |
| 58 | +### Authorization |
| 59 | + |
| 60 | +This endpoint requires the following authorization methods: |
| 61 | + |
| 62 | +* `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 |
| 63 | + |
| 64 | +See the [Authorization](../../../../README.md#authorization) section of the README for more information. |
| 65 | + |
| 66 | + |
| 67 | +[[Back to top]](#) [[Back to API list]](../../../../README.md#supported-apis) |
| 68 | +[[Back to Model list]](../../../Models/MP/US) |
| 69 | +[[Back to README]](../../../../README.md) |
| 70 | + |
| 71 | +## `getIrpCategories()` |
| 72 | + |
| 73 | +```php |
| 74 | +getIrpCategories($getCategoriesRequest): \Walmart\Models\MP\US\Reviews\GetCategoriesResponse |
| 75 | +``` |
| 76 | +Get categories |
| 77 | + |
| 78 | +To get the set of categories the RAP post-purchase items belong to. |
| 79 | + |
| 80 | +### Example |
| 81 | + |
| 82 | +```php |
| 83 | +<?php |
| 84 | +use Walmart\Configuration; |
| 85 | +use Walmart\Enums\Country; |
| 86 | +use Walmart\Walmart; |
| 87 | + |
| 88 | +require_once __DIR__ . '/vendor/autoload.php'; |
| 89 | + |
| 90 | +$config = new Walmart\Configuration([ |
| 91 | + 'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US |
| 92 | + 'clientSecret' => 'CLIENT_SECRET', // Ditto above |
| 93 | + 'country' => Country::US, // Default Country::US if not set |
| 94 | +]); |
| 95 | + |
| 96 | +$api = Walmart::marketplace($config)->reviews(); |
| 97 | + |
| 98 | +$getCategoriesRequest = {"itemStatus":["ENROLLED","ELIGIBLE","COMPLETE"]}; // \Walmart\Models\MP\US\Reviews\GetCategoriesRequest | Request payload |
| 99 | + |
| 100 | +try { |
| 101 | + $result = $api->getIrpCategories($getCategoriesRequest); |
| 102 | + print_r($result); |
| 103 | +} catch (Exception $e) { |
| 104 | + echo "Exception when calling ReviewsApi->getIrpCategories: {$e->getMessage()}\n"; |
| 105 | +} |
| 106 | +``` |
| 107 | + |
| 108 | +### Parameters |
| 109 | +| Name | Type | Description | Notes | |
| 110 | +| ------------- | ------------- | ------------- | ------------- | |
| 111 | +| **getCategoriesRequest** | [**\Walmart\Models\MP\US\Reviews\GetCategoriesRequest**](../../../Models/MP/US/Reviews/GetCategoriesRequest.md)| Request payload | | |
| 112 | + |
| 113 | + |
| 114 | +### Return type |
| 115 | + |
| 116 | +[**\Walmart\Models\MP\US\Reviews\GetCategoriesResponse**](../../../Models/MP/US/Reviews/GetCategoriesResponse.md) |
| 117 | + |
| 118 | +### Authorization |
| 119 | + |
| 120 | +This endpoint requires the following authorization methods: |
| 121 | + |
| 122 | +* `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 |
| 123 | + |
| 124 | +See the [Authorization](../../../../README.md#authorization) section of the README for more information. |
| 125 | + |
| 126 | + |
| 127 | +[[Back to top]](#) [[Back to API list]](../../../../README.md#supported-apis) |
| 128 | +[[Back to Model list]](../../../Models/MP/US) |
| 129 | +[[Back to README]](../../../../README.md) |
| 130 | + |
| 131 | +## `getIrpItems()` |
| 132 | + |
| 133 | +```php |
| 134 | +getIrpItems($scrollId, $getIrpItemsRequest): \Walmart\Models\MP\US\Reviews\GetIrpItemsResponse |
| 135 | +``` |
| 136 | +Get RAP post-purchase items |
| 137 | + |
| 138 | +To get all eligible products that can be enrolled into the Reviews accelerator post-purchase program. To get all products that are currently enrolled into the program. To get all products that have attained target reviews after enrolment into the program. Products can be filtered by category and price. Products can be sorted by Walmart-recommended item priorities. Searched using wildcards matching the product name and SKU. |
| 139 | + |
| 140 | +### Example |
| 141 | + |
| 142 | +```php |
| 143 | +<?php |
| 144 | +use Walmart\Configuration; |
| 145 | +use Walmart\Enums\Country; |
| 146 | +use Walmart\Walmart; |
| 147 | + |
| 148 | +require_once __DIR__ . '/vendor/autoload.php'; |
| 149 | + |
| 150 | +$config = new Walmart\Configuration([ |
| 151 | + 'clientId' => 'CLIENT_ID', // May not be necessary for all endpoints, particularly outside the US |
| 152 | + 'clientSecret' => 'CLIENT_SECRET', // Ditto above |
| 153 | + 'country' => Country::US, // Default Country::US if not set |
| 154 | +]); |
| 155 | + |
| 156 | +$api = Walmart::marketplace($config)->reviews(); |
| 157 | + |
| 158 | +$scrollId = '*'; // string | Optional parameter specifying the scrollId to return the next set of results. |
| 159 | +$getIrpItemsRequest = {"filter":{"itemStatus":"ELIGIBLE"}}; // \Walmart\Models\MP\US\Reviews\GetIrpItemsRequest | Request payload |
| 160 | + |
| 161 | +try { |
| 162 | + $result = $api->getIrpItems($scrollId, $getIrpItemsRequest); |
| 163 | + print_r($result); |
| 164 | +} catch (Exception $e) { |
| 165 | + echo "Exception when calling ReviewsApi->getIrpItems: {$e->getMessage()}\n"; |
| 166 | +} |
| 167 | +``` |
| 168 | + |
| 169 | +### Parameters |
| 170 | +| Name | Type | Description | Notes | |
| 171 | +| ------------- | ------------- | ------------- | ------------- | |
| 172 | +| **scrollId** | **string**| Optional parameter specifying the scrollId to return the next set of results. | [default to '*'] | |
| 173 | +| **getIrpItemsRequest** | [**\Walmart\Models\MP\US\Reviews\GetIrpItemsRequest**](../../../Models/MP/US/Reviews/GetIrpItemsRequest.md)| Request payload | | |
| 174 | + |
| 175 | + |
| 176 | +### Return type |
| 177 | + |
| 178 | +[**\Walmart\Models\MP\US\Reviews\GetIrpItemsResponse**](../../../Models/MP/US/Reviews/GetIrpItemsResponse.md) |
| 179 | + |
| 180 | +### Authorization |
| 181 | + |
| 182 | +This endpoint requires the following authorization methods: |
| 183 | + |
| 184 | +* `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 |
| 185 | + |
| 186 | +See the [Authorization](../../../../README.md#authorization) section of the README for more information. |
| 187 | + |
| 188 | + |
| 189 | +[[Back to top]](#) [[Back to API list]](../../../../README.md#supported-apis) |
| 190 | +[[Back to Model list]](../../../Models/MP/US) |
| 191 | +[[Back to README]](../../../../README.md) |
0 commit comments