Versions Compared

Key

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

...

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

...

Code Block
languagejs
titleПример ответа на запросResponse example
{
    "status": "OK",
    "response": {
        "delivery": [
            {
                "id": 11,
                "title": {
                    "ruen": "КурьеромBy по Киевуcourier",
                    "uaro": "Кур'єром по КиевуPrin curier"
                },
                "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": {
                    "ruen": "ВариантDelivery доставкиoption неnot определенspecified",
                    "uaro": "ВариантOpțiune доставкиde неlivrare определенnespecificată"
                },
                "type": 0,
                "by_carrier": false,
                "enabled": false,
                "payment": [],
                "price_options": [
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 8,
                "title": {
                    "ruen": "СамовывозLocal pickup",
                    "uaro": "СамовивізRidicare personală"
                },
                "type": 4,
                "by_carrier": false,
                "enabled": false,
                "payment": [
                    13,
                    14,
                    16
                ],
                "price_options": [
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 9,
                "title": {
                    "ruen": "УкрпочтойDPD",
                    "uaro": "УкрпоштоюDPD"
                },
                "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": {
                    "ruen": "НовойNova почтойPost",
                    "uaro": "НовоюNova поштоюPost"
                },
                "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": {
                    "ruen": "АвтолюксSameday",
                    "uaro": "АвтолюксSameday"
                },
                "type": 2,
                "by_carrier": false,
                "enabled": false,
                "payment": [],
                "price_options": []
            },
            {
                "id": 13,
                "title": {
                    "ruen": "ИнтаймFAN Courier (Moldova): Home Delivery",
                    "uaro": "ИнтаймFAN Courier (Moldova): Home Delivery"
                },
                "type": 2,
                "by_carrier": false,
                "enabled": true,
                "payment": [],
                "price_options": [
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            },
            {
                "id": 14,
                "title": {
                    "ruen": "ДеливериInPost Parcel Locker",
                    "uaro": "ДеливериInPost Parcel Locker"
                },
                "type": 5,
                "by_carrier": true,
                "enabled": true,
                "payment": [
                    14,
                    15
                ],
                "price_options": [
                    {
                        "min": 0,
                        "price": 0,
                        "by_carrier": false
                    }
                ]
            }
        ]
    }
}

...