A GET request on the /usage endpoint MUST return http status 200 OK with the body containing the customer’s current usage and allotment.
The TollGate derives the customer’s device identifier (e.g. MAC address) from the request’s network context.
Formatted as [usage]/[allotment]
Both values use the metric unit defined in the customer’s active session (e.g. bytes or milliseconds).
If the customer has no active session, the response MUST be -1/-1.
http port MUST be the same as HTTP-01
curl -X GET http://192.168.1.1:2121/usage # TollGate IP
HTTP/1.1 200 OK
Content-Type: text/plain
5242880/44040192
HTTP/1.1 200 OK
Content-Type: text/plain
-1/-1