question

daniewojcia_0 avatar image
0 Likes"
daniewojcia_0 asked ·

Simplest way to create listings on sandbox?

I'm fairly new to using web APIs and I need to work on pulling order info from a sandbox account. I haven't been able to use the website to create an item listing, and I read that the only way to do so is by making API calls to list items. All I'm looking to do is create some test item listings so I can have some orders to work with. Is there a simple straightforward way of achieving this through API calls?

inventoryiteminventory_items
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
sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered ·

Hi @daniewojcia_0,

Please use the Trading API or Inventory API to list the item on sandbox.
Ref: https://developer.ebay.com/devzone/xml/docs/Reference/eBay/StandardListingIndex.html

For listing an item by Inventory API you can 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.