question

carv_881 avatar image
0 Likes"
carv_881 asked ·

create product is failed in sandbox

I am trying to test my code by adding new orders to the account. I created two sandbox accounts and planned to use one account to sell the item and then buy it using the other account. However, when I created the listing in my sandbox account, it can never add the new listing successfully. It keeps saving and loading for seconds and just froze there. Does anyone know is there something wrong with the sandbox environment? Or is there any other way to add a testing order?

error-sandbox
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
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @carv_881,

Please use the Trading API or Inventory API to list the item on sandbox. If you wan to use Trading API, you can use the following calls:

Ref: https://developer.ebay.com/devzone/xml/docs/Reference/eBay/StandardListingIndex.html

For listing an item by Inventory API you have to follow given steps :-

1. Use CreateOrReplaceInventoryItem call to create a record of an item for a SKU. Please go through the link given below to know more about call.

Ref: https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/createOrReplaceInventoryItem

2. After that Create an offer for the same SKU by CreateOffer Call. This will give you Offer ID in response body. Please go through the link given below to know more about call.

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

3. After getting offerID, publish the offer by PublishOffer Call. Please go through the link given below to know more about call.

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

Please refer to the guide mentioned in below, to know more about working with the Inventory API.

Ref: https://developer.ebay.com/api-docs/sell/static/inventory/inventory-item-to-offer.html

Use the URL http://sandbox.ebay.com/itm/ENTER_ITEM_ID_HERE , to see the item view page on sandbox UI.

Best regards ,
eBay Developer Support

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.