Excel export (partner)
Overview
Generate the partner review-response feed as an Excel file, store it on S3, and return the public download URL.
Prerequisites
- A bearer token. Callable with Partner tokens.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
POST /api/v1/partner/excel/download/review-response-feed
Authentication
-
Requires a bearer token in the
Authorization: Bearer <bearer-token>header. -
Who can call it: Partner tokens.
-
Mounted under the
partner/excelgroup. -
The handler hard-gates on
company.bundle_id == 1(returns500withAccess denied. Partner plan required.otherwise). -
Store set precedence:
account_id(account); elsestore_id→ single store; else all partner-user stores. -
All id params are guarded by an ownership check.
Rate limit
- No rate limit.
Request body
- Body:
| Field | Type | Required | Description |
|---|---|---|---|
range_start | string | yes | Y-m-d H:i:s |
range_end | string | yes | Y-m-d H:i:s |
store_id | integer | no | belongs to auth company |
account_id | integer | no | account (bundle_id=3) under this partner |
client_location_id | string | no | resolved to store_id |
client_account_id | string | no | resolved to account_id |
search | string | no | max 255. Reserved — the current handler ignores this field |
{
"range_start": "2024-01-01 00:00:00",
"range_end": "2024-12-31 23:59:59",
"account_id": 7
}Response
data.path(string) — S3 URL of the generated.xlsx(download/excel/YYYY-MM/<time>-ReviewResponseReport.xlsx)
200 Success · 200
200{
"data": {
"path": "https://s3.amazonaws.com/bucket/download/excel/2024-01/1700000000-ReviewResponseReport.xlsx"
}
}Errors
| Status | Meaning |
|---|---|
401 | The bearer token is missing, expired or invalid |
422 | The request failed validation — the response names the fields |
500 | Unexpected server error |
Example request
curl --request POST \
--url "https://production-api.shoutaboutus.com/api/v1/partner/excel/download/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", "account_id": 7}'Updated 8 days ago
Did this page help you?
