Skip to main content
Published: October 08 2009, 9:21:00 PMUpdated: August 09 2022, 11:34:28 AM

 

Summary

  There is no API for creating orders based on Sales Record Number. However;  there is a 1:1 relationship between eBay Sales Record Number and eBay Transaction( ItemID+TransactionID) so that you can use AddOrder by specifying ItemId and TransactionID pairs as below in the request to create orders:

<?xml version="1.0" encoding="utf-8"?>
<AddOrderRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>1263</Version>
  <ErrorLanguage>en_US</ErrorLanguage>
  <WarningLevel>High</WarningLevel>
  <Order>
    <CreatingUserRole>Seller</CreatingUserRole>
    <PaymentMethods>PayPal</PaymentMethods>
    <Total currencyID="USD">8.50</Total>
    <TransactionArray>
      <Transaction>
        <Item>
          <ItemID>150370031260</ItemID>
        </Item>
        <TransactionID>381063459005</TransactionID>
      </Transaction>
      <Transaction>
        <Item>
          <ItemID>150349337893</ItemID>
        </Item>
        <TransactionID>381061710005</TransactionID>
      </Transaction>
    </TransactionArray>
  </Order>
  <RequesterCredentials>
       <eBayAuthToken>AgAAAAxxxx</eBayAuthToken>
  </RequesterCredentials>
</AddOrderRequest>

   Then, the new order with a new Sales Record Number and the item transactions in that order are displayed on the seller's My eBay page.

Also,  you can specify  <IncludeContainingOrder>true</IncludeContainingOrder> in GetSellerTransactions to obtain the ContainingOrder data that each Transaction belongs to:

<?xml version="1.0" encoding="utf-8"?>
<GetSellerTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <DetailLevel>ReturnAll</DetailLevel>
  <ModTimeFrom>2009-10-02T17:18:52.799Z</ModTimeFrom>
  <ModTimeTo>2009-10-02T18:28:52.799Z</ModTimeTo>
  <IncludeContainingOrder>true</IncludeContainingOrder>
  <RequesterCredentials>
       <eBayAuthToken>AgAAAAxxxx</eBayAuthToken>
  </RequesterCredentials>
</GetSellerTransactionsRequest>

OrderID and SalesRecordNumber that associated with that order are reported in ContainingOrder as below:

- <ContainingOrder>
  <OrderID>55552579012</OrderID>
  <OrderStatus>Active</OrderStatus>
- <ShippingDetails>
  <SellingManagerSalesRecordNumber>1026</SellingManagerSalesRecordNumber>
  </ShippingDetails>
  <CreatingUserRole>Seller</CreatingUserRole>
  </ContainingOrder>
 

 

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