JavaScript
const options = { method: 'GET', headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'} }; fetch('https://api.dcycle.io/v1/logistics/summary', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "requests": { "count": 123, "last_updated": {} }, "recharges": { "count": 123, "last_updated": {} }, "hubs": { "count": 123, "last_updated": {} } }
Get summary statistics for logistics entities in your organization
sk_live_1234567890abcdef
a8315ef3-dd50-43f8-b7ce-d839e68d51fa
Show Summary Object
curl -X GET "https://api.dcycle.io/v1/logistics/summary" \ -H "x-api-key: ${DCYCLE_API_KEY}" \ -H "x-organization-id: ${DCYCLE_ORG_ID}"
{ "requests": { "count": 1250, "last_updated": "2024-11-24T15:30:00Z" }, "recharges": { "count": 456, "last_updated": "2024-11-23T10:15:00Z" }, "hubs": { "count": 12, "last_updated": "2024-11-20T09:00:00Z" } }