Update product
GET /statistics
Retrieve a simple statistics overview, between two dates.
The parameters since
and until
must be one of the following formats:
- A Unix timestamp
- A datetime compatible with the format Y-m-d H:i:s
- Any relative time format, Supported date formats
If omiitted, until
will fallback to current date and time.
{
"message": {
"products": {
"created": int,
"sold": int,
"completed": int,
"onAuction": int,
"onBuyNow": int,
"onCommission": int
},
"disputes": {
"opened": int,
"closed": int
},
"transports": {
"danskautologik": {
"ordered": int,
"transit": int,
"delivered": int
},
"eurotransport": {
"ordered": int,
"confirmed": int,
"transit": int,
"delivered": int
}
}
},
"status": "success"
}
{
"message": {
"2023-01-01": {
"products": {
"created": 0,
"sold": 1,
"completed": 0,
"onAuction": 0,
"onBuyNow": 0,
"onCommission": 0
},
"disputes": {
"opened": 0,
"closed": 0
},
"transports": {
"danskautologik": {
"ordered": 0,
"transit": 0,
"delivered": 0
},
"eurotransport": {
"ordered": 0,
"confirmed": 0,
"transit": 0,
"delivered": 0
}
}
}
}
}
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'YOUR-BASEURL/statistics?since=now',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-Api-Key: YOUR-API-KEY'
],
]);
$response = curl_exec($ch);
curl_close($ch);
Parameter | Required | Description |
---|---|---|
since |
The timestamp, datetime or relative time format since which to base statistics upon | |
until |
The timestamp, datetime or relative time format until which to base statistics upon | |
monthly |
Get results divided chronologically by each month between since and until Can be 1 or 0 |
Response structure
Response will vary depending on the monthly
parameter provided.