question

stephaniejanine06 avatar image
0 Likes"
stephaniejanine06 asked ·

GetOrders get Buyer Email Help

i have tryed endlessly to get the buyers email address and message-box it back to myself. Does anyone know how to go about getting the buyers email address with the getOrders call or know what im doing wrong? **CODE:** contextLoad(ebayAccountUsername) 'NOT DONE Dim apicall As GetOrdersCall = New GetOrdersCall(context) apicall.OrderStatus = OrderStatusCodeType.Completed apicall.OrderRole = TradingRoleCodeType.Seller apicall.DetailLevelList = New DetailLevelCodeTypeCollection() apicall.DetailLevelList.Add(DetailLevelCodeType.ReturnAll) apicall.CreateTimeFrom = Now.AddDays(-900) apicall.CreateTimeTo = Now apicall.Execute() Dim OA As OrderType For Each OA In apicall.OrderList MsgBox(OA.OrderID.ToString) MsgBox(OA.PaidTime.Date.ToString) MsgBox(OA.OrderStatus.ToString) MsgBox(OA.ShippedTime.ToString) MsgBox(OA.Total.Value.ToString) MsgBox(OA.BuyerUserID.ToString) MsgBox(OA.CheckoutStatus.PaymentMethod.ToString) MsgBox(OA.ShippingAddress.Country.ToString) MsgBox(OA.ShippingAddress.StateOrProvince.ToString) MsgBox(OA.ShippingAddress.PostalCode.ToString) MsgBox(OA.ShippingAddress.CityName.ToString) MsgBox(OA.ShippingAddress.Name.ToString) MsgBox(OA.ShippingAddress.Phone.ToString) MsgBox(OA.ShippingAddress.Street1) MsgBox(OA.ShippingAddress.Street2) MsgBox(OA.ShippingDetails.InsuranceFee.Value) 'MsgBox(OA.SellerEmail) MsgBox(OA.ShippingDetails.SellingManagerSalesRecordNumber.ToString) Dim tranac As ExternalTransactionType For Each tranac In OA.ExternalTransaction MsgBox(tranac.ExternalTransactionID.ToString) Next Dim tran As TransactionType For Each tran In OA.TransactionArray Dim tran2 As ShipmentTrackingDetailsType MsgBox(tran.QuantityPurchased.ToString) MsgBox(tran.ActualShippingCost.Value.ToString) MsgBox(tran.Taxes.TotalTaxAmount.Value.ToString) MsgBox(tran.Item.Title.ToString) MsgBox(tran.PayPalEmailAddress) MsgBox(tran.Buyer.Email) MsgBox(tran.Buyer.StaticAlias) MsgBox(tran.Buyer.BillingEmail) MsgBox(tran.Buyer.BuyerInfo) For Each tran2 In tran.ShippingDetails.ShipmentTrackingDetails MsgBox(tran2.ShippingCarrierUsed) MsgBox(tran2.ShipmentTrackingNumber) Next Next 'MsgBox(OA.ShippingAddress.Country.ToString & ", " & OA.ShippingAddress.CityName.ToString & ", " & OA.ShippingAddress.PostalCode.ToString) Next
getorders.net api getordersget orders getorder
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
outlawspeedshop avatar image
0 Likes"
outlawspeedshop answered ·
Hi @stephaniejanine06 One method I found that does return it (we use for getting phone numbers) is to get the "SellingManagerSaleRecord" // This is from our PayPal system so not 100% sure what else it supports but it gives you a path way to venture to find your solution. [C# Code] foreach (OrderType item in pColl) { if (item.ExternalTransaction != null) { if (item.ExternalTransaction.Count == 1) { if (item.ExternalTransaction[0].ExternalTransactionID != "") { pGetSalesRecord.OrderID = item.OrderID; pGetSalesRecord.Execute(); pRecord = pGetSalesRecord.ApiResponse; if (pRecord.Ack == AckCodeType.Success) { if (pRecord.SellingManagerSoldOrder != null) { pRecord.SellingManagerSoldOrder.BuyerEmail; // <-- Contains buyers email // Not sure if Selling Manager Pro is required or not try it and find out } } } } } }
· 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.