Soft-delete a store. The store data is retained but becomes inaccessible. Only the store owner can perform this action.
POST /v1/actions/store/delete-store
Authentication: API Key (owner role required)
Request Body
| Field | Type | Required | Description |
|---|
id | string | Yes | Store ID to delete (Short ID format STO_xxx) |
Example Request
const { store } = await client.stores.delete({
id: "STO_2aUyqjCzEIiEcYMKj7TZtw",
});
console.log(store.deletedAt); // => "2026-01-15T12:00:00.000Z"
Success Response (200)
{
"data": {
"store": {
"id": "STO_2aUyqjCzEIiEcYMKj7TZtw",
"name": "My Digital Store",
"status": "active",
"logo": null,
"supportEmail": null,
"website": null,
"slug": "my-digital-store-a1b2c3",
"prodEnabled": false,
"webhookSettings": null,
"notificationSettings": null,
"checkoutSettings": null,
"deletedAt": "2026-01-15T12:00:00.000Z",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-15T12:00:00.000Z"
}
}
}
Response Fields
Same as Create Store response fields, with deletedAt populated.
Error Responses
| Status | Error | Description |
|---|
| 400 | Missing required field: id | id not provided in request body |
| 403 | Access denied: only owner can delete store | Merchant role is admin or member |
| 404 | Store not found | Store ID does not exist or merchant is not a member |
Deleting a store is a soft delete. The store data is retained but the store becomes inaccessible. This action cannot be undone through the API.