Skip to main content
Published: February 06 2007, 12:32:00 PMUpdated: November 28 2020, 3:08:44 PM

Can I get the ExternalTransaction information for items combined into a single payment and paid via PayPal?

Summary

Yes, the ExternalTransaction container is returned for an order via GetOrders if mutliple items are combined into an order and paid via a single PayPal payment.  For transactions that are paid individually via PayPal, the ExternalTransaction information is returned in GetSellerTransactions / GetItemTransactions.


Detailed Description

To get the ExternalTransaction container, you need to set the DetailLevel to ReturnAll in your GetOrders request.  Here is a sample request:

 

<?xml version="1.0" encoding="utf-8"?>

<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">

  <Version>497</Version>

  <DetailLevel>ReturnAll</DetailLevel>

  <OrderIDArray>

    <OrderID>4331817</OrderID>

  </OrderIDArray>

  <RequesterCredentials>

    <eBayAuthToken>*****</eBayAuthToken>

  </RequesterCredentials>

</GetOrdersRequest>

 

Response containing ExternalTransaction:

<?xml version="1.0" encoding="utf-8"?>

<GetOrdersResponse xmlns="urn:ebay:apis:eBLBaseComponents">

  <Timestamp>20070206T19:18:23.308Z</Timestamp>

  <Ack>Success</Ack>

  <Version>497</Version>

  <Build>e497_core_Bundled_4149480_R1</Build>

  <OrderArray>

    <Order>

      <OrderID>4331817</OrderID>

      <OrderStatus>Completed</OrderStatus>

      <AdjustmentAmount currencyID="USD">0.0</AdjustmentAmount>

      <AmountSaved currencyID="USD">0.99</AmountSaved>

      <CheckoutStatus>

        <eBayPaymentStatus>PayPalPaymentInProcess</eBayPaymentStatus>

        <LastModifiedTime>20070206T19:04:56.000Z</LastModifiedTime>

        <PaymentMethod>PayPal</PaymentMethod>

        <Status>Complete</Status>

      </CheckoutStatus>

      + <ShippingDetails>

      <CreatingUserRole>Buyer</CreatingUserRole>

      <CreatedTime>20070206T19:03:01.000Z</CreatedTime>

      <PaymentMethods>MOCC</PaymentMethods>

      <PaymentMethods>PayPal</PaymentMethods>

      <PaymentMethods>PersonalCheck</PaymentMethods>

      <PaymentMethods>VisaMC</PaymentMethods>

      + <ShippingAddress>

      + <ShippingServiceSelected>

      <Subtotal currencyID="USD">20.0</Subtotal>

      <Total currencyID="USD">24.99</Total>

      <ExternalTransaction>

        <ExternalTransactionID>4JY25281RA200094M</ExternalTransactionID>

        <ExternalTransactionTime>20070206T19:03:38.000Z</ExternalTransactionTime>

        <FeeOrCreditAmount currencyID="USD">0.0</FeeOrCreditAmount>

        <PaymentOrRefundAmount currencyID="USD">24.99</PaymentOrRefundAmount>

      </ExternalTransaction>

      <DigitalDelivery>false</DigitalDelivery>

      + <TransactionArray>

      <BuyerUserID>dts2</BuyerUserID>

    </Order>

  </OrderArray>

</GetOrdersResponse>

   

Similarly, for GetSellerTransactions / GetItemTransactions, you need to set the DetailLevel of ReturnAll to get the ExternalTransaction information.

Version Info

The code example above was based on the versions specified below:

API Schema Version 497


Additional Resources

How well did this answer your question?
Answers others found helpful