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

# Communication Preferences

The communication preferences model includes a user's opt in or opt out status
of various communication preference settings.

<CardGroup cols={2}>
  <Card title="SFTP Exports" href="https://drive.google.com/file/d/1_k2YNAvEaUYNrW6hiOIDfgIpu9dYTzi1/view?usp=drive_link">
    Sample communication\_preferences.csv
  </Card>

  <Card title="Thanx Connex">
    Table name: `communication_preferences`
  </Card>
</CardGroup>

### Fields Description

| Column | Data Type | Description |
| - | - | - |
| `merchant_id` | `string` | The unique identifier of the merchant in Thanx. |
| `user_id` | `string` | The unique identifier of the user in Thanx. |
| `enabled_email_reward_earned` | `boolean` | User's selection for email notifications for "When I get a new reward" field. |
| `enabled_email_reward_unused` | `boolean` | User's selection for email notifications for "When I have an unused reward" field. |
| `enabled_email_reward_offer` | `boolean` | User's selection for email notifications for "When I have a special offer" field. |
| `enabled_email_reward_progress` | `boolean` | User's selection for email notifications for "When I earn progress towards a reward" field. |
| `enabled_email_payment_receipt` | `boolean` | User's selection for email notifications for "Send me a receipt" field. Only applies to merchants using exclusive deals. |
| `enabled_email_marketing_general` | `boolean` | User's selection for email notifications for "General news and updates" field. Does not reflect the device-specific notifications setting (e.g. this field may still reflect "TRUE" if the user disabled the notifications from phone settings). |
| `enabled_notification_reward_earned` | `boolean` | User's selection for push notifications for "When I get a new reward" field. Does not reflect the device-specific notifications setting. |
| `enabled_notification_reward_unused` | `boolean` | User's selection for push notifications for "When I have an unused reward" field. Does not reflect the device-specific notifications setting. |
| `enabled_notification_reward_progress` | `boolean` | User's selection for push notifications for "When I earn progress towards a reward" field. Does not reflect the device-specific notifications setting. |
| `enabled_notification_feedback_available` | `boolean` | User's selection for push notifications for "To give feedback about purchases" field. Does not reflect the device-specific notifications setting. |
| `created_at` | `timestamp` | The date and time the communication preference was created. This is in UTC. |
| `updated_at` | `timestamp` | The date and time the communication preference was last updated by the user. This is in UTC. |
| `membership_uid` | `string` | A unique identifier for this membership. This value does not currently match the membership identifier used in our APIs. |
| `synced_at` | `timestamp` | Timestamp indicating the last update time for the record. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.