Get part status list https://api.rrr.lt/get/part_status

POST parameters

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

PHP Curl example code

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

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

Output

{
    "list": {
        "1": {
            "en": "Reserved",
            "lv": "Rezervēts",
            "ru": "Зарезервирована",
            "lt": "Rezervuota",
            "pl": "Zarezerwowano",
            "es": "Reservado",
            "fr": "Réservé",
            "it": "Riservato"
        },
        "2": {
            "en": "Sold out",
            "lv": "Pārdots",
            "ru": "Продана",
            "lt": "Parduota",
            "pl": "Sprzedano",
            "es": "Vendido",
            "fr": "Vendu",
            "it": "Venduto"
        },
        "3": {
            "en": "Returned",
            "lv": "Atgriezties",
            "ru": "Возвращена",
            "lt": "Grąžinta",
            "pl": "Zwrot",
            "es": "Devolución",
            "fr": "Retourner",
            "it": "Ritornato"

        },
        "4": {
            "en": "Written off",
            "lv": "Norakstīti",
            "ru": "Списана",
            "lt": "Nurašyta",
            "pl": "Wycofany",
            "es": "Amortizado",
            "fr": "Radié",
            "it": "Cancellato"
        },
        "0": {
            "en": "In stock",
            "lv": "Noliktavā",
            "ru": "Доступно на складе",
            "lt": "Yra sandėlyje",
            "pl": "Na stanie",
            "es": "En existencias",
            "fr": "En stock",
            "it": "In magazzino"
        }
    },
    "msg": "OK",
    "status_code": "R200"
}