eBay Return Management APIVersion 1.1.0
 

getReturnDetail



Note: The Return Management API is no longer recommended. Instead, current users of the Return Management API should make plans to migrate to, and use the Return operations of the Post-Order API. New users interested is programmatically managing return requests, should also make plans to integrate with the Post-Order API. The Return Management API was developed to be used by sellers who had opted in to "Hassle-free Returns". Hassle-free Returns have been replaced by a new Returns Platform, where sellers fully or partially automate the processing of return requests through Return Automation Rules. The Return Management API does not support all features and logic of the new Returns Platform, and this API will be deprecated in the near future.

This call retrieves detailed information on one eBay-Managed return.

Note: Users of this call should start using the GET /post-order/v2/return/{returnId} call of the Post-Order API instead.

Request Details

To retrieve a specific return, the caller passes a return ID into the ReturnId.id field. The Return ID value can be obtained with the getUserReturns call.

Working with the Response

A ReturnSummary and a ReturnDetail container is returned if a return matches the return ID passed in the request.

The ReturnSummary container consists of the following information:

The ReturnDetail container consists of the following information:



Input

See also Samples.

The box below lists all fields that could be included in the call request. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).

See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are (or soon will be) non-operational.

<?xml version="1.0" encoding="utf-8"?>
<getReturnDetailRequest xmlns="http://www.ebay.com/marketplace/returns/v1/services">
  <!-- Call-specific Input Fields -->
  <ReturnId> ReturnIdType
    <id> string </id>
  </ReturnId>
</getReturnDetailRequest>
Argument Type Occurrence Meaning
ReturnId ReturnIdType Required Container consisting of the unique identifier for a return. A return ID value is the only input parameter for getReturnDetail, and is required. Return ID values are returned in the ReturnId.id field of each ReturnSummary container returned in the getUserReturns response.
ReturnId.id string Required This string value is the unique identifier for a return, and is returned in the responses of getUserReturns and getReturnDetail. For getReturnDetail, getActivityOptions, issueRefund, provideSellerInfo, provideTrackingInfo, and setItemAsReceived, a ReturnId value is a required input field.
Max length: 38.



Output

See also Samples.

The box below lists all fields that might be returned in the response. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).

See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are not returned (or soon will not be returned) or are not operational (or soon will be non-operational).

<?xml version="1.0" encoding="utf-8"?>
<getReturnDetailResponse xmlns="http://www.ebay.com/marketplace/returns/v1/services">
  <!-- Call-specific Output Fields -->
  <ReturnDetail> ReturnDetailType
    <buyerReturnShipment> ShipmentType
      <carrierUsed> string </carrierUsed>
      <deliveryDate> dateTime </deliveryDate>
      <maxEstDeliveryDate> dateTime </maxEstDeliveryDate>
      <minEstDeliveryDate> dateTime </minEstDeliveryDate>
      <returnMerchandiseAuthorization> string </returnMerchandiseAuthorization>
      <shipmentStatus> ShipmentStatusType </shipmentStatus>
      <shippingAddress> Address
        <city> string </city>
        <country> string </country>
        <county> string </county>
        <name> string </name>
        <postalCode> string </postalCode>
        <stateOrProvince> string </stateOrProvince>
        <street1> string </street1>
        <street2> string </street2>
      </shippingAddress>
      <shippingCost> Amount (double) </shippingCost>
      <trackingNumber> string </trackingNumber>
    </buyerReturnShipment>
    <caseId> CaseIdType
      <id> string </id>
      <type> CaseType </type>
    </caseId>
    <globalId> token </globalId>
    <refundInfo> RefundInfoType
      <actualRefundDetail> ActualRefundDetailType
        <actualRefund> RefundDetailType
          <itemizedRefund> ItemizedRefundDetailType
            <amount> Amount (double) </amount>
            <refundFeeType> RefundFeeType </refundFeeType>
          </itemizedRefund>
          <!-- ... more itemizedRefund nodes allowed here ... -->
          <totalAmount> Amount (double) </totalAmount>
        </actualRefund>
        <refundDate> dateTime </refundDate>
        <refundStatus> RefundStatusType </refundStatus>
      </actualRefundDetail>
      <estimatedRefundDetail> EstimatedRefundDetailType
        <estimatedRefund> RefundDetailType
          <itemizedRefund> ItemizedRefundDetailType
            <amount> Amount (double) </amount>
            <refundFeeType> RefundFeeType </refundFeeType>
          </itemizedRefund>
          <!-- ... more itemizedRefund nodes allowed here ... -->
          <totalAmount> Amount (double) </totalAmount>
        </estimatedRefund>
        <itemizedOptionalRefund> ItemizedRefundDetailType
          <amount> Amount (double) </amount>
          <refundFeeType> RefundFeeType </refundFeeType>
        </itemizedOptionalRefund>
        <!-- ... more itemizedOptionalRefund nodes allowed here ... -->
      </estimatedRefundDetail>
      <refundDue> dateTime </refundDue>
    </refundInfo>
    <returnHistory> ReturnResponseHistoryType
      <activityDetail> ActivityDetailType (EnumerationDetailType)
        <code> token </code>
        <content> token </content>
        <description> token </description>
      </activityDetail>
      <author> ReturnUserType
        <role> ReturnUserRoleType </role>
        <userId> string </userId>
      </author>
      <creationDate> dateTime </creationDate>
      <note> string </note>
    </returnHistory>
    <!-- ... more returnHistory nodes allowed here ... -->
    <returnPolicy> ReturnPolicyInfoType
      <optedForMultipleReturnAddress> boolean </optedForMultipleReturnAddress>
      <optedForRMA> boolean </optedForRMA>
    </returnPolicy>
    <shipmentInfo> ShipmentType
      <carrierUsed> string </carrierUsed>
      <deliveryDate> dateTime </deliveryDate>
      <maxEstDeliveryDate> dateTime </maxEstDeliveryDate>
      <minEstDeliveryDate> dateTime </minEstDeliveryDate>
      <returnMerchandiseAuthorization> string </returnMerchandiseAuthorization>
      <shipmentStatus> ShipmentStatusType </shipmentStatus>
      <shippingAddress> Address
        <city> string </city>
        <country> string </country>
        <county> string </county>
        <name> string </name>
        <postalCode> string </postalCode>
        <stateOrProvince> string </stateOrProvince>
        <street1> string </street1>
        <street2> string </street2>
      </shippingAddress>
      <shippingCost> Amount (double) </shippingCost>
      <trackingNumber> string </trackingNumber>
    </shipmentInfo>
    <!-- ... more shipmentInfo nodes allowed here ... -->
  </ReturnDetail>
  <ReturnSummary> ReturnSummaryType
    <creationDate> dateTime </creationDate>
    <lastModifiedDate> dateTime </lastModifiedDate>
    <otherParty> ReturnUserType
      <role> ReturnUserRoleType </role>
      <userId> string </userId>
    </otherParty>
    <responseDue> ReturnResponseDueType
      <party> ReturnUserType
        <role> ReturnUserRoleType </role>
        <userId> string </userId>
      </party>
      <respondByDate> dateTime </respondByDate>
    </responseDue>
    <ReturnId> ReturnIdType
      <id> string </id>
    </ReturnId>
    <returnRequest> ReturnRequestType
      <comments> string </comments>
      <returnItem> ReturnItemType
        <itemId> string </itemId>
        <returnQuantity> int </returnQuantity>
        <transactionId> string </transactionId>
      </returnItem>
      <!-- ... more returnItem nodes allowed here ... -->
      <returnReason> ReturnReasonType (EnumerationDetailType)
        <code> token </code>
        <content> token </content>
        <description> token </description>
      </returnReason>
    </returnRequest>
    <ReturnType> ReturnType </ReturnType>
    <status> ReturnStatusType </status>
  </ReturnSummary>
  <!-- Standard Output Fields -->
  <ack> AckValue </ack>
  <errorMessage> ErrorMessage
    <error> ErrorData
      <category> ErrorCategory </category>
      <domain> string </domain>
      <errorId> long </errorId>
      <exceptionId> token </exceptionId>
      <message> string </message>
      <parameter name="string"> ErrorParameter (string) </parameter>
      <!-- ... more parameter values allowed here ... -->
      <severity> ErrorSeverity </severity>
      <subdomain> string </subdomain>
    </error>
    <!-- ... more error nodes allowed here ... -->
  </errorMessage>
  <timestamp> dateTime </timestamp>
  <version> string </version>
