cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need help on get orders API

I am trying to get orders detail through which i am getting but somehow it doesn't give me quantity response so it gives me all the details apart from order quantity. for reference, please see below response.

 

[16:34, 10/23/2023] Vipulbhai Software: "OrderID" => "16-10691-29411"
"OrderStatus" => "Completed"
"AdjustmentAmount" => "0.0"
"AmountPaid" => "13.48"
"AmountSaved" => "1.5"
"CheckoutStatus" => array:6 [▶]
"ShippingDetails" => array:4 [▶]
"CreatingUserRole" => "Buyer"
"CreatedTime" => "2023-10-23T12:01:14.000Z"
"ShippingAddress" => array:11 [▶]
"ShippingServiceSelected" => array:2 [▶]
"Subtotal" => "13.48"
"Total" => "13.48"
"TransactionArray" => array:1 [▶]
"PaidTime" => "2023-10-23T12:01:11.471Z"
"ShippedTime" => "2023-10-23T14:34:45.000Z"
"IntegratedMerchantCreditCardEnabled" => "false"
"EIASToken" => "nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wMkIKjAJCHoQidj6x9nY+seQ=="
"PaymentHoldStatus" => "None"
"IsMultiLegShipping" => "false"
"MonetaryDetails" => array:1 [▶]
"SellerUserID" => "superutensil"
"SellerEIASToken" => "nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6AAl4KmAZmLogmdj6x9nY+seQ=="
"CancelStatus" => "NotApplicable"
"ExtendedOrderID" => "16-10691-29411"
"ContainseBayPlusTransaction" => "false
[16:34, 10/23/2023] Vipulbhai Software: hi

Message 1 of 2
latest reply
1 REPLY 1

Re: Need help on get orders API

Are using the GetOrders call in the Trading API  (QuantityPurchased)?

https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/GetOrders.html

 

Below is the hierarchy of QuantityPurchased:

OrderArray.Order.TransactionArray.Transaction.QuantityPurchased

 

You have one element in "TransactionArray". Open that array to find "Transaction" and then open the detail of "Transaction" to find "QuantityPurchased".

 

There are many arrays in your response that should be opened to extract their more-deeply embedded details.

 

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 2
latest reply