question

somnusse avatar image
0 Likes"
somnusse asked

Php Add Item with UPC Field

I'm getting an error adding products: Error: The UPC field is missing. The UPC field is missing. Please add UPC to the listing and try again. How do I add the UPC field to my request? Thanks in advance for your help.
php-api
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.

somnusse avatar image
0 Likes"
somnusse answered
I'm using this package : https://github.com/davidtsadler/ebay-sdk-php $item->ItemSpecifics = new Types\NameValueListArrayType(); $specific = new Types\NameValueListType(); $specific->Name = 'Brand'; $specific->Value[] = '"Brand"'; $item->ItemSpecifics->NameValueList[] = $specific; $specific = new Types\NameValueListType(); $specific->Name = 'UPC'; $specific->Value[] = '123456789999'; $item->ItemSpecifics->NameValueList[] = $specific; This code is not work.
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.

yazhou_developersupport avatar image
0 Likes"
yazhou_developersupport answered
Hello somnusse , Please refer to AddItem php example: https://github.com/eBayDeveloper/eBay_APICall_CodeSamples/blob/master/Trading/General/Trading-XML-Samples-PHP/AddItem/AddItem.php Before add item, you need to use [GetCategoryFeatures][1] API to see if particular product identifier types like [UPC][2] are supported/required. Then, you need to specify the required fields in the request of AddItem API. [1]: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/GetCategoryFeatures.html [2]: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/AddItem.html#Request.Item.ProductListingDetails.UPC
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.