# Policies

Read, update, translate, and subscribe to store policies through the Store API.

Each store has one policy of each type: `privacy`, `terms`, `refund`, `shipping`, `cookie`, `legal_notice`, `contact_information`, and `terms_of_sale`. Read and update a policy by its type. These endpoints do not create or delete policies. Reads require `read_pages`; writes require `write_pages`. Read field lengths from `/policies/limits` instead of hard-coding them.

Updates need the `expected_revision` from your last read and preserve omitted fields. They can change content, publishing, SEO, and the URL slug. Send null or an empty string to clear `content`, `seo_title` or `seo_description`; content with no text and no image or other media, such as `<p> </p>`, also counts as empty, and an empty field is stored as null. A source field with translations cannot be cleared until those translations are removed. The privacy and cookie policies used by an active consent banner, and the policies shown in the checkout footer, must remain published with content (`POLICY_LOCKED_BY_CONSENT_BANNER`, `POLICY_LOCKED_BY_CHECKOUT`). When you change a slug with `create_redirect: false`, redirects Tringify made earlier toward the old address move to the new one. Unknown or wrongly typed request fields are rejected with `STORE_API_BODY_PROPERTY_UNKNOWN` or `STORE_API_BODY_PROPERTY_INVALID`.

[Policy translations](/store-api/translations/policies) use the policy's UUID returned by a read. Translation reads require `read_pages` and `read_translations`; writes require `write_pages` and `write_translations`.

## Endpoints

## Policy limits

`GET /api/2025-01/policies/limits`

Returns the per-field maximum lengths, enum values, and the fixed policy-type set that apply to Policy endpoints. `status_options` lists each status `value` with its English display `label` and a `description` of what it means for buyers. `policy_type_options` lists each policy `value` (one per store, in list order) with its English `label` and a `description` of what it covers.

Scope: `read_pages`

```curl
curl 'https://api-store.tringify.com/api/2025-01/policies/limits' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "content_max_length": 100000,
    "policy_type_options": [
      {
        "value": "privacy",
        "label": "Privacy Policy",
        "description": "How you collect, use, and protect customer data"
      },
      {
        "value": "terms",
        "label": "Terms of Service",
        "description": "Rules and conditions for using your store"
      },
      {
        "value": "refund",
        "label": "Refund Policy",
        "description": "Your return and refund procedures"
      },
      {
        "value": "shipping",
        "label": "Shipping Policy",
        "description": "Shipping methods, costs, and delivery times"
      },
      {
        "value": "cookie",
        "label": "Cookie Policy",
        "description": "How your store uses cookies and tracking technologies"
      },
      {
        "value": "legal_notice",
        "label": "Legal Notice",
        "description": "Who runs your store: business name, address, registration, and the contact details the law requires"
      },
      {
        "value": "contact_information",
        "label": "Contact Information",
        "description": "How customers can reach you: email, phone, and address"
      },
      {
        "value": "terms_of_sale",
        "label": "Terms of Sale",
        "description": "The conditions that apply when customers buy from you: prices, payment, delivery, and cancellation"
      }
    ],
    "seo_description_max_length": 160,
    "seo_title_max_length": 70,
    "slug_max_length": 200,
    "status_options": [
      {
        "value": "draft",
        "label": "Draft",
        "description": "Draft policies are not visible to customers."
      },
      {
        "value": "published",
        "label": "Published",
        "description": "Published policies are visible on your store."
      }
    ],
    "title_max_length": 200
  },
  "success": true
}
```

## List policies

`GET /api/2025-01/policies`

Returns the store's fixed set of Policies — one row per policy type. There is no pagination: Policies are a fixed singleton set. Each policy carries `status_display`, its `status` as shown in Tringify, in English. `storefront_url` is the canonical absolute URL on the store's primary domain. `storefront_path` is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Scope: `read_pages`

