Delete a store

Delete a store

DELETE api/stores/store_id

Delete a store.

Request syntax

delete api/stores/<store_id>

Request parameters

The request accepts no parameters.

Response syntax

{
    "exporter_job": integer,
    "id": integer,
    "store_number": "string",
    "store_name": "string",
    "hostname": "string",
    "group": "string",
    "owner_name": "string",
    "level_of_hierarchy": "string",
    "card_acceptor_identifier": "string",
    "created_at": "timestamp",
    "updated_at": "timestamp"
}

Response parameters

If the action is successful, an HTTP 200 response is returned. The following data is returned in JSON format.

FieldTypeDescription
exporter_jobIntegerThe ID of the exporter job performing the delete action.
idIntegerThe store ID.
store_numberStringThe store number.
store_nameStringThe store name.
hostnameStringThe hostname of the node or server that manages the store, for example pfc2324pay0. Empty if no host is assigned.
groupStringThe store group, for example US_ENGAGE.
owner_nameStringA display name generated from the store number, city, and state, for example Store: 9901 (Austin/TX).
level_of_hierarchyStringThe level of hierarchy the store is assigned to, for example United States > NE > NJ. null if the store isn't assigned to a level of hierarchy.
card_acceptor_identifierStringThe card acceptor identifier for the store. This parameter is only returned if the ETL feature is turned on.
created_atTimestampThe timestamp for when the store was initially created.
updated_atTimestampThe timestamp indicating when the store was last updated.

Errors

The following are common errors returned by this API.

CodeMessageCause
---

Examples

Example: Delete a store

This example deletes the store with ID 25651.

ruby api.rb <customer_code> delete api/stores/25651

Response

{
  "exporter_job": 1781621,
  "id": 25651,
  "store_number": "9901",
  "store_name": "Docs Test Store",
  "hostname": "",
  "group": null,
  "owner_name": "Store: 9901 (Austin/TX)",
  "level_of_hierarchy": null,
  "card_acceptor_identifier": null,
  "created_at": "2026-10-10T17:36:20.630Z",
  "updated_at": "2026-10-10T17:40:22.489Z"
}