Return all policies for the current language and platform.

GET /api/policies

Request

Example request 1

GET /api/policies HTTP/1.1
Host: accounts.bakeronline.be
X-VERSION: 0.2.1
Accept-Language: en-US,en;q=0.5

Response

Array of Dictionary: [Dictionary]

Dictionary

A dictionary with fields

Field Type Description
html String A String value
type String String enumarion of 'tac', 'privacy', 'cookie', 'shop'
title String A String value
description String A String value
button String A String value
version Int An integer value
revision_id Int The id of this revision of the policy. Each change in a policy has it's own revision id.
date String Human formatted date

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 632

[
    {
        "html": "...",
        "type": "tac",
        "title": "...",
        "description": "...",
        "button": "...",
        "version": 15,
        "revision_id": 18,
        "date": "..."
    },
    {
        "html": "...",
        "type": "tac",
        "title": "...",
        "description": "...",
        "button": "...",
        "version": 15,
        "revision_id": 19,
        "date": "..."
    },
    {
        "html": "...",
        "type": "tac",
        "title": "...",
        "description": "...",
        "button": "...",
        "version": 19,
        "revision_id": 18,
        "date": "..."
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
0.2.1 stable