> ## Documentation Index
> Fetch the complete documentation index at: https://developers.chatbrick.com/llms.txt
> Use this file to discover all available pages before exploring further.

# store.deactivated

> This event is triggered when a store is deactivated.

<Warning>This event type is in the beta stage; specifications are subject to change at any time.</Warning>

## Event Body Fields

The request event body is a JSON object that contains the following fields:

<ResponseField name="type" type="string">
  `store.deactivated`
</ResponseField>

<ResponseField name="data" type="Object">
  The object containing the event data.

  <Expandable title="data" defaultOpen>
    <ResponseField name="store" type="Store Object">
      The latest data of the deactivated store.

      <Expandable title="store">
        <ResponseField name="id" type="string">
          The permanent ID of the store in ChatBrick.
        </ResponseField>

        <ResponseField name="name" type="string" />

        <ResponseField name="logo" type="string">
          The URL of the store's logo.

          <Warning>
            We don't recommend embedding this image in any webpage because it's not designed for that purpose.

            If you need to display this image on a webpage, please download it when you receive the event and serve it from your own server to ensure it works as expected.
          </Warning>
        </ResponseField>

        <ResponseField name="externalId" type="string">
          The external ID is configured by the brand and is usually mapped to the brand's internal system.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="timestamps" type="Object">
      Timestamps in **ISO 8601** format.

      <Expandable title="timestamps">
        <ResponseField name="deactivatedAt" type="string">
          The timestamp of when the store was deactivated.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="timestampsMs" type="Object">
      Timestamps are represented in numerical format; the number represents **milliseconds** elapsed since the [epoch](https://en.wikipedia.org/wiki/Unix_time), which is defined as the midnight at the beginning of January 1, 1970, UTC.

      <Expandable title="timestampsMs">
        <ResponseField name="deactivatedAt" type="string">
          The timestamp of when the store was deactivated.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Example theme={null}
  {
    "type": "store.deactivated",
    "data": {
      "store": {
        "id": "clxvu9l6l000001p27bdm9ydk",
        "name": "台北101旗艦店",
        "logo": "https://imagedelivery.net/zdm_0V2jGvo4F5LeqaPJDQ/5178a7f8-661f-46d7-d852-0b72a2242100/public",
        "externalId": "tpe-101"
      },
      "timestamps": {
        "deactivatedAt": "2024-06-18T18:18:18.000Z"
      },
      "timestampsMs": {
        "deactivatedAt": 1718734698000
      }
    }
  }
  ```
</ResponseExample>
