| Name | Type | Required | Data |
|---|---|---|---|
| username | Text varchar(50) | YES | Username |
| password | Text varchar(100) | YES | Password |
| user_token | Text | YES | Token provided |
| Name | Type | Required | Data |
|---|---|---|---|
| {id} | integer | YES | Order Return ID |
$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);
{
"list": [
[
{
"id": 456,
"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,
"returnable_amount_in_seller_currency": 64.73,
"currency": "PLN",
"price_in_seller_currency": 64.73,
"vat_rate": 23
}
],
"status": "New",
"shipping_price": 19.84,
"returnable_shipping_amount": 19.84,
"total_paid_price": 294.95,
"total_returnable_amount": 294.95,
"currency": "PLN",
"seller_currency": "EUR",
"total_returnable_amount_in_seller_currency": 69.4,
"returnable_shipping_amount_in_seller_currency": 4.67,
"shipping_price_in_seller_currency": 4.67,
"total_paid_price_in_seller_currency": 69.4,
"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"
},
"refunds": []
}
]
],
"msg": "OK",
"status_code": "R200"
}