Skip to main content
Published: July 16 2010, 1:05:00 PMUpdated: November 28 2020, 8:29:10 PM

 

Summary

How do I resolve this error - "Shipped date should be between sold date and current date"?



Detailed Description

Here is the relevant portion of my request -

 <?xml version="1.0" encoding="utf-8"?>
<CompleteSaleRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <ErrorLanguage>en_US</ErrorLanguage>
.
.
  <Shipment>
    <ShipmentTrackingDetails>
      <ShipmentTrackingNumber>1Z1E56570274758321</ShipmentTrackingNumber>
      <ShippingCarrierUsed>UPS</ShippingCarrierUsed>
    </ShipmentTrackingDetails>
    <ShippedTime>2010-07-16T14:20:05.000Z</ShippedTime>
  </Shipment>
  <Shipped>true</Shipped>
</CompleteSaleRequest>

Response

 <?xml version="1.0" encoding="utf-8"?>
<CompleteSaleResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2010-07-16T18:30:05.765Z</Timestamp>
  <Ack>Failure</Ack>
</CorrelationID>
  <Errors>
    <ShortMessage>Invalid Shipped date.</ShortMessage>
    <LongMessage>Shipped date should be between sold date and current date.</LongMessage>
    <ErrorCode>21916386</ErrorCode>
    <SeverityCode>Error</SeverityCode>
    <ErrorClassification>RequestError</ErrorClassification>
  </Errors>
  <Version>677</Version>
  <Build>E677_CORE_BUNDLED_11540973_R1</Build>
</CompleteSaleResponse>

Based of the request and response it is clear that your ShippedTime < current time. Therefore the reason for the error is that the ShippedTime you have specified is prior to the transaction creation time i.e. sold date.

Make sure your ShippedTime is after the transaction's CreatedDate and your request should go through. CreatedDate is returned in the GetOrders response.

Note: The eBay APIs return date-time values in GMT. When specifying the date-time values as input to the API calls, please make sure you specify it in GMT.



Additional Resources

 



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