GET
/
orders
/
stats
Stats
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

start_date
string
end_date
string
sub_account_id
integer

ID of subaccount to use (optional)

Response

200 - application/json

OK

The response is of type object.