Get order by id V2 version https://api.rrr.lt/v2/get/order/{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} string YES order id

Output field details

Key Type Possible values
delivery_type string "parcel_locker", "courier", "self_pickup", "unknown"
shipping_provider string "venipak", "schenker", "dpd-baltic", "dpd-poland", "in-post", "ups", "lithuania-post" ,"ovoko-economy", "ovoko-express", "fedex", "dpd-meta"
id_bridge string Deprecated. Use external_id instead

PHP Curl example code

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

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

Output

{
    "list": [
                {
                    "order_id": "28243515656",
                    "order_source": "ovoko",
                    "client_name": "Transport Autoexpert Oy",
                    "client_address": "Ansiokatu 500, LAHTI, FI-15600",
                    "client_address_street": "Ansiokatu 500",
                    "client_address_city": "LAHTI",
                    "client_address_country": "FI",
                    "client_address_zip_code": "15600",
                    "client_phone": "+358000000000",
                    "client_email": "[email protected]",
                    "company_title": "Transport Autoexpert Oy",
                    "company_code": "123456789",
                    "company_phone": "+358000000000",
                    "company_vat_code": "FI123456",
                    "company_address": "Ansiokatu 500",
                    "item_list": [
                        {
                            "id": "32286",
                            "id_bridge": "0",
                            "car_id": "13095",
                            "name": "Electric door mirror",
                            "sell_price": {
                                "seller": {
                                    "amount": "484.93",
                                    "currency": "PLN"
                                },
                                "buyer": {
                                    "amount": "105.88",
                                    "currency": "EUR"
                                }
                            },
                            "external_id": null
                            "delivery_type": "courier",
                            "shipping_provider": "ups"
                        }
                    ],
                    "part_total_price": {
                        "seller": {
                            "amount": "484.93",
                            "currency": "PLN"
                        },
                        "buyer": {
                            "amount": "105.88",
                            "currency": "EUR"
                        }
                    },
                    "order_date": "2024-03-20 15:55:00",
                    "payment_type": "RRR",
                    "payment_method": "paypal",
                    "seller": "Jane Doe",
                    "shipping_price": {
                        "seller": {
                            "amount": "105.29",
                            "currency": "PLN"
                        },
                        "buyer": {
                            "amount": "22.99",
                            "currency": "EUR"
                        }
                    },
                    "total_price": {
                        "seller": {
                            "amount": "590.22",
                            "currency": "PLN"
                        },
                        "buyer": {
                            "amount": "128.87",
                            "currency": "EUR"
                        }
                    },
                    "vat_amount": {
                        "amount": "23",
                        "type": "%"
                    },
                    "invoice_number": "WDT3063",
                    "view_order": "https://scrapyard-name.rrr.lt/order/view_order/28243515656"
                }
    ],
    "msg": "OK",
    "status_code": "R200"
}