</getReturnDetailResponse>
Return Value Type Occurrence Meaning
Call-specific Output Fields [Jump to standard fields]
ReturnDetail ReturnDetailType Always Container consisting of detailed, dynamic information for the return matching the return ID specified in the request. This information includes the return status, return activity log, returned item status, return shipping information (including an RMA if applicable), refund details, and eBay Buyer Protection case information (if applicable).
ReturnDetail
  .buyerReturnShipment
ShipmentType Conditionally Deprecated as of 01-14-2013. No longer returned. Use shipmentInfo instead.
This field is deprecated. Please see the shipmentInfo container to obtain both seller and buyer shipping information.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .carrierUsed
string Conditionally Deprecated as of 01-14-2013.
This value is the name of the shipping carrier.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .deliveryDate
dateTime Conditionally Deprecated as of 01-14-2013.
This value indicates the actual date of delivery for the returned item. This field is only returned after the seller has received the returned item from the buyer.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .maxEstDeliveryDate
dateTime Conditionally Deprecated as of 01-14-2013.
This date is the latest date that the seller can expect to receive a returned item from the buyer.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .minEstDeliveryDate
dateTime Conditionally Deprecated as of 01-14-2013.
This date is the earliest date that the seller can expect to receive a returned item from the buyer.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .returnMerchandiseAuthorization
string Conditionally Deprecated as of 01-14-2013.
This value is the Return Merchandize Authorization (RMA) number associated with the item. The RMA number for an item is expected to be provided by the seller to the buyer upon request. This field is only returned if the buyer requests an RMA number and it is provided by the seller.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shipmentStatus
ShipmentStatusType Conditionally Deprecated as of 01-14-2013.
This value indicates the current shipping status of the item.

Applicable values:

ITEM_DELIVERED
This value indicates that the returned item has been received by the seller.
ITEM_SHIPPED
This value indicates that the item has been shipped by the buyer.
OTHER
This value is reserved for future use.
READY_FOR_SHIPPING
This value indicates that the item is ready to be return shipped by the buyer.
WAITING_FOR_SELLER_INFO
This value indicates that the buyer is waiting for an Return Merchandise Authorization (RMA) number and/or an alternative return shipping address before returning the item to the seller. A seller can provide a buyer with this information by using the provideSellerInfo call.

Code so that your app gracefully handles any future changes to this list.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress
Address Conditionally Deprecated as of 01-14-2013.
This container consists of the seller's primary return address in My eBay, or the return address provided by the seller through the provideSellerInfo call.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress.city
string Conditionally Deprecated as of 01-14-2013.
The city on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress.country
string Conditionally Deprecated as of 01-14-2013.
The country on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress.county
string Conditionally Deprecated as of 01-14-2013.
The county on record for the seller's shipping address. This field is not always used, but it should be provided (if applicable) if a seller is updating a shipping address using the provideSellerInfo call.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress.name
string Conditionally Deprecated as of 01-14-2013.
The name on record for the seller's shipping address.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress.postalCode
string Conditionally Deprecated as of 01-14-2013.
The postal code on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress
  .stateOrProvince
