question

yarivhashai avatar image
0 Likes"
yarivhashai asked ·

First time using 'consoleAddItemDirect Sample' code for listing an item

Hi, So i set the env with a sandbox tocken, sandbox testuser, and linked an sandbox paypal account. Enter eBay SOAP server URL (e.g., https://api.ebay.com/wsapi): https://api.sandbox.ebay.com/wsapi ===== [2] Item Information ==== Title: t Description: t Start Price: 30 Location: US Primary Category (e.g., 162140): 162140 Enter your Seller Policy Payment ProfileId : 1 Enter your Seller Policy Shipping ProfileId : 1 Enter your Seller Policy Return ProfileId : 1 ===== [3] Execute the API call ==== Begin to call eBay API, please wait ... [INFO ] 2014-12-12 10:56:27,620 loading wsdl : jar:file:/C:/Users/Yariv/Javaworkspace/ebay/JavaSDK/v897/lib/ebaysdkcore.jar!/eBaySvc.wsdl [INFO ] 2014-12-12 10:56:28,337 wsdl loaded and service initialized. [INFO ] 2014-12-12 10:56:33,255 Sending SOAP request to: https://api.sandbox.ebay.com/wsapi?siteid=0&callname=AddItem&client=java [INFO ] 2014-12-12 10:56:33,428 Request Message: Length=2,107 [INFO ] 2014-12-12 10:56:33,428 **Token** 797 US USD t Days_3 Chinese US 162140 1 30.0 1 1 1 This is the results i'm getting: com.ebay.sdk.ApiException: To list this item, you need to accept PayPal or other approved electronic payments as a payment method. At least one valid shipping service must be specified. at com.ebay.sdk.ApiCall.getApiException(Unknown Source) at com.ebay.sdk.ApiCall.executeByApiName(Unknown Source) at com.ebay.sdk.ApiCall.execute(Unknown Source) at consoleadditemdirect.ApplicationAddItem.main(ApplicationAddItem.java:75) [INFO ] 2014-12-12 10:56:35,631 Response Message: Length=1,187 [INFO ] 2014-12-12 10:56:35,631 2014-12-12T08:56:35.448Z Failure Approved electronic payment method is missing To list this item, you need to accept PayPal or other approved electronic payments as a payment method. 21916281 Error RequestError A shipping service is not specified. At least one valid shipping service must be specified. 21915469 Error RequestError 899 E899_UNI_API5_17299296_R1 [ERROR] 2014-12-12 10:56:35,646 com.ebay.sdk.ApiException: To list this item, you need to accept PayPal or other approved electronic payments as a payment method. At least one valid shipping service must be specified. Fail to list the item. What else should i set to just list a test item using this sample code?
apitest-user-sandbox-ebaysample
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.

1 Answer

· Write an Answer
zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered ·
Hi yarivhashai, You will need to pass real values for 'Seller Policy Payment ProfileId', 'Seller Policy Shipping ProfileId' and 'Seller Policy Return ProfileId' which can be obtained via [SellerProfilesManagementService.getSellerProfiles api call][1] . Note that you can use the [addSellerProfile][2] API to create one new payment, one new return, and/or one new shipping business policy. Best Regards, [1]: http://developer.ebay.com/Devzone/business-policies/CallRef/getSellerProfiles.html [2]: http://developer.ebay.com/Devzone/business-policies/CallRef/addSellerProfile.html#addSellerProfile
· 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.