question

onurkose avatar image
0 Likes"
onurkose asked

getInventoryItem and getInventoryItems responses are different for the availability key

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
                }
            }
getinventoryitemsgetinventoryitemschema
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.