Магазин


Этот документ описывает работу с магазином в API Zenky.io.

Используемые структуры

Магазин

{
    "id": "8ffdea45-ca27-46fb-9e65-80abd8fdced8",
    "user_id": "cfe0cdf6-0384-451d-bfff-06d4d3f00907",
    "name": "Zenky Developer",
    "slug": "zenky-developer",
    "created_at": {
        "timezone": "Asia\/Irkutsk",
        "datetime_utc": "2020-03-01 00:00:00",
        "datetime": "2020-03-01 08:00:00",
        "datetime_at": "01.03.2020 в 08:00",
        "date": "01.03.2020",
        "diff": "1 год назад",
        "timestamp": 1583020800,
        "iso_utc": "2020-03-01T00:00:00+00:00",
        "iso": "2020-03-01T08:00:00+08:00"
    },
    "updated_at": {
        "timezone": "Asia\/Irkutsk",
        "datetime_utc": "2020-10-05 12:55:31",
        "datetime": "2020-10-05 20:55:31",
        "datetime_at": "05.10.2020 в 20:55",
        "date": "05.10.2020",
        "diff": "6 месяцев назад",
        "timestamp": 1601902531,
        "iso_utc": "2020-10-05T12:55:31+00:00",
        "iso": "2020-10-05T20:55:31+08:00"
    }
}

Описание полей

Настройки

{
    "locale": {
        "country": {
            "code": "RU",
            "name": "Россия",
            "iso3166": {
                "name": "Russian Federation",
                "alpha2": "RU",
                "alpha3": "RUS",
                "numeric": "643",
                "currency": [
                    "RUB"
                ]
            }
        }
    },
    "orders": {
        "confirmation_required": false,
        "authentication_method": {
            "id": "disabled",
            "name": "Аутентификация и подтверждение отключены"
        },
        "payment_methods": [
            {
                "id": "cash",
                "name": "Наличные"
            },
            {
                "id": "credit-card",
                "name": "Картой при получении"
            }
        ],
        "delivery_methods": [
            {
                "id": "pickup",
                "name": "Самовывоз"
            },
            {
                "id": "delivery",
                "name": "Курьер"
            }
        ],
        "min_price": null,
        "options": [
            {
                "id": "persons_count",
                "name": "Кол-во персон"
            },
            {
                "id": "delivery_time",
                "name": "Время доставки"
            }
        ]
    },
    "authentication": {
        "sms_authentication_enabled": true
    },
    "city": {
        "default": "8ffdeafc-ce5b-4079-b73f-a2d39f8bde70"
    },
    "currency": {
        "code": "rub",
        "data": {
            "code": "RUB",
            "name": "Российский рубль",
            "thousands_separator": " ",
            "decimals_separator": ".",
            "prefix": "",
            "suffix": "₽",
            "symbol": "₽",
            "formatting_examples": {
                "default": "55 999 ₽",
                "short": "55 999",
                "full": "55 999.00 ₽"
            }
        }
    },
    "loyalty": {
        "enabled": true,
        "referral_program": {
            "enabled": true
        }
    },
    "priceType": {
        "default": "8ffdea87-0960-4669-8bc8-4b23d6045535"
    },
    "price_type": {
        "default": "8ffdea87-0960-4669-8bc8-4b23d6045535"
    },
    "recaptcha": {
        "enabled": false,
        "actions": [],
        "key": null
    },
    "applications": {
        "app_store": {
            "id": null,
            "url": null
        },
        "google_play": {
            "id": null,
            "url": null
        },
        "default": null
    },
    "website": {
        "primary_domain": null,
        "default": "90b94003-f140-4a3d-af63-3665db4f1c73"
    }
}

Методы

Список поддерживаемых методов для работы с магазином.

Просмотр магазина