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

How can add custom variation for prent child products?

I have a sinario, I have a parent child multi variation product.
 
title = Matching Christmas Pajamas Jumpsuits Family Set with Hoodie
 
This product is varies by Size and gender.
 
If I create this product in eBay manually, eBay allow me to add new custom variation like gender. 
 
But when, I want create this product via Inventory API, It throwing some errors. I am providing details.
 
"variesBy": {
       "aspectsImageVariesBy": [
               "size"
            ],
       "specifications": [
             {
                  "name": "size",
                 "values": [
                      "2XL", 
                      "S",
                     "M",
                     "L",
                    "XL"
                 ]
          },
         {
             "name": "gender",
             "values": [
                 "Dad",
                 "Child",
                "Mom"
               ]
        }
    ]
}
 
When I use createOrReplaceInventoryItemGroup API to create group item, that not give me any error. But when I use publishOfferByInventoryItemGroup API to publish it give me the following error.
 
Error = Invalid data in the Inventory Item Group. Missing name in the variation specifics or variation specifics set.
 
If I want to set custom attributes gender with each child product inventory. then publishOfferByInventoryItemGroup giving me two errors
 
Error = A user error has occurred. gender is not allowed as a variation specific.
And 
Error = Invalid data in the Inventory Item Group. Missing name in the variation specifics or variation specifics set.
 
Please guide me about this problem.
 
Message 1 of 4
latest reply
3 REPLIES 3

Re: How can add custom variation for prent child products?

@interloper-com 

Error = A user error has occurred. gender is not allowed as a variation specific.

Some Item Specific headings are reserved. They can only be used to label Item Specifics and can not be used to name a Variation.

 

Change the label a little so that it won't match the Item Specific. For example, change "gender" to "genders" or choose a different word; or add punctuation like a hyphen or underscore on multi-word labels.

 

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

Re: How can add custom variation for prent child products?

Hi @interloper-com 

 

The basic flow of using the Inventory API to publish a multiple-variation offer involves the use of the following four calls:

  1. The createOrReplaceInventoryItem call to create the inventory item record for each inventory item that will be part of the inventory item group;
  2. The createOrReplaceInventoryItemGroup call to create the inventory item group and place its members in the group
  3. The createOffer call to set the listing details for product variation. Since each of the product variations in the inventory item group will be in the same listing, only the SKU, available quantity, and price should vary. Other details such as categoryId, listingDescription, listing policies (payment, return, and fulfillment), merchantLocationKey, and marketplaceId should be the same since these are listing-level settings;
  4. The publishOfferByInventoryItemGroup call to activate the offer on the eBay marketplace.

Both of the flows above assume that an inventory location has already been set up for the seller. If not, the seller would also have to use the createInventoryLocation call so they could reference an inventory location in the createOffer call.

 

For more details, please have a look here: https://developer.ebay.com/api-docs/sell/static/inventory/inventory-item-to-offer.html 

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

Re: How can add custom variation for prent child products?

Thanks is that help me.

Message 4 of 4
latest reply