Метод возвращает все компоненты продукта, идентификатор которого передан в параметре пути {pid}, в заказе с идентификатором, переданным в параметре пути {id}.

Адрес/v1.0/orders/{id}/products/{pid}/features
ТипGET 
LoginТребуется 
Пример запроса
https://station.guardant.ru/v1.0/orders/1053/products/22/features

Ответ

Возвращает массив features:

Пример результата запроса
{
    "features": [
        {
            "_id": 14,
            "archivationdate": 0,
            "archived": false,
            "crmid": "",
            "defaultLicense": {
                "canexclude": false,
                "canmodify": false,
                "consumptionmode": 0,
                "flags": 4,
                "isremote": false,
                "licensingmodel": 2,
                "netlicensescount": 0,
                "rentbegindate": 1565273129,
                "rentdayscount": 0,
                "rentenddate": 1596895529,
                "runcounter": 0
            },
            "description": "f4",
            "featurenumber": 4,
			"pubkey":"F9 E5 EC 6B 52 54 BC 80 45 7D 49 BB F0 61 F9 F2 EC AA 9F 63 79 32 0A B6 77 44 8A E7 16 AC C1 82 8A 14 73 1E 56 B6 EF 53"
            "license": {
                "consumptionmode": 0,
                "flags": 4,
                "isExcluded": 0,
                "isremote": false,
                "licensingmodel": 2,
                "netlicensescount": 0,
                "rentbegindate": 1565273129,
                "rentdayscount": 0,
                "rentenddate": 1596895529,
                "runcounter": 0
            },
            "name": "f4",
            "refid": ""
        },
        {
            "_id": 31,
            "archivationdate": 0,
            "archived": false,
            "crmid": "",
            "defaultLicense": {
                "canexclude": true,
                "canmodify": true,
                "consumptionmode": 0,
                "flags": 4,
                "isremote": true,
                "licensingmodel": 1,
                "netlicensescount": 11,
                "rentbegindate": 0,
                "rentdayscount": 0,
                "rentenddate": 0,
                "runcounter": 0
            },
            "description": "Created by Postman",
            "featurenumber": 8,
            "pubkey":"F9 E5 EC 6B 52 54 BC 80 45 7D 49 BB F0 61 F9 F2 EC AA 9F 63 79 32 0A B6 77 44 8A E7 16 AC C1 82 8A 14 73 1E 56 B6 EF 53"
            "license": {
                "consumptionmode": 0,
                "flags": 4,
                "isExcluded": 1,
                "isremote": true,
                "licensingmodel": 1,
                "netlicensescount": 11,
                "rentbegindate": 0,
                "rentdayscount": 0,
                "rentenddate": 0,
                "runcounter": 0
            },
            "name": ",PostMan",
            "refid": ""
        }
    ]
}
  • No labels