question

abra_5781 avatar image
0 Likes"
abra_5781 asked

Correct way of updating Product Price and QTY

I want to change the listing Price and Qty for a product using the bulkUpdatePriceQuantity API. I'm not sure what the offer does in this case and so I haven't put an Offer Id in my case. The thing is, I don't want to create any offer.


I Just want to change the actual Price and QTY that we see on the listing screen.


{
    "requests": [
        {
            "offers": [
                {
                    "availableQuantity": "0",
                    "price": {
                        "currency": "USD",
                        "value": "1.20"
                    }
                }
            ],
            "sku": "Pencil-001"
        }
    ]
}


The help I need is,

  1. Am I calling the appropriate API to change the QTY and Price? If yes, I am getting the following error for the above request.
    {"errors":[{"errorId":25709,"domain":"API_INVENTORY","subdomain":"Selling","category":"REQUEST","message":"Invalid value for ."}]}
  2. If I am looking in the wrong direction, what would be the correct one?


Thanks in advance.

inventory updatebulkupdatepricequantity
capture.png (1.9 KiB)
10 |600 characters needed characters left characters exceeded

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

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @abra_5781,

You are using the right call for updating the price and quantity as inventory items have offer associated with it so you need to mention the offer id if your SKU is associated with any offer id.

Ref:- https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/bulkUpdatePriceQuantity#request.requests.offers.offerId

Ref:- https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/bulkUpdatePriceQuantity#request.requests.offers.price

Best regards ,
eBay Developer Support

· 1
10 |600 characters needed characters left characters exceeded

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

Thanks for your reply.

The price I'm trying to update is not an offer. It will be a regular price.

  1. Do I need to create any offer for that?
  2. I have just created a listing. Is any offer created automatically?
0 Likes 0 ·
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @abra_578,

The bulkUpdatePriceQuantity call is used to update the total ship-to-home quantity of an Inventory Item and/or to update the price and/or quantity of that same inventory item in an actual live offer (aka active eBay listing).To see the flow of converting inventory item record to eBay marketplace offer, Please go through the link given below:

Ref: https://developer.ebay.com/api-docs/sell/static/inventory/inventory-item-to-offer.html

The GetOffer call should be used to retrieve all of the details of a specific offer. The offerId value is passed in at the end of GetOffer call URI. The GetOffers call will retrieve all offers associated with a specific SKU value.

Ref: https://developer.ebay.com/api-docs/sell/static/inventory/managing-offers.html

Best regards ,
eBay Developer Support

10 |600 characters needed characters left characters exceeded

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.