03-29-2023 03:50 AM
Hi, i am trying to call LMS_ACTIVE_INVENTORY_REPORTE foreach Marketplace, but there is no option to decide the marketplace which am targeting. So in the last step where i download_result_file am getting all my SKUs for each marketplace all mixed up together in one response and i cant differentiate between them, which one belong to which marketplace and this is my request which am sending
$url = 'https://api.ebay.com/sell/feed/v1/inventory_task';
$body = '{
"schemaVersion": "1.0",
"feedType": "LMS_ACTIVE_INVENTORY_REPORT"
}';
$headers = [
'Authorization' => 'Bearer '. token(),
'Content-Type' => 'application/json'
];
03-29-2023 10:06 AM
does adding the header X-EBAY-C-MARKETPLACE-ID with marketplaceId work?
03-30-2023 02:58 AM
Thank you for answered, but it didn't work.
I think this header which you are mentioning, it may not be for Restful rather for traditional api
03-30-2023 10:53 AM
It is in the docs for rest if you look at https://developer.ebay.com/api-docs/static/rest-request-components.html#HTTP
That must mean the logic separating the results by marketplaceId must be determined elsewhere / or it isn't set up for that call.. that was the only thing from the docs that I could think of to try.. If someone else knows something more helpful they will need to chime in.