question

justwangbing avatar image
1 Like"
justwangbing asked

How can I get buyer really shipping address

After buyer buy our item, we will post the item to the buyer. I use GetItemTransactions api, It will return a BuyerInfo which include ShippingAddress. We don't know if it's the really shipping address of buyer. Can someone help me?

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

gfiopcc avatar image
0 Likes"
gfiopcc answered

Function GetMyeBaySellingCall returns HitCount always is 0. Who can help me?

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.

gfiopcc avatar image
0 Likes"
gfiopcc answered

 

            if (this.OrderID == null)

            {

                GetOrderTransactionsCall apiCall = new GetOrderTransactionsCall(context);

 

                ItemTransactionIDTypeCollection coll = new ItemTransactionIDTypeCollection();

                ItemTransactionIDType type = new ItemTransactionIDType();

                type.ItemID = this.ItemID;

                type.TransactionID = this.TransactionID;

                coll.Add(type);

 

                OrderTypeCollection orderCollection = apiCall.GetOrderTransactions(coll);

 

                if (orderCollection.Count > 0)

                {

                    orderType = orderCollection[0];

                }

            }

            else

            {

                GetOrdersCall apiCall = new GetOrdersCall(context);

                OrderTypeCollection orderCollection = apiCall.GetOrders(new StringCollection() { this.OrderID });

 

                if (orderCollection.Count > 0)

                {

                    orderType = orderCollection[0];

                }

            }

 

            if (orderType == null)

            {

                return false;

            }

 

            AddressType addrType = orderType.ShippingAddress;

            if (addrType == null)

            {

                return false;

            }

 

            AddressType addrType = orderType.ShippingAddress;

 

 

 

Good Luck.

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.