question

pbpwebshop avatar image
0 Likes"
pbpwebshop asked ·

How can add item to eBay with PHP script?

I want to add an item to ebay using ebay API and PHP i read their website for hours and i'm lost. I created a developer account. I Get AppId, User token also, but what should i do after that? i read about "Add item" call http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddItem.html but i have no idea on how to use that? Anyone can help me, about it? Thanks.
ebay-apitrading-apiebay-trading-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.

zhuowei.developersupport@ebay.com avatar image
1 Like"
zhuowei.developersupport@ebay.com answered ·
Hi pbpwebshop, You might want to take a look the PHP Trading API code samples here: https://github.com/eBayDeveloper/eBay_APICall_CodeSamples/tree/master/Trading/General/Trading-XML-Samples-PHP. Best Regards,
· 2 · Share
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.

thanks for solution information. i try download and run this code. when try select listing type : Dutch i get error 219450 : Deprecated object The input object "AddItemRequest.Item.ListingType.Dutch" is deprecated as of schema version 611. Replacement: "None". And if select other on listing type option, get error : 21919158 : Invalid PayPal email address. The email address you entered isn't linked to a PayPal account. If you don't have a PayPal account, you'll need to set one up with this address so that buyers can pay you. (You can set up your account after your item sells).
0 Likes 0 · ·
in 2nd condition i already setup paypall account and integrated with ebay setup. but error still warning like that. What problem with the code? Thanks
0 Likes 0 · ·
davidtsadler avatar image
0 Likes"
davidtsadler answered ·
If you are confident with using [Composer]( https://getcomposer.org/) in your PHP projects and interested in a more OOP way of accessing the eBay API I have developed a [SDK for PHP]( http://devbay.net/sdk/guides/) that you may find useful. There are several examples of using the SDK with the Trading API, including [how to add an item] ( https://github.com/davidtsadler/ebay-sdk-examples/blob/master/trading/03-add-auction-item.php). Please note eBay is not involved in any way with the development of this SDK and that I have set up a [support group]( https://groups.google.com/forum/#!forum/ebay-sdk-php) to help users. There are also more [examples available]( https://github.com/davidtsadler/ebay-sdk-examples).
· Share
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.