```curl
curl 'https://api-store.tringify.com/api/2025-01/policies' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": [
    {
      "content": "\u003cp\u003eHow we handle your data.\u003c/p\u003e",
      "created_at": "2026-01-05T08:00:00-04:00",
      "created_at_iso": "2026-01-05T08:00:00-04:00",
      "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
      "revision": 1,
      "robots": "index",
      "seo_description": "How we handle your data.",
      "seo_title": "Privacy policy",
      "slug": "privacy-policy",
      "social_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
      "status": "published",
      "status_display": "Published",
      "storefront_path": "/policy/privacy-policy",
      "storefront_url": "https://store.example.com/policy/privacy-policy",
      "title": "Privacy policy",
      "type": "privacy",
      "updated_at": "2026-01-05T08:00:00-04:00",
      "updated_at_iso": "2026-01-05T08:00:00-04:00"
    },
    {
      "content": null,
      "created_at": "2026-01-05T08:00:00-04:00",
      "created_at_iso": "2026-01-05T08:00:00-04:00",
      "id": "57ff3d6a-05c1-4b08-97b6-d9f29c22e37a",
      "revision": 1,
      "robots": "index",
      "seo_description": null,
      "seo_title": null,
      "slug": "terms-of-service",
      "social_image_id": null,
      "status": "draft",
      "status_display": "Draft",
      "storefront_path": null,
      "storefront_url": null,
      "title": "Terms of Service",
      "type": "terms",
      "updated_at": "2026-01-05T08:00:00-04:00",
      "updated_at_iso": "2026-01-05T08:00:00-04:00"
    },
    {
      "content": null,
      "created_at": "2026-01-05T08:00:00-04:00",
      "created_at_iso": "2026-01-05T08:00:00-04:00",
      "id": "18729bcb-41c3-4311-b805-35bbec5394f2",
      "revision": 1,
      "robots": "index",
      "seo_description": null,
      "seo_title": null,
      "slug": "refund-policy",
      "social_image_id": null,
      "status": "draft",
      "status_display": "Draft",
      "storefront_path": null,
      "storefront_url": null,
      "title": "Refund Policy",
      "type": "refund",
      "updated_at": "2026-01-05T08:00:00-04:00",
      "updated_at_iso": "2026-01-05T08:00:00-04:00"
    },
    {
      "content": null,
      "created_at": "2026-01-05T08:00:00-04:00",
      "created_at_iso": "2026-01-05T08:00:00-04:00",
      "id": "b2896e62-d3f5-4209-93f2-e8726ed831d1",
      "revision": 1,
      "robots": "index",
      "seo_description": null,
      "seo_title": null,
      "slug": "shipping-policy",
      "social_image_id": null,
      "status": "draft",
      "status_display": "Draft",
      "storefront_path": null,
      "storefront_url": null,
      "title": "Shipping Policy",
      "type": "shipping",
      "updated_at": "2026-01-05T08:00:00-04:00",
      "updated_at_iso": "2026-01-05T08:00:00-04:00"
    },
    {
      "content": null,
      "created_at": "2026-01-05T08:00:00-04:00",
      "created_at_iso": "2026-01-05T08:00:00-04:00",
      "id": "e25211a7-932f-4fd2-8bc6-f3a06b23237c",
      "revision": 1,
      "robots": "index",
      "seo_description": null,
      "seo_title": null,
      "slug": "cookie-policy",
      "social_image_id": null,
      "status": "draft",
      "status_display": "Draft",
      "storefront_path": null,
      "storefront_url": null,
      "title": "Cookie Policy",
      "type": "cookie",
      "updated_at": "2026-01-05T08:00:00-04:00",
      "updated_at_iso": "2026-01-05T08:00:00-04:00"
    },
    {
      "content": null,
      "created_at": "2026-01-05T08:00:00-04:00",
      "created_at_iso": "2026-01-05T08:00:00-04:00",
      "id": "6c1f3b0e-8d2a-4f57-9b61-2e4d7a9c5f10",
      "revision": 1,
      "robots": "index",
      "seo_description": null,
      "seo_title": null,
      "slug": "legal-notice",
      "social_image_id": null,
      "status": "draft",
      "status_display": "Draft",
      "storefront_path": null,
      "storefront_url": null,
      "title": "Legal Notice",
      "type": "legal_notice",
      "updated_at": "2026-01-05T08:00:00-04:00",
      "updated_at_iso": "2026-01-05T08:00:00-04:00"
    },
    {
      "content": null,
      "created_at": "2026-01-05T08:00:00-04:00",
      "created_at_iso": "2026-01-05T08:00:00-04:00",
      "id": "a4e8d2c6-1b3f-4a95-8e72-5d9c0f6b3a21",
      "revision": 1,
      "robots": "index",
      "seo_description": null,
      "seo_title": null,
      "slug": "contact-information",
      "social_image_id": null,
      "status": "draft",
      "status_display": "Draft",
      "storefront_path": null,
      "storefront_url": null,
      "title": "Contact Information",
      "type": "contact_information",
      "updated_at": "2026-01-05T08:00:00-04:00",
      "updated_at_iso": "2026-01-05T08:00:00-04:00"
    },
    {
      "content": null,
      "created_at": "2026-01-05T08:00:00-04:00",
      "created_at_iso": "2026-01-05T08:00:00-04:00",
      "id": "f2b7c9e1-6a4d-4c38-b05e-8a1d3e7f9c42",
      "revision": 1,
      "robots": "index",
      "seo_description": null,
      "seo_title": null,
      "slug": "terms-of-sale",
      "social_image_id": null,
      "status": "draft",
      "status_display": "Draft",
      "storefront_path": null,
      "storefront_url": null,
      "title": "Terms of Sale",
      "type": "terms_of_sale",
      "updated_at": "2026-01-05T08:00:00-04:00",
      "updated_at_iso": "2026-01-05T08:00:00-04:00"
    }
  ],
  "success": true
}
```

