Deprecated. Use Multi currency order instead
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} | string | YES | Order id |
$post = [
'username' => '',
'password' => '',
'user_token' => '',
];
$ch = curl_init('https://api.rrr.lt/get/order/{id}');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);
{ "list": [ [ { "order_id": "123456", "client_name": "Peter Olsen", "client_address": "Løvlia 50, Spydeberg, NO-1820", "client_address_street": "Løvlia 50", "client_address_city": "Spydeberg", "client_address_country": "NO", "client_address_zip_code": "1820", "client_phone": "123456789", "client_email": "[email protected]", "item_list": [ { "id": "1", "id_bridge": "0", "car_id": "5", "name": "Atbulinės eigos žibintas", "price": "5", "sell_price": "5" } ], "part_total_price": "5", "order_date": "2019-08-22 11:20:04", "payment_type": "RRR", "seller": null, "shipping_price": 1, "total_price": 6, "vat_rate": "21", "vat_rate_type": "%", "vat_amount": "1.05", "view_order": ".../order/view_order/123456", "currency": "EUR", } ] ], "msg": "OK", "status_code": "R200" }