cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can't call the inventory_task API pro Market place

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'
];

 

Message 1 of 4
latest reply
3 REPLIES 3

can't call the inventory_task API pro Market place

does adding the header X-EBAY-C-MARKETPLACE-ID with marketplaceId work?

Message 2 of 4
latest reply

can't call the inventory_task API pro Market place

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

Message 3 of 4
latest reply

can't call the inventory_task API pro Market place

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.

Message 4 of 4
latest reply