You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the documentation here, you would pass in the array of skus as a JSON query parameter, not as a URL parameter. You would do a GET call to the endpoint https://api.sellbrite.com/v1/products and then pass in a JSON object with the array. You may need to also include the page parameter, but I haven't tested that.
It's unclear if this is a Sellbrite issue, but it may be. I'm logging it here, along with the question in Sellbrites discussion area.
Sellbrite/Sellbrite-API#23
In short, we send an Array of SKU's to the Products endpoint, per their documentation. See below example.
$p = new TrollAndToad\Sellbrite\Products\GetProduct($accountToken, $secretKey);
$skus = array('PRT-360', 'PRT-361', 'PRT-362', 'PRT-363','PRT-364','PRT-365','PRT-366','PRT-367','PRT-368','PRT-369');
$response = $p->sendRequest(1, 10, $skus);
$result = $response->getBody()->getContents();
The API returns ONLY the data for the final sku in the list, PRT-369.
If no skus are submitted, the Products endpoint returns the page # and # of items up to the limit as expected.
Ideally, would like to determine if this is an issue with the request, or an issue with the response, so it can be escalated to Sellbrite if required.
The text was updated successfully, but these errors were encountered: