Find the answer to your question
Advanced Search
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
- GetOrders Call Reference page: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetOrders.html
- CompleteSale Call Reference page: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/CompleteSale.html
How well did this answer your question?
Answers others found helpful
- PaidTime and ShippedTime
- GetAccount returns data that falling outside the specified dates
- Why CompleteSale call always results in updating every OrderLineItemID's ShipmentTrackingNumber with the same value that last uploaded instead of updating with different tracking numbers for each lineitem
- Why is the ShippedTime prematurely set in half.com GetOrders and GetItemTransactions calls?
- Error - Shipping Service is not available