cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How i can add Primary category id while craeting a item using https://api.ebay.com/sell/inventory/v

"message": "A user error has occurred. Your application encountered an error. This request is missing required input tag \"<Item.PrimaryCategory.CategoryID>\".",
I am getting this when i am trying to publish a product with offer
Message 1 of 4
latest reply
3 REPLIES 3

How i can add Primary category id while craeting a item using https://api.ebay.com/sell/inventory/v

@yaada_21 

 

The category must be added at the CreateOffer stage, prior to publishing the offer:

https://developer.ebay.com/api-docs/sell/inventory/resources/offer/methods/createOffer

 

While it is possible to create and save a partially completed offer as a draft, you must finish it before you move to publishing the offer. 

 

"This call creates an offer for a specific inventory item on a specific eBay marketplace. It is up to the sellers whether they want to create a complete offer (with all necessary details) right from the start, or sellers can provide only some information with the initial createOffer call, and then make one or more subsequent updateOffer calls to complete the offer and prepare to publish the offer. Upon first creating an offer, the following fields are required in the request payload: sku, marketplaceId, and (listing) format. "

 

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 4
latest reply

How i can add Primary category id while craeting a item using https://api.ebay.com/sell/inventory/v

createOffer and updateOffer are both deprecated as of 07/19/2024.

 

What replaces them?

Message 3 of 4
latest reply

How i can add Primary category id while craeting a item using https://api.ebay.com/sell/inventory/v

Hi @river_house_books 

 

Inventory API calls like bulkCreateOffer, createOffer, getOffer, getOffers and updateOffer or Trading API calls like Add/Revise/Relist/Verify and GetItem family calls are not being deprecated. 

 

As mentioned in the API Deprecation Status page:

Only the economicOperator/EconomicOperator container in the Inventory API/ Trading API calls have been deprecated on 2024/07/19 and only the economicOperator/EconomicOperator container will be  decommissioned on January 30, 2025.

Best Regards,
eBay Developer Support
Message 4 of 4
latest reply