12-03-2023 11:03 PM
Hi Support,
I am trying to develop an integration using the REST APIs. But after trying out different rest API methods, I go following concerns, please help
1. I found that I can create an inventory item using createOrReplaceInventoryItem this end point. But it asks for me to supply the SKU which is not essentially a problem.
• But the problem is, this endpoint doesn't allow me to feed any price or category while creating the new item.
• I read in some other tickets where you suggest to use CreateOffer endpoint. But I don't wish to create an offer instead I want to create an item with a fixed price without having to enable offers.
2. Second concern is with createOrReplaceInventoryItemGroup, i looked at it because I wished to create variants into the newly created item. But I found out that if I don't provide any variant SKU's in this endpoint then it will create a new item without variants. Please confirm if its true.
• The follow up question is, if the above is true then what would be the SKU/EPID of the newly created item.
• And how would I go forward if I wish to create let say 2 variant options in the newly created item. Will i have to created those 2 variant item separately using createOrReplaceInventoryItem and then use those SKUs again the createOrReplaceInventoryItemGroup. Please help me better understand the use case of this API.
Kindly help me resolve my above concern and I will be grateful.
Thanks in advacne.
Best
12-04-2023 09:52 AM
eBay has two methods for creating and managing listings:
1) Traditional Trading API: All details of the item, including price, are entered at the creation level and the listing is launched when submitted to eBay. The listing number or ItemID is used to manage the active listing.
2) Restful Inventory API: An inventory item is created and stored for later publishing as a listing. The inventory item will be created, edited, and recalled by its SKU. You can make up your own SKU system. Inventory consists of the basics.
https://developer.ebay.com/api-docs/sell/inventory/static/overview.html
To add a selling price, the inventory must be used to create an offer (a listing). The offer is then published as an active eBay listing.
I don't have an answer to your final question. See the bottom of this createOrReplaceInventoryItemGroup page for an example of a multi-variation inventory item group.