## Get a policy

`GET /api/2025-01/policies/{type}`

Returns the Policy for the given type (privacy, terms, refund, shipping, cookie, legal_notice, contact_information, or terms_of_sale). `status_display` is its `status` as shown in Tringify, in English. `storefront_url` is the canonical absolute URL on the store's primary domain. `storefront_path` is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Scope: `read_pages`

```curl
curl 'https://api-store.tringify.com/api/2025-01/policies/privacy' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "content": "\u003cp\u003eHow we handle your data.\u003c/p\u003e",
    "created_at": "2026-01-05T08:00:00-04:00",
    "created_at_iso": "2026-01-05T08:00:00-04:00",
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "revision": 1,
    "robots": "index",
    "seo_description": "How we handle your data.",
    "seo_title": "Privacy policy",
    "slug": "privacy-policy",
    "social_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "status": "published",
    "status_display": "Published",
    "storefront_path": "/policy/privacy-policy",
    "storefront_url": "https://store.example.com/policy/privacy-policy",
    "title": "Privacy policy",
    "type": "privacy",
    "updated_at": "2026-01-05T08:00:00-04:00",
    "updated_at_iso": "2026-01-05T08:00:00-04:00"
  },
  "success": true
}
```

## Update a policy

`PUT /api/2025-01/policies/{type}`

