Amazon Marketplace Web Service (MWS) will no longer be available after March 31, 2024. All MWS developers must migrate to Selling Partner API (SP-API) to avoid service disruptions. Refer to the Migration Hub for more information.
The timestamp (or expiration time) you use in an Amazon Marketplace Web Service (Amazon MWS) request must be a dateTime object. A best practice is to provide the timestamp in Coordinated Universal Time (UTC) in ISO 8601 date time format, such as "2009-03-03T18:12:22Z" or "2009-02-23T18:12:22.093-07". The Timestamp attribute must contain the client's machine time in ISO 8601 date time format; requests with a timestamp significantly different (15 minutes) than the receiving machine's clock will be rejected to help prevent replay attacks. For more information about timestamps in XML, see http://www.w3.org/TR/xmlschema-2/#dateTime.
Every Amazon MWS response includes a Date header in its HTTP response that you can use to check whether your local machine's time matches our server's time, such as Date: Tue, 24 Mar 2009 20:34:28 GMT You can also load the Amazon MWS address https://mws.amazonservices.com/ in any Web browser (no request is needed) to receive a response with the current Amazon MWS server time:
<?xml version="1.0"?> <PingResponse> <Timestamp timestamp="2009-03-24T20:29:19:22Z"/> </PingResponse>
Here are a few additional considerations when working with timestamps: