POST /amazon-account-reports.json

POST /amazon-account-reports.json
application/json

Body Required

  • amazonAccountId integer(int32) Required

    Amazon account

  • reportId string | null

    Report

  • reportProcessingStatus string Required

    Report processing status

    Values are _SUBMITTED_, _IN_PROGRESS_, _CANCELLED_, _DONE_, or _DONE_NO_DATA_.

  • reportRequestId string Required

    Report request

  • reportType string Required

    Report type

    Value is _POST_INVENTORY_AVAILABILITY_DATA_.

  • status string Required

    Status

    Values are pending, processing, success, or error. Default value is pending.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
POST /amazon-account-reports.json
curl \
 -X POST http://api.example.com/v1/amazon-account-reports.json \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"amazonAccountId":42,"reportId":"string","reportProcessingStatus":"_SUBMITTED_","reportRequestId":"string","reportType":"_POST_INVENTORY_AVAILABILITY_DATA_","status":"pending"}'
Request example
{
  "amazonAccountId": 42,
  "reportId": "string",
  "reportProcessingStatus": "_SUBMITTED_",
  "reportRequestId": "string",
  "reportType": "_POST_INVENTORY_AVAILABILITY_DATA_",
  "status": "pending"
}
Response examples (200)
{
  "amazonAccountId": 42,
  "createdAt": "2024-05-04T09:42:00+00:00",
  "id": 42,
  "reportId": "string",
  "reportProcessingStatus": "_SUBMITTED_",
  "reportRequestId": "string",
  "reportType": "_POST_INVENTORY_AVAILABILITY_DATA_",
  "status": "pending",
  "updatedAt": "2024-05-04T09:42:00+00:00"
}