won

What this key has spent, and what is left

Answers "can I keep going?". Returns this API key's lifetime spend, its workspace's spend over the last days days, and the prepaid balance that gates the next call. Priced through the same path as the balance itself, so the figure here and the amount actually charged cannot disagree. Carries NO charge and skips the balance gate — an account at zero must still be able to find out why. Rate limited to 10 requests per minute.

get/api/v1/won/usage

Request

  • Base URL: https://api.wontopos.com
  • URL: https://api.wontopos.com/api/v1/won/usage
  • Auth: API key in header X-API-Key

Query parameters

daysinteger

Window for the workspace figures. The key figure is always lifetime.

Response

Spend for the calling key and its workspace, with the balance that gates it.

window_daysinteger

Days covered by the workspace figures.

balance_centsnumber

Prepaid balance left on the account. Negative means overdrawn.

expiring_soon_centsnumber

Of what is left, how much expires within 90 days.

Changes

No recorded changes to this operation across all 1 revision of this API.