# Introduction

## ServiceMessage model

### Example

```json
{
  "service_message": {
    "id": 22,
    "customer_ids": [447],
    "locales": ["en", "pl"],
    "products": ["default"],
    "status": "published",
    "visible_since": "2022-04-05T10:01:38.071142Z",
    "visible_until": "2022-04-19T10:01:38.071208Z",
    "sorting_priority": 1,
    "publication_status": "published",
    "body": {
      "en": "Closed next Monday",
      "pl": "Zamknięte w następny poniedziałek"
    }
  }
}
```

### Definition

| Key                | Type                                                                                           | Optional             | Read-only | Description
|--------------------|------------------------------------------------------------------------------------------------|----------------------|-----------| ---------
| id                 | integer                                                                                        | no                   | yes       |
| customer_ids       | integer[]                                                                                      | no                   | no        | Customers the record is assigned to
| locales            | [ISO 639-1 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)[]              | yes                  | no        | [Locales](doc-341635#x-locale-header) the record is be available to in [Locales](doc-341635#x-locale-header)
| products           | string[]                                                                                       | yes                  | no        | [Products](doc-341635#x-product-name-header) the content is available for in [Products](doc-341635#x-product-name-header)
| status             | enum: `['draft', 'published', 'unpublished']`                                                  | no                   | no        | when 'published', the record is available in [CMS Public API](doc-341653)
| visible_since      | datetime                                                                                       | yes                  | no        | Date since the record is visible in [CMS Public API](doc-341653)
| visible_until      | datetime                                                                                       | yes                  | no        | Date until the record is visible in [CMS Public API](doc-341653)
| sorting_priority   | integer                                                                                        | no                   | no        | Priority of the record during sorting in [CMS Public API](doc-341653)
| body               | [LocalizedContent](doc-341959#localizedcontent-json-model) | yes                  | no        |
| created_at         | datetime                                                                                       | no                   | yes       | Time of record creation
| updated_at         | datetime                                                                                       | no                   | yes       | Time of record last update
| archived_at        | datetime                                                                                       | no                   | yes       | Time of record archivization
| publication_status| enum: `['published', 'draft', 'exipred', 'scheduled']`                            | no       | yes       | Visibility status of the record in [CMS Public API](doc-341653)   |