Developer Console
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

DeviceStatus Endpoint

Devices must call DRS on a daily cadence to report activity.

Path

/deviceStatus

HTTP Method

POST

Header Parameters

x-amzn-accept-type: com.amazon.dash.replenishment.DrsDeviceStatusResult@1.0
x-amzn-type-version: com.amazon.dash.replenishment.DrsDeviceStatusInput@1.0
Authorization: Bearer (ACCESS_TOKEN)

Versioning

Versioning is used to incrementally update API functionality without directly impacting customers. x-amzn-type-version and x-amzn-accept-type headers must be sent with each call. The following are supported by the DeviceStatus Endpoint:

x-amzn-type-version: com.amazon.dash.replenishment.DrsDeviceStatusInput@1.0
x-amzn-accept-type: com.amazon.dash.replenishment.DrsDeviceStatusResult@1.0

Request Body Parameters

The following data must be passed in the request body:

Parameter Description Type
mostRecentlyActiveDate The date and time of the most recent device activity in ISO 8601 format. String

Sample Request Body

{
    "mostRecentlyActiveDate" : "2015-12-21T10:00:00Z"
}

Response Example

HTTP/1.1 200 OK
x-amzn-type-version: com.amazon.dash.replenishment.DrsDeviceStatusResult@1.0

Error Responses

Errors Descriptions
HTTP/1.1 500 Internal Server Error Indicates that an error occurred internally to the server.
HTTP/1.1 400 Bad Request Client error: an error occurred due to data passed in by the client (e.g. bad token). Amazon will make a best effort to provide feedback on the nature of the failure in the response body.

Last updated: Aug 07, 2018