string Conditionally Deprecated as of 01-14-2013.
The state or province on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress.street1
string Conditionally Deprecated as of 01-14-2013.
The street address on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingAddress.street2
string Conditionally Deprecated as of 01-14-2013.
The second line of the street address on record for the seller's shipping address. This field is not always used, but it should be provided (if applicable) if a seller is updating a shipping address using the provideSellerInfo call.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .shippingCost
Amount (double) Conditionally Deprecated as of 01-14-2013.
This dollar value indicates the total shipping costs incurred by the buyer to ship the returned item.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail
  .buyerReturnShipment
  .trackingNumber
string Conditionally Deprecated as of 01-14-2013.
This value is the tracking number used by the shipping carrier.
Deprecation date: 01-14-2013. See also Deprecated Objects.
ReturnDetail.caseId CaseIdType Conditionally Container consisting of the eBay Buyer Protection case ID and case type. This container is only returned if a return is escalated to the eBay Buyer Protection system and accepted as an eBP case.
ReturnDetail.caseId.id string Conditionally Unique identifier of an eBay Buyer Protection case.
Max length: 38.
ReturnDetail.caseId.type CaseType Conditionally This value indicates the type of eBay Buyer Protection case. For an escalated return case, the value will most likely be EBP_SNAD (item Significantly Not As Described).

Applicable values:

EBP_SNAD
This value indicates that the eBay Buyer Protection case involves a "significantly not as described" item.
OTHER
This value is reserved for future use.

Code so that your app gracefully handles any future changes to this list.
ReturnDetail.globalId token Always Unique identifier of the eBay site (such as 'EBAY-US') where the order occurred.
ReturnDetail.refundInfo RefundInfoType Always Container consisting of details and values related to estimated, actual, and itemized refunds to the buyer.
ReturnDetail.refundInfo
  .actualRefundDetail
ActualRefundDetailType Conditionally Container consisting of the actual amount of a seller's refund to the buyer. The actualRefundDetail container will contain one itemizedRefund container for each refund fee type issued to the buyer (such as purchase price or original shipping). Similarly, one itemizedOptionalRefund container will be present for each optional refund fee type that a seller can issue to a buyer.
ReturnDetail.refundInfo
  .actualRefundDetail
  .actualRefund
RefundDetailType Conditionally Container consisting of the total refund amount awarded to the buyer and one or more itemizedRefund containers. One itemizedRefund container will be present for each refund fee type (such as purchase price or original shipping). This container is only returned if a refund has been issued by the seller.
ReturnDetail.refundInfo
  .actualRefundDetail
  .actualRefund.itemizedRefund
ItemizedRefundDetailType Always,
repeatable: [1..*]
Container used to track estimated and actual individual refund amounts by fee type (such as purchase price, original shipping, or restocking fee). At least one itemizedRefund container is required when the seller is issuing a refund to the buyer through the issueRefund call.
ReturnDetail.refundInfo
  .actualRefundDetail
  .actualRefund.itemizedRefund
  .amount
Amount (double) Conditionally This dollar amount indicates the amount of the corresponding refund fee type.
ReturnDetail.refundInfo
  .actualRefundDetail
  .actualRefund.itemizedRefund
  .refundFeeType
RefundFeeType Conditionally This value indicates the type of refund fee, such as purchase price or original shipping.

Applicable values:

ORIGINAL_SHIPPING
This value indicates that the refund to the buyer is for the original shipping costs of the item, or items (for multiple quantity purchases).
OTHER
This value is reserved for future use.
PURCHASE_PRICE
This value indicates that the refund to the buyer is for the purchase price of the item, or items (for multiple quantity purchases).
RESTOCKING_FEE
This is the only RefundFeeType value that will be a negative dollar value, as a restocking fee is a charge against the buyer for returning the item. In order to enforce a restocking fee on an item, the seller must include a restocking fee value as part of the listing's return policy. In the listing APIs, this field is Item.ReturnPolicy.RestockingFeeValue.

Code so that your app gracefully handles any future changes to this list.
ReturnDetail.refundInfo
  .actualRefundDetail
  .actualRefund.totalAmount
Amount (double) Conditionally This dollar value indicates the total amount of actual refunds issued by the seller to the buyer. This is a dynamic value while the return is open. The refundDetail.totalAmount value is required in the issueRefund call and it should match the refundDetail.itemizedRefundAmount value (if only one refund type is being issued by the seller) or the composite value of multiple refundDetail.itemizedRefundAmount values (if multiple refund types are being issued by the seller).
ReturnDetail.refundInfo
  .actualRefundDetail.refundDate
dateTime Conditionally This date indicates the date of the seller's refund to the buyer. This field is only returned if a refund has been issued by the seller.
ReturnDetail.refundInfo
  .actualRefundDetail
  .refundStatus
RefundStatusType Conditionally This value indicates the result of the seller's refund attempt. The two valid values are SUCCESS or FAILED. PENDING is for future use.

Applicable values:

FAILED
This value indicates that the seller's refund to the buyer failed.
PENDING
This value indicates that the seller's refund to the buyer is pending. This value is commonly returned if the payment method was eCheck.
SUCCESS
This value indicates that the seller's refund to the buyer was successful.

Code so that your app gracefully handles any future changes to this list.
ReturnDetail.refundInfo
  .estimatedRefundDetail
EstimatedRefundDetailType Always Container consisting of the estimated amount of a seller's refund to the buyer. The estimatedRefundDetail container will contain one itemizedRefund container for each refund fee type due to the buyer (such as purchase price or original shipping). Similarly, if the seller elects to issue additional refund(s) beyond what is required, one itemizedOptionalRefund container will be present for each optional refund issued to the buyer.
ReturnDetail.refundInfo
  .estimatedRefundDetail
  .estimatedRefund
RefundDetailType Always Container consisting of the total estimated refund amount due to the buyer and one or more itemizedRefund containers. One itemizedRefund container will be present for each refund fee type (such as purchase price or original shipping).
ReturnDetail.refundInfo
  .estimatedRefundDetail
  .estimatedRefund
  .itemizedRefund
ItemizedRefundDetailType Always,
repeatable: [1..*]
Container used to track estimated and actual individual refund amounts by fee type (such as purchase price, original shipping, or restocking fee). At least one itemizedRefund container is required when the seller is issuing a refund to the buyer through the issueRefund call.
ReturnDetail.refundInfo
  .estimatedRefundDetail
  .estimatedRefund
  .itemizedRefund.amount
Amount (double) Conditionally This dollar amount indicates the amount of the corresponding refund fee type.
ReturnDetail.refundInfo
  .estimatedRefundDetail
  .estimatedRefund
  .itemizedRefund.refundFeeType
RefundFeeType Conditionally This value indicates the type of refund fee, such as purchase price or original shipping.

Applicable values:

ORIGINAL_SHIPPING
This value indicates that the refund to the buyer is for the original shipping costs of the item, or items (for multiple quantity purchases).
OTHER
This value is reserved for future use.
PURCHASE_PRICE
This value indicates that the refund to the buyer is for the purchase price of the item, or items (for multiple quantity purchases).
RESTOCKING_FEE
This is the only RefundFeeType value that will be a negative dollar value, as a restocking fee is a charge against the buyer for returning the item. In order to enforce a restocking fee on an item, the seller must include a restocking fee value as part of the listing's return policy. In the listing APIs, this field is Item.ReturnPolicy.RestockingFeeValue.

Code so that your app gracefully handles any future changes to this list.
ReturnDetail.refundInfo
  .estimatedRefundDetail
  .estimatedRefund.totalAmount
Amount (double) Conditionally This dollar value indicates the total amount of actual refunds issued by the seller to the buyer. This is a dynamic value while the return is open. The refundDetail.totalAmount value is required in the issueRefund call and it should match the refundDetail.itemizedRefundAmount value (if only one refund type is being issued by the seller) or the composite value of multiple refundDetail.itemizedRefundAmount values (if multiple refund types are being issued by the seller).
ReturnDetail.refundInfo
  .estimatedRefundDetail
  .itemizedOptionalRefund
ItemizedRefundDetailType Conditionally,
repeatable: [0..*]
One itemizedOptionalRefund container will be present for each optional refund fee type that a seller can issue to a buyer.
ReturnDetail.refundInfo
  .estimatedRefundDetail
  .itemizedOptionalRefund.amount
Amount (double) Conditionally This dollar amount indicates the amount of the corresponding refund fee type.
ReturnDetail.refundInfo
  .estimatedRefundDetail
  .itemizedOptionalRefund
  .refundFeeType
RefundFeeType Conditionally This value indicates the type of refund fee, such as purchase price or original shipping.

Applicable values:

ORIGINAL_SHIPPING
This value indicates that the refund to the buyer is for the original shipping costs of the item, or items (for multiple quantity purchases).
OTHER
This value is reserved for future use.
PURCHASE_PRICE
This value indicates that the refund to the buyer is for the purchase price of the item, or items (for multiple quantity purchases).
RESTOCKING_FEE
This is the only RefundFeeType value that will be a negative dollar value, as a restocking fee is a charge against the buyer for returning the item. In order to enforce a restocking fee on an item, the seller must include a restocking fee value as part of the listing's return policy. In the listing APIs, this field is Item.ReturnPolicy.RestockingFeeValue.

Code so that your app gracefully handles any future changes to this list.
ReturnDetail.refundInfo
  .refundDue
dateTime Conditionally This field indicates the refund due date, and will only appear if a refund to the buyer has not been issued by the seller.
ReturnDetail.returnHistory ReturnResponseHistoryType Always,
repeatable: [1..*]
Repeatable container consisting of details related to each activity in a return. A returnHistory node is returned for each activity that has occurred with the return, and each node contains the type of activity, the timestamp for the activity, the initiator of the activity, and any notes related to the return. Additionally, if the activity is related to a money movement transaction, a ReturnDetail.returnHistory.attributes container is returned providing more information on the transaction.
ReturnDetail.returnHistory
  .activityDetail
ActivityDetailType (EnumerationDetailType) Conditionally This container consists of the enumeration ID value and description of the return activity. Note that the content element of this container is reserved for future use.
ReturnDetail.returnHistory
  .activityDetail.code
token Always Unique identifier of the enumeration value.
ReturnDetail.returnHistory
  .activityDetail.content
token Always Reserved for future use.
ReturnDetail.returnHistory
  .activityDetail.description
token Always A description of the enumeration value.
ReturnDetail.returnHistory
  .author
ReturnUserType Always Container that identifies the initiator of the action by eBay user ID and role in the return.
ReturnDetail.returnHistory
  .author.role
ReturnUserRoleType Always The role (such as buyer or seller) of the party involved in the return.

Applicable values:

BUYER
This value indicates that the user's role in the return is buyer.
EBAY
This value indicates that the user's role in the return is eBay.
OTHER
This value is reserved for future use.
SELLER
This value indicates that the user's role in the return is seller.
SYSTEM
This value indicates that the user's role in the return is system.

Code so that your app gracefully handles any future changes to this list.
ReturnDetail.returnHistory
  .author.userId
string Always The eBay user ID for the party involved in the return.
ReturnDetail.returnHistory
  .creationDate
dateTime Always The timestamp of the return activity.
ReturnDetail.returnHistory
  .note
string Conditionally This field is returned if the party initiating the action included a note. The text in this field will mirror any text input into the text box in the Return Management Center.
ReturnDetail.returnPolicy ReturnPolicyInfoType Conditionally Container consisting of flags which indicate whether the seller is willing to provide the buyer a Return Merchandise Authorization number (if requested), and if the seller accepts returns to more than one address. These return policy preferences are set by the seller in the Return Center. This container will only be returned if at least one of the flags is turned on.
ReturnDetail.returnPolicy
  .optedForMultipleReturnAddress
boolean Conditionally This field indicates that the seller has agreed to accept returns at multiple return addresses. A seller can provide an alternative return address to the buyer by using the returnAddress container of the provideSellerInfo call. A seller will use the provideSellerInfo call to provide an alternative return address to the buyer when the status of the return is 'WAITING_FOR_SELLER_INFO'. This field is only returned if 'true'. If the seller has not agreed to accept returns at multiple return addresses, the seller's primary return address in My eBay is used.
ReturnDetail.returnPolicy
  .optedForRMA
boolean Conditionally This field indicates that the seller has agreed to provide a Return Merchandise Authorization (RMA) number to buyers upon request. A seller can provide an RMA to the buyer by using the returnMerchandiseAuthorization field of the provideSellerInfo call. A seller will use the provideSellerInfo call to provide an RMA to the buyer when the status of the return is 'WAITING_FOR_SELLER_INFO'. This field is only returned if 'true'.
ReturnDetail.shipmentInfo ShipmentType Conditionally,
repeatable: [0..*]
Container consisting of details related to the buyer and/or seller shipments. Information in the shipmentInfo container includes the destination shipping address on record, the expected delivery date, the shipping carrier used, the tracking number, and the delivery status.
ReturnDetail.shipmentInfo
  .carrierUsed
string Conditionally This value is the name of the shipping carrier.
ReturnDetail.shipmentInfo
  .deliveryDate
dateTime Conditionally This value indicates the actual date of delivery for the returned item. This field is only returned after the seller has received the returned item from the buyer.
ReturnDetail.shipmentInfo
  .maxEstDeliveryDate
dateTime Conditionally This date is the latest date that the seller can expect to receive a returned item from the buyer.
ReturnDetail.shipmentInfo
  .minEstDeliveryDate
dateTime Conditionally This date is the earliest date that the seller can expect to receive a returned item from the buyer.
ReturnDetail.shipmentInfo
  .returnMerchandiseAuthorization
string Conditionally This value is the Return Merchandize Authorization (RMA) number associated with the item. The RMA number for an item is expected to be provided by the seller to the buyer upon request. This field is only returned if the buyer requests an RMA number and it is provided by the seller.
ReturnDetail.shipmentInfo
  .shipmentStatus
ShipmentStatusType Conditionally This value indicates the current shipping status of the item.

Applicable values:

ITEM_DELIVERED
This value indicates that the returned item has been received by the seller.
ITEM_SHIPPED
This value indicates that the item has been shipped by the buyer.
OTHER
This value is reserved for future use.
READY_FOR_SHIPPING
This value indicates that the item is ready to be return shipped by the buyer.
WAITING_FOR_SELLER_INFO
This value indicates that the buyer is waiting for an Return Merchandise Authorization (RMA) number and/or an alternative return shipping address before returning the item to the seller. A seller can provide a buyer with this information by using the provideSellerInfo call.

Code so that your app gracefully handles any future changes to this list.
ReturnDetail.shipmentInfo
  .shippingAddress
Address Conditionally This container consists of the seller's primary return address in My eBay, or the return address provided by the seller through the provideSellerInfo call.
ReturnDetail.shipmentInfo
  .shippingAddress.city
string Conditionally The city on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
ReturnDetail.shipmentInfo
  .shippingAddress.country
string Conditionally The country on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
ReturnDetail.shipmentInfo
  .shippingAddress.county
string Conditionally The county on record for the seller's shipping address. This field is not always used, but it should be provided (if applicable) if a seller is updating a shipping address using the provideSellerInfo call.
ReturnDetail.shipmentInfo
  .shippingAddress.name
string Conditionally The name on record for the seller's shipping address.
ReturnDetail.shipmentInfo
  .shippingAddress.postalCode
string Conditionally The postal code on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
ReturnDetail.shipmentInfo
  .shippingAddress
  .stateOrProvince
string Conditionally The state or province on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
ReturnDetail.shipmentInfo
  .shippingAddress.street1
string Conditionally The street address on record for the seller's shipping address. If a seller is updating a shipping address using the provideSellerInfo call, this field is required.
ReturnDetail.shipmentInfo
  .shippingAddress.street2
string Conditionally The second line of the street address on record for the seller's shipping address. This field is not always used, but it should be provided (if applicable) if a seller is updating a shipping address using the provideSellerInfo call.
ReturnDetail.shipmentInfo
  .shippingCost
Amount (double) Conditionally This dollar value indicates the total shipping costs incurred by the buyer to ship the returned item.
ReturnDetail.shipmentInfo
  .trackingNumber
string Conditionally This value is the tracking number used by the shipping carrier.
ReturnSummary ReturnSummaryType Always Container consisting of high-level information for the return matching the return ID specified in the request. This information includes the creation and modification dates for the return, the estimated refund amount, the reason for the return, item information, response date, and the current status of the return.
ReturnSummary.creationDate dateTime Always This date indicates the date on which the return was created.
ReturnSummary.lastModifiedDate dateTime Always This date indicates the date on which the return was last modified.
ReturnSummary.otherParty ReturnUserType Always Container that identifies the other party involved in the return. The party is identified by eBay user ID and role (BUYER or SELLER).
ReturnSummary.otherParty.role ReturnUserRoleType Always The role (such as buyer or seller) of the party involved in the return.

Applicable values:

BUYER
This value indicates that the user's role in the return is buyer.
EBAY
This value indicates that the user's role in the return is eBay.
OTHER
This value is reserved for future use.
SELLER
This value indicates that the user's role in the return is seller.
SYSTEM
This value indicates that the user's role in the return is system.

Code so that your app gracefully handles any future changes to this list.
ReturnSummary.otherParty
  .userId
string Always The eBay user ID for the party involved in the return.
ReturnSummary.responseDue ReturnResponseDueType Conditionally This container consists of the party whose response is due and the due date of that response. This container is only returned in the requests of the getUserReturns and getReturnDetail calls if a response is due from the seller or other party involved in the return.
ReturnSummary.responseDue
  .party
ReturnUserType Conditionally Container that identifies the party whose response is due. The party is identified by eBay user ID and role (BUYER or SELLER).
ReturnSummary.responseDue
  .party.role
ReturnUserRoleType Always The role (such as buyer or seller) of the party involved in the return.

Applicable values:

BUYER
This value indicates that the user's role in the return is buyer.
EBAY
This value indicates that the user's role in the return is eBay.
OTHER
This value is reserved for future use.
SELLER
This value indicates that the user's role in the return is seller.
SYSTEM
This value indicates that the user's role in the return is system.

Code so that your app gracefully handles any future changes to this list.
ReturnSummary.responseDue
  .party.userId
string Always The eBay user ID for the party involved in the return.
ReturnSummary.responseDue
  .respondByDate
dateTime Conditionally This date indicates the due date of the party's response.
ReturnSummary.ReturnId ReturnIdType Always Container consisting of the unique identifier for a return. Return ID values are returned in the ReturnId.id field of each ReturnSummary container returned in the getUserReturns and getReturnDetail calls.
ReturnSummary.ReturnId.id string Always This string value is the unique identifier for a return, and is returned in the responses of getUserReturns and getReturnDetail. For getReturnDetail, getActivityOptions, issueRefund, provideSellerInfo, provideTrackingInfo, and setItemAsReceived, a ReturnId value is a required input field.
Max length: 38.
ReturnSummary.returnRequest ReturnRequestType Always Container consisting of details on the item being returned and the return reason.
ReturnSummary.returnRequest
  .comments
string Conditionally This field contains any comments posted by the buyer upon opening the return. For a SNAD case, the buyer might state the discrepancies between the actual item received and the item described in the listing.
ReturnSummary.returnRequest
  .returnItem
ReturnItemType Always,
repeatable: [1..*]
Container consisting of the eBay Item ID, the Transaction ID, and quantity of the item being returned to the seller. The returnItem container is returned in the getUserReturns and getReturnDetail calls.
ReturnSummary.returnRequest
  .returnItem.itemId
string Always The unique identifier for an eBay listing.
Max length: 19.
ReturnSummary.returnRequest
  .returnItem.returnQuantity
int Always This value indicates the quantity of items to be returned. This value is usually '1' unless multiple identical items were purchased by the buyer.
Min: 1.
ReturnSummary.returnRequest
  .returnItem.transactionId
string Always The unique identifier for an eBay order line item.
ReturnSummary.returnRequest
  .returnReason
ReturnReasonType (EnumerationDetailType) Always This value indicates the buyer's reason for returning an item. Possible values include I_DONT_WANT_IT (buyer remorse) and SNAD (item Significantly Not As Described).
ReturnSummary.returnRequest
  .returnReason.code
token Always Unique identifier of the enumeration value.
ReturnSummary.returnRequest
  .returnReason.content
token Always Reserved for future use.
ReturnSummary.returnRequest
  .returnReason.description
token Always A description of the enumeration value.
ReturnSummary.ReturnType ReturnType Always This field indicates the return type. Through the Return Center, the buyer selects whether he/she wants to be refunded for the purchase or wants a replacement item.

Applicable values:

MONEY_BACK
This value indicates that the buyer is returning/has returned the item for a refund.
REPLACEMENT
This value indicates that the buyer is requesting/has received a replacement item for the original item.
UNKNOWN
This value is only returned if client/user is running a version of the Return Management API that is out-of-date, and does not contain the latest values of ReturnType.

Code so that your app gracefully handles any future changes to this list.
ReturnSummary.status ReturnStatusType Always This field indicates the current status of the return. This value will often give the seller a good idea about the next step to take in the return.

Applicable values: See status.
Code so that your app gracefully handles any future changes to this list.
Standard Output Fields  
ack AckValue Always A token representing the application-level acknowledgement code that indicates the response status, such as "Success". The AckValue enumeration type specifies the possible values for ack.

Applicable values:

Failure
eBay encountered a fatal error during the processing of the request, causing the request to fail. When a serious application-level error occurs, the error is returned instead of the business data.
PartialFailure
eBay successfully processed the request, but one or more non-fatal errors occurred during the processing. Inspect the message details and resolve any problems before resubmitting the request.
Success
eBay successfully processed the request and the business data is returned in the response. Note that it is possible for a response to return Success, but still not contain the expected data in the result.
Warning
The request that triggered the error was processed successfully but with one or more warnings.

Code so that your app gracefully handles any future changes to this list.
errorMessage ErrorMessage Conditionally Information for an error or warning that occurred when eBay processed the request. This field is not returned if the ack value is Success.
errorMessage.error ErrorData Conditionally,
repeatable: [0..*]
Details about a single error.
errorMessage.error.category ErrorCategory Conditionally There are three categories of errors: request errors, application errors, and system errors.

Applicable values:

