Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Function delivery/exportTypes (http://<DOMAIN>/api/delivery/exportTypes/)

Parameters:

  • token - authorisation key obtained through the auth function

Response:

  • status - status of the function execution
  • OK - data exported
  • EMPTY - no data to export
  • response.deliveryTypes - list of delivery types
    • response.deliveryTypes[i].id - unique identifier of delivery type
    • response.deliveryTypes[i].title - delivery type name
      • response.deliveryTypes[i].en - delivery type name in English
      • response.deliveryTypes[i].ro - delivery type name in Romanian
      • ....
      • response.deliveryTypes[i].<LN> - name of delivery type in language. Where <LN> is the abbreviation of the language


Request example (http://<DOMAIN>/api/delivery/exportTypes/)
{  
    "token": "24a75d0678c49a34030e35baeb376ff3"
}
Response example
{
    "status": "OK",
    "response": {
        "deliveryTypes": [
            {
                "id": 1,
                "title": {
                    "ru": "Доставка курьером по городу",
                    "ua": "Доставка курьером по місту"
                }
            },
            {
                "id": 2,
                "title": {
                    "ru": "Выбор города и склада (не для всех вариантов доставки)",
                    "ua": "Вибір міста чи складу (не для всіх варіантів доставки)"
                }
            },
            {
                "id": 3,
                "title": {
                    "ru": "Доставка в указанный город",
                    "ua": "Доставка до вказаного міста"
                }
            },
            {
                "id": 4,
                "title": {
                    "ru": "Самовывоз",
                    "ua": "Самовивіз"
                }
            },
            {
                "id": 5,
                "title": {
                    "ru": "УкрПошта",
                    "ua": ""
                }
            }
        ]
    }
}
  • No labels