01-14-2024 12:20 AM
I have successfully created a product with eBay SELL RESTt API. But I did not find a way how to add Product Variants and corresponding variants SKU, StockQuantity and Price with the REST API. Can anyone please help me to do that.
Is it possible through sell rest API or I need to use trading API to achieve this?
Thanks
01-14-2024 08:45 AM
Within the Inventory API, create an inventory item group of variations.
01-14-2024 10:07 PM
Thanks for your reply. I have seen this API before. In this API there is no way to add variant specific stock quantity and price.
Actually, I want to put variant-specific information. Please see the below example:
Product: T-shirt
SKU: T100
Size: SKU StockQuantity Quantity Price
Small T100-S 10 5 $30
Large T100-L 12 6 $40
Is there any REST API for this information to be created?
Thanks
01-15-2024 08:52 AM
The variations can be added when grouping the original "inventory" items.
The marketplace, quantity, and price are added in the "offer" process.
https://developer.ebay.com/api-docs/sell/inventory/resources/offer/methods/createOffer
Variation quantity and price can be revised using this method:
10-14-2024 05:08 PM
what is the right order to create a product variant? I tried 2 different combinations, and both of them are not working.
Sequence 1:
- createorreplaceinventory -> sku1
- createorreplaceinventory -> sku2
- createoffer -> sku1
- createoffer -> sku2
- publishoffer -> sku1
- publishoffer -> sku2
- createinventoryitemgroup -> {sku1, sku2)
->publishinventoryitemgroup
Sequence 1:
- createorreplaceinventory -> sku1
- createorreplaceinventory -> sku2
- createoffer -> sku1
- createoffer -> sku2
- createinventoryitemgroup -> {sku1, sku2)
->publishinventoryitemgroup
Both the options are not working. Any ideas?
10-22-2024 09:39 AM
Hi @mdmohmah_0 @savvystylishstore,
The basic flow of using the Inventory API to publish a multiple-variation offer involves the use of the following four calls:
For detailed information, see the Inventory API Guide here: https://developer.ebay.com/api-docs/sell/static/inventory/inventory-item-to-offer.html