Updates provided fields on the existing fixed Policy row. Supply `expected_revision` from the latest Get response; a missing or stale revision returns `CONTENT_REVISION_CONFLICT` (409), even when the request would change nothing. Omitted fields are left unchanged. Send null or an empty string to clear `content`, `seo_title`, `seo_description` or `social_image_id`; `content` with no text and no image or other media (for example `<p> </p>`) also clears it, and a cleared field is stored as null. A source field that has translations cannot be cleared (`TRANSLATION_SOURCE_FIELD_HAS_TRANSLATIONS`). `title`, `slug`, `status`, `robots` and `create_redirect` cannot be null. A non-empty `social_image_id` must reference an uploaded image in this store and also requires `read_files`. An empty `slug` resets to the default slug for the policy type. When `slug` changes, `create_redirect` controls whether the old policy URL redirects to the new one and defaults to true; with `false`, redirects Tringify created earlier toward the old URL are moved to the new URL, so none ends on a missing page. A policy that the consent banner or the checkout footer shows must stay published with readable text; content that is only an image or other media is refused there (`POLICY_LOCKED_BY_CONSENT_BANNER`, `POLICY_LOCKED_BY_CHECKOUT`). A successful change increments `revision`. Unknown or wrongly typed body properties are refused. `storefront_url` is the canonical absolute URL on the store's primary domain. `storefront_path` is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Scope: `write_pages`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/policies/privacy' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "\u003cp\u003eHow we handle your data.\u003c/p\u003e",
  "create_redirect": true,
  "expected_revision": 1,
  "robots": "index",
  "seo_description": "How we handle your data.",
  "seo_title": "Privacy policy",
  "slug": "privacy-policy",
  "social_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
  "status": "published",
  "title": "Privacy policy"
}'
```

Response:

```json
{
  "code": "POLICY_UPDATED",
  "data": {
    "content": "\u003cp\u003eHow we handle your data.\u003c/p\u003e",
    "created_at": "2026-01-05T08:00:00-04:00",
    "created_at_iso": "2026-01-05T08:00:00-04:00",
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "revision": 2,
    "robots": "index",
    "seo_description": "How we handle your data.",
    "seo_title": "Privacy policy",
    "slug": "privacy-policy",
    "social_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "status": "published",
    "status_display": "Published",
    "storefront_path": "/policy/privacy-policy",
    "storefront_url": "https://store.example.com/policy/privacy-policy",
    "title": "Privacy policy",
    "type": "privacy",
    "updated_at": "2026-01-05T08:05:00-04:00",
    "updated_at_iso": "2026-01-05T08:05:00-04:00"
  },
  "message": "Policy 'Privacy policy' updated.",
  "success": true
}
```

## Fields

| Field | Type | Create | Update | Required | Translatable |
| --- | --- | --- | --- | --- | --- |
| `id` | string (UUID) | No | No | - | No |
| `type` | string | No | No | - | No |
| `title` | string | No | Yes | - | Yes |
| `slug` | string | No | Yes | - | Yes |
| `content` | string | No | Yes | - | Yes |
| `seo_title` | string | No | Yes | - | Yes |
| `seo_description` | string | No | Yes | - | Yes |
| `status` | string | No | Yes | - | No |
| `status_display` | string | No | No | - | No |
| `robots` | string | No | Yes | - | No |
| `social_image_id` | string (UUID) | No | Yes | - | No |
| `create_redirect` | boolean | No | Yes | - | No |
| `revision` | integer | No | No | - | No |
| `expected_revision` | integer | No | Yes | update | No |
| `created_at` | string (RFC 3339) | No | No | - | No |
| `updated_at` | string (RFC 3339) | No | No | - | No |
| `created_at_iso` | string (RFC 3339) | No | No | - | No |
| `updated_at_iso` | string (RFC 3339) | No | No | - | No |
| `storefront_url` | url | No | No | No | No |
| `storefront_path` | string | No | No | No | No |

> `storefront_url` is the read-only canonical HTTPS URL on the store's primary domain. `storefront_path` is the read-only, domain-independent baseline route for clients targeting another configured storefront domain. Resources with storefront visibility conditions return both fields as `null` when those conditions are not met. Hosted storefront responses return request-addressed paths with translated slugs and locale/country prefixes.

## Webhook events

Subscribe to these events to keep your integration in sync with policies. Each event shows the required Store API scope and store permission, the available payload fields, and an example payload. Subscription setup is validated against those permissions; delivery is always restricted to the subscription's store.

## Policy updated

Event: `policies/update` · App scope: `read_pages` · Staff permission: `pages:write`

Fired when a store policy is updated. `changed_fields` names what changed. Policies are never deleted: every store keeps one of each type. A policy update and its translations events can arrive in any order.

```json
{
  "changed_fields": [
    "content"
  ],
  "policy": {
    "content": "\u003cp\u003eReturns are accepted within 30 days of delivery.\u003c/p\u003e",
    "created_at": "2026-06-09T12:00:00-04:00",
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "robots": "index",
    "seo_description": "Our 30-day return terms.",
    "seo_title": "Refund policy",
    "slug": "refund-policy",
    "social_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "status": "published",
    "title": "Refund policy",
    "type": "refund",
    "updated_at": "2026-06-09T12:00:00-04:00"
  }
}
```

