Send alert email
Overview
Send the error-notification alert email, either to the store's configured response-posting error recipients (email_to=admin) or to a custom address (email_to=other).
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/error-notifications/send-email-notification
Authentication
- Requires a bearer token in the
Authorization: Bearer <bearer-token>header. - Who can call it: Partner tokens.
- Authentication is under the
partnerprefix. - The request validation checks that
notification_idexists. There is no partner-tree / company scoping on which notification is emailed. - The controller 400s in three cases. These are: the notification is missing or has empty
content(No notification is available), the linked store is missing (Location does not exist.), or no recipient resolves (User does not exist.). - For
admin, recipients come from the store's configured response-posting error recipients; forother, theemailfield is used. The mail is then sent.
Rate limit
- No rate limit.
Request body
- Body:
| Field | Type | Required | Description |
|---|---|---|---|
notification_id | integer | Yes | Must be an existing notification. |
email_to | string | Yes | One of admin, other. |
email | string (email) | Conditional | Required only when email_to=other; validated email:rfc,dns. |
{
"notification_id": 1215,
"email_to": "other",
"email": "[email protected]"
}Response
data.status(string) —success.data.message(string) —Email sent successfully!
200 Success · 200
200{
"data": { "status": "success", "message": "Email sent successfully!" }
}Errors
| Status | Meaning |
|---|---|
400 | The request was rejected — the response explains why |
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/error-notifications/send-email-notification" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"notification_id": 1215, "email_to": "other", "email": "[email protected]"}'Updated 10 days ago
Did this page help you?
