Get part https://api.rrr.lt/get/part/{id}

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
{id} Numeric (int 11) YES Part ID

PHP Curl example code

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

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

Output

{
    "list": [
        [
            {
                "id": "36633",
                "id_bridge": "0",
                "car_id": "242",
                "category_id": "179",
                "name": "Priešrūkinio žibinto dalis",
                "manufacturer_code": "",
                "visible_code": "",
                "other_code": "",
                "quality": "0",
                "notes": "",
                "price": "0",
                "currency": "EUR",
                "original_price": "0",
                "original_currency": "EUR",
                "date": "2019-03-05 14:40:11",
                "mechanic": "0",
                "status": "0",
                "reserved_user": "0",
                "reserved_date": "0000-00-00 00:00:00",
                "position": null,
                "rims": null,
                "tires": null,
                "rims_fixing_points": null,
                "rims_spacing": null,
                "rims_quantity": null,
                "rims_central_diameter": null,
                "tires_width": null,
                "tires_height": null,
                "tires_quantity": null,
                "photo": "",
                "internal_notes": "",
                "create_date": "2019-03-05 14:39:29",
                "shop_url": "rrr.lt/rag36633-80-avant-priesrukinio-zibinto-dalis",
                "show_url": "rrr.lt/ragraunda_dev/rag36633-80-avant-priesrukinio-zibinto-dalis?cm=16",
                "category_title_path": "Priešrūkinio žibinto dalis / Priešrūkiniai žibintai",
                "part_photo_gallery": []
            }
        ]
    ],
    "msg": "OK",
    "status_code": "R200"
}