Related to this question:
https://forums.developer.ebay.com/questions/39762/bug-incorrect-shiptolocationavailabilityquantity-r.html
I've discovered that the response structure of both endpoints are not the same for the inventoryItem.availability key.
This is an example for getInventoryItem response for the above mentioned key:
"availability": { "pickupAtLocationAvailability": [ { "quantity": 100, "merchantLocationKey": "somelocationkey_0", "availabilityType": "IN_STOCK", "fulfillmentTime": { "value": 3, "unit": "CALENDAR_DAY" } } ], "shipToLocationAvailability": { "availabilityDistributions": [ { "merchantLocationKey": "somelocationkey_0", "fulfillmentTime": { "value": 2, "unit": "BUSINESS_DAY" }, "quantity": 100 }, { "merchantLocationKey": "somelocationkey_1", "fulfillmentTime": { "value": 3, "unit": "BUSINESS_DAY" }, "quantity": 100 } ], "quantity": 200, "allocationByFormat": { "auction": 0, "fixedPrice": 200 } } }
and this is the response of getInventoryItems request for the same SKU:
"availability": { "pickupAtLocationAvailability": [ { "quantity": 100, "merchantLocationKey": "somelocationkey_0", "availabilityType": "IN_STOCK", "fulfillmentTime": { "value": 3, "unit": "CALENDAR_DAY" } }, { "merchantLocationKey": "somelocationkey_1" } ], "shipToLocationAvailability": { "quantity": 200 } }