Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleПример запроса на адрес Request example (http://<DOMAIN>/api/delivery/export/)
{  
    "token": "24a75d0678c49a34030e35baeb376ff3"
}

...

Code Block
languagejs
titleПример ответа на запросResponse example
{
    "status": "OK",
    "response": {
        "delivery": [
            {
                "id": 11,
                "title": {
                    "ru": "Курьером по Киеву",
                    "ua": "Кур'єром по Киеву"
                },
                "type": 1,
                "by_carrier": false,
                "enabled": true,
                "payment": [
                    13,
                    14,
                    15,
                    16
                ],
                "price_options": [
                    {
                        "min": 0,
                        "price": 45,
                        "by_carrier": false
                    },
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    },
                    {
                        "min": 1000,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 10,
                "title": {
                    "ru": "Вариант доставки не определен",
                    "ua": "Вариант доставки не определен"
                },
                "type": 0,
                "by_carrier": false,
                "enabled": false,
                "payment": [],
                "price_options": [
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 8,
                "title": {
                    "ru": "Самовывоз",
                    "ua": "Самовивіз"
                },
                "type": 4,
                "by_carrier": false,
                "enabled": false,
                "payment": [
                    13,
                    14,
                    16
                ],
                "price_options": [
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 9,
                "title": {
                    "ru": "Укрпочтой",
                    "ua": "Укрпоштою"
                },
                "type": 5,
                "by_carrier": false,
                "enabled": false,
                "payment": [
                    13,
                    14,
                    16
                ],
                "price_options": [
                    {
                        "min": 0,
                        "price": 35,
                        "by_carrier": false
                    },
                    {
                        "min": 100,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 3,
                "title": {
                    "ru": "Новой почтой",
                    "ua": "Новою поштою"
                },
                "type": 2,
                "by_carrier": true,
                "enabled": true,
                "payment": [
                    12,
                    13,
                    14,
                    15,
                    16
                ],
                "price_options": [
                    {
                        "min": 0,
                        "price": 35,
                        "by_carrier": true
                    },
                    {
                        "min": 500,
                        "price": 15,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 12,
                "title": {
                    "ru": "Автолюкс",
                    "ua": "Автолюкс"
                },
                "type": 2,
                "by_carrier": false,
                "enabled": false,
                "payment": [],
                "price_options": []
            },
            {
                "id": 13,
                "title": {
                    "ru": "Интайм",
                    "ua": "Интайм"
                },
                "type": 2,
                "by_carrier": false,
                "enabled": true,
                "payment": [],
                "price_options": [
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 14,
                "title": {
                    "ru": "Деливери",
                    "ua": "Деливери"
                },
                "type": 5,
                "by_carrier": true,
                "enabled": true,
                "payment": [
                    14,
                    15
                ],
                "price_options": [
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            }
        ]
    }
}

...