Excel export (account)

Overview

Generate a review-response feed Excel workbook for the caller's stores over a date range. It stores the workbook on the S3 disk and returns the public download URL.

Prerequisites

  • A bearer token. Callable with Account tokens.

Base URL

EnvironmentURL
Productionhttps://production-api.shoutaboutus.com
Developmenthttps://development-api.shoutaboutus.com

Endpoint

POST /api/v1/reports/excel/review-response-feed

Authentication

  • Requires a bearer token in the Authorization: Bearer <bearer-token> header.

  • Who can call it: Account tokens.

  • Inside the generic account-side group; no partner/Hipages/dormant gating.

  • Scope is the caller's own company: stores resolve here. An explicit store_id must sit inside your own account tree, so it must sit in the caller's company hierarchy.

  • The header row shows the caller's account name.

Rate limit

  • No rate limit.

Request body

  • Body:
FieldTypeRequiredDescription
range_startstringyesdate_format:Y-m-d H:i:s; start of range.
range_endstringyesdate_format:Y-m-d H:i:s; end of range.
store_idintegernoMust be an existing location and pass an ownership check. When omitted, the response covers all of your locations.
searchstringnomax:255. Accepted by the request validation but not consumed by the controller method.
{
  "range_start": "2024-01-01 00:00:00",
  "range_end": "2024-12-31 23:59:59",
  "store_id": 1,
  "search": ""
}

Response

  • data.path (string) — S3 URL to the generated .xlsx, stored at download/excel/{Y-m}/{timestamp}-ReviewResponseReport.xlsx.

200 Success · 200

{
  "data": {
    "path": "https://s3.amazonaws.com/bucket/download/excel/2024-01/1719300000-ReviewResponseReport.xlsx"
  }
}

Errors

StatusMeaning
401The bearer token is missing, expired or invalid
422The request failed validation — the response names the fields
500Unexpected server error

Example request

curl --request POST \
  --url "https://production-api.shoutaboutus.com/api/v1/reports/excel/review-response-feed" \
  --header 'Authorization: Bearer <bearer-token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"range_start": "2024-01-01 00:00:00", "range_end": "2024-12-31 23:59:59", "store_id": 1, "search": ""}'

Did this page help you?