+ Billing
+ Usage
+
+
An Organisation's usage against the allowances in its plan: Contacts, Stories (survey responses), automation runs, API and integration runs, file storage uploaded, SMS and email. This is the Our Account › Usage page. For this calendar month it gives each usage type's quantity so far, allowance, percent_used, status (within, near at 80% or more, over or waived), the quantity expected by the end of the month at the current rate, the price over the allowance, and the charge so far and expected. Amounts are in the Organisation's billing currency, before VAT, and use its own prices.
+
File storage is what was uploaded this month, in GB, not what is stored. Contacts are the current total, archived ones included, and their bundle is charged every month the total is over the allowance. A charge is null when no price is set, and unpriced is then true. Going over an allowance never stops anyone working.
+
Only the Organisation's admins (and Makerble staff) can read it; anyone else gets 404.
+
+
+ ${endpointCard("GET", "/organisations/{organisation_id}/usage", "Get an Organisation's usage this month", true, [
+ { name: "organisation_id", in: "path", type: "integer", required: true, desc: "The Organisation (Charity) ID" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "month, currency, charge_so_far, expected_charge, unpriced, and data: one entry per usage type used or allowed, with quantity, allowance, percent_used, status, expected_quantity, price, charge_so_far and expected_charge" },
+ { code: "404", cls: "response-4xx", desc: "Not an admin of this Organisation" }
+ ])}
+ ${endpointCard("GET", "/organisations/{organisation_id}/usage/history", "Get an Organisation's usage in the previous 12 months", true, [
+ { name: "organisation_id", in: "path", type: "integer", required: true, desc: "The Organisation (Charity) ID" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "data: the 12 months before this one, newest first, each with its currency, charge and usage (quantity, allowance, charge and waived per usage type)" },
+ { code: "404", cls: "response-4xx", desc: "Not an admin of this Organisation" }
+ ])}
+
+
+