Get Order Return https://api.rrr.lt/get/order_return/{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} integer YES Order Return ID

PHP Curl example code

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

$ch = curl_init('https://api.rrr.lt/get/order_return/{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": 12345,
                "order_id": 12345,
                "order_return_items": [
                    {
                        "id": 12,
                        "part_id": 77,
                        "name": "Front door window",
                        "return_reason": "Not suitable for my vehicle",
                        "price": 275.11,
                        "returnable_amount": 275.11,
                        "currency": "EUR"
                    }
                ],
                "status": "New",
                "shipping_price": 19.84,
                "returnable_shipping_amount": 19.84,
                "total_paid_price": 294.95,
                "total_returnable_amount": 275.11,
                "currency": "EUR",
                "created_at": "2023-07-10T20:14:39+03:00",
                "customer": {
                    "first_name": "John",
                    "last_name": "Doe",
                    "postal_code": "13013",
                    "telephone": "+37060000000",
                    "country": "LT",
                    "address": "Gedimino g. 1D",
                    "region": "Vilnius"
                }
            }
        ]
    ],
    "msg": "OK",
    "status_code": "R200"
}