| 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 |
|---|---|---|---|
| date_from | date (Y-m-d) | NO | Date from Order Return created (exp. 2022-07-10) |
| date_to | date (Y-m-d) | NO | Date to Order Return created (exp. 2023-07-25) |
| page | integer | NO | Range from [1...PAGE_NUMBERS] |
$post = [
'username' => '',
'password' => '',
'user_token' => '',
];
$ch = curl_init('https://api.rrr.lt/get/order_returns?date_from=2022-07-01&date_to=2023-07-25&page=3');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);
{
"list": [
{
"id": 345,
"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": 1169.22,
"currency": "EUR",
"price_in_seller_currency": 1169.22,
"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": "EUR",
"seller_currency": "PLN",
"total_returnable_amount_in_seller_currency": 1253.54,
"returnable_shipping_amount_in_seller_currency": 84.32,
"shipping_price_in_seller_currency": 84.32,
"total_paid_price_in_seller_currency": 1253.54,
"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": []
},
{
"id": 456,
"order_id": 123456,
"order_return_items": [
{
"id": 123,
"part_id": 88,
"name": "Headlamp left",
"return_reason": "Part not working",
"price": 78.6,
"returnable_amount": 78.6,
"returnable_amount_in_seller_currency": 334.05,
"currency": "EUR",
"price_in_seller_currency": 334.05,
"vat_rate": 23
}
],
"status": "Returned",
"shipping_price": 21.72,
"returnable_shipping_amount": 21.72,
"total_paid_price": 100.32,
"total_returnable_amount": 100.32,
"currency": "EUR",
"seller_currency": "PLN",
"total_returnable_amount_in_seller_currency": 426.36,
"returnable_shipping_amount_in_seller_currency": 92.31,
"shipping_price_in_seller_currency": 92.31,
"total_paid_price_in_seller_currency": 426.36,
"created_at": "2023-07-11T11:06:44+03:00",
"customer": {
"first_name": "Jane",
"last_name": "Doe",
"postal_code": "44055",
"telephone": "+37060000000",
"country": "IT",
"address": "Via Leonardo Fibonacci, 30H",
"region": "Bergamo"
},
"refunds": [
{
"id": 678,
"status": "PAID_OUT",
"currency": "EUR",
"seller_currency": "PLN",
"total_amount": 100.32,
"total_amount_in_seller_currency": 426.36,
"created_at": "2025-01-16T14:36:04Z",
"paid_at": "2025-01-13T09:00:52Z",
"refund_items": [
{
"id": 901,
"order_id": 123456,
"part_id": 88,
"name": "Headlamp left",
"currency": "EUR",
"refund_amount": 78.6,
"refund_amount_in_seller_currency": 334.05,
"price_in_seller_currency": 334.05,
"vat_rate": 23
},
{
"id": 902,
"order_id": 123456,
"part_id": null,
"name": "Delivery",
"currency": "EUR",
"refund_amount": 21.72,
"refund_amount_in_seller_currency": 92.31,
"price_in_seller_currency": 92.31,
"vat_rate": 23
}
],
"invoice": {
"number": "KRRR-21",
"download_url": "https://document.cdnrrr.com/invoice/dev/credited_invoice_KR-RRR_21_2025_01.pdf"
}
}
]
}
],
"msg": "OK",
"status_code": "R200"
}