Javascript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.thanks.io/api/v2/orders/stats', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
{ "delivered": 0, "processing": 1, "printed": 0, "in_transit": 51, "in_local_area": 0, "processed_for_delivery": 0, "re_routed": 0, "returned_to_sender": 0, "failed": 2835, "total_cost": "$2,622.43", "total_requests": 2947, "total_sent": 2947 }
Return summary of stats for orders between a date range.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of subaccount to use (optional)
OK
The response is of type object.
object
Was this page helpful?