Application
An error occurred due to a problem with the request, with the most likely source being the application sending the request. For example, the request is missing a required data element or it contains an invalid field. The problem must be corrected before the request can be resent. Inspect the error message to find the cause of the problem. If the problem is due to an application error, modify the application and resend the request. If the error is due to invalid data, the source of the data must be corrected before you resend the resend request to eBay.
Request
An error occurred due to a problem with the request, with the most likely source being missing or invalid data in the request. The problem must be corrected before the request can be retried. Inspect the error message to find the cause of the problem. If the problem is a result of end-user data, alert the end-user to the problem and provide the means for them to correct the problem. Once the problem is resolved, resend the request to eBay.
System
Indicates that an error has occurred on the eBay system side. For example, a database or server could be down. Inspect the error message to find the cause of the problem. If the problem is on the eBay side, an application can retry the request a reasonable number of times (eBay recommends twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, the request may be resent in its original form.

Code so that your app gracefully handles any future changes to this list.
errorMessage.error.domain string Conditionally Name of the domain in which the error occurred.
errorMessage.error.errorId long Conditionally A unique code that identifies the particular error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.
errorMessage.error.exceptionId token Conditionally Unique identifier for an exception associated with an error.
errorMessage.error.message string Conditionally A detailed description of the condition that caused the error.
errorMessage.error.parameter ErrorParameter (string) Conditionally,
repeatable: [0..*]
Various warning and error messages return one or more variables that contain contextual information about the error. This is often the field or value that triggered the error.
errorMessage.error.parameter
  [ attribute name ]
string Conditionally Various warning and error messages return one or more variables that contain contextual information about the error. This is often the field or value that triggered the error.
errorMessage.error.severity ErrorSeverity Conditionally Indicates whether the reported problem is fatal (an error) or is less severe (a warning). Review the error message details for information on the cause.

If the request fails and the application is the source of the error (for example, a required element is missing), update the application before you retry the request. If the problem is due to incorrect user data, alert the end user to the problem and provide the means for them to correct the data. Once the problem in the application or data is resolved, resend the request to eBay.

If the source of the problem is on eBay's side, you can retry the request a reasonable number of times (eBay recommends you try the request twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, you can resend the request in its original form.

If a warning occurs, warning information is returned in addition to the business data. Normally, you do not need to resend the request (as the original request was successful). However, depending on the cause of the warning, you might need to contact the end user, or eBay, to effect a long term solution to the problem.

Applicable values:

Error
eBay encountered a fatal error during the processing of the request, causing the request to fail. When eBay encounters an error, it returns error data instead of the requested business data. Inspect the error details and resolve the problem before resubmitting the request.
Warning
The request was successfully processed, but eBay encountered a non-fatal error during the processing that could affect the data returned. For example, eBay might have changed the value of an input field. In this Return, eBay returns a successful response, but it also returns a warning. For best results, requests should return without warnings. Inspect the warning details and resolve the problem before resubmitting the request.

Code so that your app gracefully handles any future changes to this list.
errorMessage.error.subdomain string Conditionally Name of the subdomain in which the error occurred.
timestamp dateTime Always This value represents the date and time when eBay processed the request. The time zone of this value is GMT and the format is the ISO 8601 date and time format (YYYY-MM-DDTHH:MM:SS.SSSZ). See Time Values in the eBay Features Guide for information about this time format and converting to and from the GMT time zone.
version string Always The version of the response payload schema. Indicates the version of the schema that eBay used to process the request.



Samples

New to making API calls? Please see Making a Call.

Note: Some item IDs, user IDs, or other data in these samples might no longer be active on eBay. If necessary, you can substitute current eBay data in your requests.

Sample: Basic Call

This call retrieves detailed information on one eBay return.

Description

This getReturnDetail call sample retrieves detailed return information for an eBay return identified as return 5********8.

This call will fail if an invalid return ID is passed in. The caller must be authenticated to make this call.

This call returns a ReturnSummary container, which consists of data such as the following:

This call returns a ReturnDetail container, which consists of data such as the following:

Input

A seller, identified as u********a, uses the getReturnDetail call to retrieve detailed return information for an eBay return identified as return 5********8.

SOAP format. Also available is the XML equivalent.

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ser="http://www.ebay.com/marketplace/returns/v1/services">
   <soap:Header/>
   <soap:Body>
      <ser:getReturnDetailRequest>
         <ser:RequesterCredentials>
             <ser:eBayAuthToken>A********3</ser:eBayAuthToken>
          </ser:RequesterCredentials>
         <ser:ReturnId>
            <ser:id>5********8</ser:id>
         </ser:ReturnId>
      </ser:getReturnDetailRequest>
   </soap:Body>
</soap:Envelope>

Output

By looking at the ReturnSummary container in the response, we know the following:

By looking at the ReturnDetail container, we know the following:

SOAP format. Also available is the XML equivalent.

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Header/>
   <soapenv:Body>
      <ns1:getReturnDetailResponse xmlns:ns1="http://www.ebay.com/marketplace/returns/v1/services">
         <ns1:ack>Success</ns1:ack>
         <ns1:version>1.0.0</ns1:version>
         <ns1:timestamp>2012-01-13T18:19:34.707Z</ns1:timestamp>
         <ns1:ReturnSummary>
            <ns1:ReturnId>
               <ns1:id>5********8</ns1:id>
            </ns1:ReturnId>
            <ns1:otherParty>
               <ns1:userId>u********r</ns1:userId>
               <ns1:role>BUYER</ns1:role>
            </ns1:otherParty>
            <ns1:returnRequest>
               <ns1:returnItem>
                  <ns1:itemId>1**********0</ns1:itemId>
                  <ns1:transactionId>2*********1</ns1:transactionId>
                  <ns1:returnQuantity>1</ns1:returnQuantity>
                </ns1:returnItem>
               <ns1:returnReason>
                  <ns1:code>2</ns1:code>
                  <ns1:description>ORDERED_ACCIDENTALLY</ns1:description>
               </ns1:returnReason>
               <comments>test</comments>
            </ns1:returnRequest>
            <ns1:status>WAITING_FOR_SELLER_INFO</ns1:status>
            <ns1:responseDue>
               <ns1:party>
                  <ns1:userId>u********a</ns1:userId>
                  <ns1:role>SELLER</ns1:role>
               </ns1:party>
               <ns1:respondByDate>2011-12-06T23:59:08.000Z</ns1:respondByDate>
            </ns1:responseDue>
            <ns1:creationDate>2011-12-05T16:36:10.000Z</ns1:creationDate>
         </ns1:ReturnSummary>
         <ns1:ReturnDetail>
            <ns1:globalId>EBAY-US</ns1:globalId>
            <ns1:returnHistory>
               <note>test</note>
               <ns1:author>
                  <ns1:userId>0</ns1:userId>
                  <ns1:role>BUYER</ns1:role>
               </ns1:author>
               <ns1:activityDetail>
                  <ns1:code>1</ns1:code>
                  <ns1:description>buyerCreateReturn</ns1:description>
               </ns1:activityDetail>
               <ns1:creationDate>2011-12-05T16:36:10.000Z</ns1:creationDate>
            </ns1:returnHistory>
            <ns1:refundInfo>
               <ns1:estimatedRefundDetail>
                  <ns1:estimatedRefund>
                     <ns1:totalAmount currencyId="USD">1.01</ns1:totalAmount>
                     <ns1:itemizedRefund>
                        <ns1:refundFeeType>PURCHASE_PRICE</ns1:refundFeeType>
                        <ns1:amount currencyId="USD">1.01</ns1:amount>
                     </ns1:itemizedRefund>
                  </ns1:estimatedRefund>
                  <ns1:itemizedOptionalRefund>
                     <ns1:refundFeeType>ORIGINAL_SHIPPING</ns1:refundFeeType>
                     <ns1:amount currencyId="USD">5.0</ns1:amount>
                  </ns1:itemizedOptionalRefund>
               </ns1:estimatedRefundDetail>
            </ns1:refundInfo>
            <ns1:returnPolicy>
                <ns1:optedForRMA>true</ns1:optedForRMA>
                <ns1:optedForMultipleReturnAddress>true</ns1:optedForMultipleReturnAddress>
            </ns1:returnPolicy>
            <ns1:buyerReturnShipment>
                <ns1:shipmentStatus>READY_FOR_SHIPPING</ns1:shipmentStatus>
                <ns1:carrierUsed>USPS</ns1:carrierUsed>
                <ns1:shippingAddress>
                  <ns1:name>T********r</ns1:name>
                  <ns1:street1>a********s</ns1:street1>
                  <ns1:city>c********y</ns1:city>
                  <ns1:stateOrProvince>**</ns1:stateOrProvince>
                  <ns1:country>US</ns1:country>
                  <ns1:postalCode>9***2</ns1:postalCode>
                </ns1:shippingAddress>
            </ns1:buyerReturnShipment>
         </ns1:ReturnDetail>
      </ns1:getReturnDetailResponse>
   </soapenv:Body>
</soapenv:Envelope>

   Here is the same output in XML format. Note that this does not include standard values.

XML format. Also available is the SOAP equivalent.

<?xml version="1.0" encoding="utf-8"?>
<getReturnDetailResponse xmlns:ns1="http://www.ebay.com/marketplace/returns/v1/services">
   <ack>Success</ack>
   <version>1.0.0</version>
   <timestamp>2012-01-13T18:19:34.707Z</timestamp>
   <ReturnSummary>
      <ReturnId>
         <id>5********8</id>
      </ReturnId>
      <otherParty>
         <userId>u********r</userId>
         <role>BUYER</role>
      </otherParty>
      <returnRequest>
         <returnItem>
            <itemId>1**********0</itemId>
            <transactionId>2*********1</transactionId>
            <returnQuantity>1</returnQuantity>
         </returnItem>
         <returnReason>
            <code>2</code>
            <description>ORDERED_ACCIDENTALLY</description>
         </returnReason>
         <comments>test</comments>
      </returnRequest>
      <status>WAITING_FOR_SELLER_INFO</status>
      <responseDue>
         <party>
            <userId>u********a</userId>
            <role>SELLER</role>
         </party>
         <respondByDate>2011-12-06T23:59:08.000Z</respondByDate>
      </responseDue>
      <creationDate>2011-12-05T16:36:10.000Z</creationDate>
   </ReturnSummary>
   <ReturnDetail>
      <globalId>EBAY-US</globalId>
      <returnHistory>
         <note>test</note>
         <author>
            <userId>0</userId>
            <role>BUYER</role>
         </author>
         <activityDetail>
            <code>1</code>
            <description>buyerCreateReturn</description>
         </activityDetail>
         <creationDate>2011-12-05T16:36:10.000Z</creationDate>
      </returnHistory>
      <refundInfo>
         <estimatedRefundDetail>
            <estimatedRefund>
               <totalAmount currencyId="USD">1.01</totalAmount>
               <itemizedRefund>
                  <refundFeeType>PURCHASE_PRICE</refundFeeType>
                  <amount currencyId="USD">1.01</amount>
               </itemizedRefund>
            </estimatedRefund>
            <itemizedOptionalRefund>
               <refundFeeType>ORIGINAL_SHIPPING</refundFeeType>
               <amount currencyId="USD">5.0</amount>
            </itemizedOptionalRefund>
         </estimatedRefundDetail>
      </refundInfo>
      <returnPolicy>
          <optedForRMA>true</optedForRMA>
          <optedForMultipleReturnAddress>true</optedForMultipleReturnAddress>
      </returnPolicy>
      <buyerReturnShipment>
          <shipmentStatus>READY_FOR_SHIPPING</shipmentStatus>
          <carrierUsed>USPS</carrierUsed>
          <shippingAddress>
            <name>T********r</name>
            <street1>a********s</street1>
            <city>c********y</city>
            <stateOrProvince>**</stateOrProvince>
            <country>US</country>
            <postalCode>9***2</postalCode>
          </shippingAddress>
      </buyerReturnShipment>
   </ReturnDetail>
</getReturnDetailResponse>



Change History

Change Date Description
1.1.0
2014-01-14
  • ReturnDetail.shipmentInfo (added): The shipmentInfo container consists of detailed information for a buyer's return shipment or a seller's replacement item shipment. This container has replaced buyerReturnShipment.
  • ReturnDetail.buyerReturnShipment (deprecated): buyerReturnShipment has been replaced by shipmentInfo.
  • ReturnSummary.ReturnType (added): Indicates the return type as a refund ('Money_Back') or as a replacement item.
1.0.0
2012-04-23
  • (added) New call.