Remove a location
Overview
Remove a location and everything attached to it: its reviews, responses, flags, and review site connections. Any active plan on it is closed.
Use this when a location closes for good.
You'll need the store_id.
Review collection and posting stop for that location, and billing for it ends.
Prerequisites
- A Partner or Account token. See Authentication.
- The location's id (
storeId).
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
DELETE /api/v1/partner/store/{storeId}/delete
Authentication
Partner or Account token
- An Account token reaches only its own locations.
- The location must exist and be inside your account tree; otherwise
422.
Rate limit
This endpoint has no rate limit.
Request parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
storeId | path | integer | Yes | The location's id. |
Request body
None.
Request payload
None.
Response body
The payload is inside data.
| Field | Type | Description |
|---|---|---|
status | string | success. |
message | string | Location has been deleted successfully! |
storeId | integer | The id of the deleted location. |
Response payload
{
"data": {
"status": "success",
"message": "Location has been deleted successfully!",
"storeId": 3076
}
}Examples
Success payload
See Response payload.
Error payload
404 Store not found
The location was already removed.
{
"message": "Not Found",
"status": "error",
"errors": "Store not found."
}422 Location doesn't exist
{
"message": "The selected store id is invalid. (and 1 more error)",
"errors": {
"store_id": [
"The selected store id is invalid.",
"The selected store id does not belong to your company hierarchy."
]
}
}422 Location outside your tree
{
"message": "The selected store id does not belong to your company hierarchy.",
"errors": {
"store_id": ["The selected store id does not belong to your company hierarchy."]
}
}| Status | Meaning |
|---|---|
200 | The location is removed. |
401 | The token is missing, expired or invalid. |
404 | The location was already removed, or its data is incomplete. |
422 | The location doesn't exist or is outside your account tree. |
500 | Unexpected server error. |
Example request
curl --request DELETE \
--url "https://production-api.shoutaboutus.com/api/v1/partner/store/3076/delete" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 17 days ago
Did this page help you?
