I will prefer /orders/stats
or /stats/orders
, and have totalamount as one of the attribute of the JSON result.
The reason is totalamount is just a simple value and it is really just part of the stats result.
/orders/totalmount will not make much sense, unless you have many aspects to represent this values.