question

juljol_54 avatar image
0 Likes"
juljol_54 asked ·

getOrders return nothing en sandbox

Hello,

I tried to get orders from the sandbox but nothing is returned.

I did on try without paid an order (nothing return).

And a second with one order paid (nothing is returned again).

i post a screen of my sandbox interface.

Capture.PNG

So, i've some questions:

Is it possible to get orders on the sandbox with the sell API ?

Is it possible to get not paid orders with the sell API ? If not, how can i handle a not paid order with the sell API ?

Kind Regards,

Julien Jollant


ebay orders
capture.png (133.8 KiB)
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.

sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered ·

Hi @juljol_54,

You need to use GetOrders call of Trading API for getting the orders related information.
Ref: https://developer.ebay.com/devzone/xml/docs/reference/ebay/getorders.html

Please use the Order.CheckoutStatus.eBayPaymentStatus node for getting payment status and OrderArray.Order.OrderStatus for the order status.

Best Regards,
eBay Developers 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.

juljol_54 avatar image
0 Likes"
juljol_54 answered ·
Hello @ sagar_developersupport ,


Ok so I have a problem : if a customer start the checkout process, the stock quantity of my product descrease to 0 (because I am working with unique quantity for each SKU).


With the Trading API I was using the getOrders endpoint to allocate the product for ebay.


With the REST API, how can I know the product that has been impacted with incomplete checkout. If I don't get this information in some way, the product can still be sold on others channels.


Best regards,
Julien Jollant

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

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @juljol_54 ,

The Fulfillment API covers only the transactions that have completed the checkout process.

This API does not cover pending payment purchases that require upfront payment before shipment.

Ref: https://developer.ebay.com/api-docs/sell/fulfillment/overview.htmlIn sandbox environment, the order is not completed that is the reason it is not coming in the response of GetOrders call.

You can use GetOrders call of Trading API for getting the orders related information.

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

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.

juljol_54 avatar image
0 Likes"
juljol_54 answered ·

Hello @sagar_developersupport ,

I just tried to gar orders with the filter but again it returned nothing.

I used this endpoint https://api.sandbox.ebay.com/sell/fulfillment/v1/order?filter=orderfulfillmentstatus:%7BIN_PROGRESS%7CNOT_STARTED%7D&limit=50&offset=0

I checked the token is good, i used the user testuser_cdma59.


How is it possible ?


Best regards,
Julien Jollant


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

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @juljol_54 ,

I have tried to make Getorders call of sell.Fulfillment API and I am able to get the result in the response of call. Please make sure you are using the correct user token of the seller for whom you want to fetch the orders.

You can use the filter orderfulfillmentstatus:{NOT_STARTED|IN_PROGRESS} in the request and look for orderPaymentStatus node for handling the not paid orders.

Ref: https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrders#response.orders.orderPaymentStatus

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.