Get parts https://api.rrr.lt/get/parts/{date_from}/{date_to}

Deprecated. Use Parts v2 instead

POST parameters

Name Type Required Data
username Text varchar(50) YES Username
password Text varchar(100) YES Password
user_token Text YES Token provided

URI values

Name Type Required Data
{date_from} date (Y-m-d) NO Date from parts added (exp. 2019-02-14)
{date_to} date (Y-m-d) NO Date to parts added (exp. 2019-03-14)

PHP Curl example code

$post = [
'username' => '',
'password' => '',
'user_token' => '',
];

$ch = curl_init('https://api.rrr.lt/get/parts/{date_from}/{date_to}');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);

Output

{
    "list": [
        {
            "id": "36630",
            "id_bridge": "0",
            "car_id": "108",
            "category_id": "179",
            "name": "Priešrūkinio žibinto dalis",
            "manufacturer_code": "MAN222",
            "visible_code": "VIS123",
            "other_code": "OTH123",
            "quality": "3",
            "notes": "testinis",
            "price": "12.22",
            "currency": "EUR",
            "original_price": "12.22",
            "original_currency": "EUR",
            "date": "2019-03-05 13:38:06",
            "mechanic": "0",
            "status": "2",
            "reserved_user": "0",
            "reserved_date": "0000-00-00 00:00:00",
            "position": "20",
            "rims": "0",
            "tires": "0",
            "rims_fixing_points": null,
            "rims_spacing": null,
            "rims_quantity": null,
            "rims_central_diameter": null,
            "tires_width": "1",
            "tires_height": "1",
            "tires_quantity": "11",
            "photo": "https://lauris.rrr.lt/uploads/car/parts/36603/mazda-626-atbulines-eigos-zibintas.jpg",
            "internal_notes": "vidinis testinis",
            "create_date": "2019-03-04 16:38:59",
            "shop_url": "rrr.lt/rag36630-man222-audi-a4-s4-b5-8d-priesrukinio-zibinto-dalis",
            "show_url": "rrr.lt/ragraunda_dev/rag36630-man222-audi-a4-s4-b5-8d-priesrukinio-zibinto-dalis?cm=1",
            "part_photo_gallery": []
        }
    ],
    "msg": "OK",
    "status_code": "R200"
}