question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ asked ·

GetOrders: Get specific order by buyer username and item ID?

Is there any way for me to retrieve orders individually by the customer username and the item ID of the item said customer purchased? The reason for this is that I need the shipping details and the available email address included in the orders for a given customer.
getorderstrading-api
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.

dmarcus8 avatar image
0 Likes"
dmarcus8 answered ·
@jourbandts You cannot get OrderID from OrderLineItemID. OrderLineItemID is literally **ItemID-TransactionID**
· 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.

jourbandts avatar image
0 Likes"
jourbandts answered ·
So the quick answer is no, there is no direct way to do this. The long answer is yes there are a few ways to do this, 1. If you already know the ItemID and BuyerID, you can make a request to GetItemTransactions. Then find the specific transaction for that buyer. From there you can grab the OrderLineItemID. You then make a GetOrders request for that specific OrderID and it will give you back only information for that order. 2. The other option is to just parse through GetOrders. You will get all orders returned as usual, but you have the specific info you are looking for already. So you would have to find that order in the response and get the data as needed.
· 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.