question

arc_4382 avatar image
0 Likes"
arc_4382 asked

How to Place order from sandbox,

I added items from one test user account and they are currently visible on sandbox but for placing an order I first need to initiate a session. But on hitting initiatecheckoutsession and initiateguestcheckoutsession in these both I am getting 403(permission denied). Even I have scope already listed in scopes list (https://api.ebay.com/oauth/api_scope/buy.guest.order) for my sandbox account.
help needed in placing order


,

orderbuyapiorderapiplace orderinitiateguestcheckoutsessioninitiatecheckoutsessioninitiate checkout sessioncheckout sessioncreate orderinitialcheckoutsession
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 @arc_4382,

For testing the auction listings, you must have at least two test users: one to act in the capacity of an item seller and the other as a buyer.

List an auction item on sandbox and use a separate user to place bids on the item. The seller can end the listing early using EndItem. If you set EndingReason to SellToHighBidder, the call does not cancel existing bids and the listing ends as a successfully concluded auction. One order line item is created for each winning bidder, and the seller can leave feedback for each.

You can use CompleteSale call of Trading for performing post-payment tasks.

Ref: https://developer.ebay.com/devzone/xml/docs/reference/ebay/CompleteSale.html

Best regards ,
eBay Developer Support

· 2
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.

I have listed fixed-price items and trying to use initiatecheckoutsessionAPI with a different testuser( acting as a buyer).

API ENDPOINT: https://apix.sandbox.ebay.com/buy/order/v2/guest_checkout_session/initiate

Response:

{

"errors": [{

"errorId": 1100,

"domain": "ACCESS",

"category": "REQUEST",

"message": "Access denied",

"longMessage": "Insufficient permissions to fulfill the request."

}]}

0 Likes 0 ·

Can anyone guide me on how I can place an order and what steps I have to follow to place an order from the sandbox platform for a fixed-price item?

Currently, I have an item listed on the sandbox with a fixed price.

0 Likes 0 ·

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.