question

masto-3244 avatar image
4 Likes"
masto-3244 asked

BulkUpdatePriceQuantity - can't update availabilityDistributions quantity on the inventory item

Hello all,

We've been trying to update the quantity attached to an inventory item for different merchant locations on the sandbox sandbox

Request payload like this:

Post: https://api.sandbox.ebay.com/sell/inventory/v1/bulk_update_price_quantity

{
  "requests": [
    {
      "shipToLocationAvailability": {
        "availabilityDistributions": [
          {
            "merchantLocationKey": "12341234",
            "quantity": 10
          },
          {
            "merchantLocationKey": "56785678",
            "quantity": 10
          }
        ],
        "quantity": 1200
      },
      "sku": "SKU"
    }
  ]
}

The response is successful.

When I then call get inventory for the sku it gives back some of the payload:

                    "shipToLocationAvailability": {
                        "availabilityDistributions": [
                            {
                                "merchantLocationKey": "12341234",
                                "fulfillmentTime": {
                                    "value": 2,
                                    "unit": "DAY"
                                },
                                "quantity": 100
                            },
                            {
                                "merchantLocationKey": "56785678",
                                "fulfillmentTime": {
                                    "value": 2,
                                    "unit": "DAY"
                                },
                                "quantity": 25
                            }
                        ],
                        "quantity": 1200,


My question is why have the quantities per location not updated?

it matches the original quantities using the https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/createOrReplaceInventoryItem.

Is this not how the endpoint should behave?

My understanding is that I can update the quantities per location.


Many thanks,

Matt

inventoryinventory_itembulkupdatepricequantityinventory location
10 |600

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

kykib32 avatar image
1 Like"
kykib32 answered

bump!!!!!!

10 |600

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

james.key avatar image
0 Likes"
james.key answered

Great question any updates?

10 |600

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

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.