Plan and usage

Your business's plan and usage for the month

GET
/v1/usage

The plan and usage of your key's business, as each live business has its own: the month's authorized live documents, the band they fall in and what they cost so far. A live document that would take the usage amount over the spending cap is rejected with 402 plan_limit before it is numbered. A sandbox business answers its month's sandbox documents, with no amounts.

Authorization

AuthorizationBearer <token>

Your API key, which acts for the one business it was created for: fb_sandbox_… issues in sandbox, fb_test_… in test, the tax authority's testing service, and fb_live_… in live.

In: header

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/usage"
{  "object": "usage",  "entity_id": "8161163a-f227-466f-bc01-090a01e80165",  "country": "ec",  "currency": "string",  "plan": {    "id": "string",    "name": "string"  },  "issuing": {    "allowed": true,    "lock": {      "code": "plan_required",      "message": "string",      "canceled": true    }  },  "period": {    "start": "2019-08-24",    "end": "2019-08-24",    "timezone": "string"  },  "documents": 0,  "included_documents": 0,  "band": {    "up_to": 0,    "unit_price": "string"  },  "next_band": {    "threshold": 0,    "unit_price": "string"  },  "usage_amount": "string",  "usage_amount_with_iva": "string",  "estimated_total": "string",  "estimated_total_with_iva": "string",  "overage_cap": "string",  "overage_cap_with_iva": "string"}