Administration

Upload usage data to Stripe for billing invoice.

Upload usage data to Stripe for billing invoice. Requires administrator permissions.

post/_api/_admin/_billing/usage/report

Request

Request body

tenantstring string

(Optional) The ID of the tenant.

startstring string

Start date-time in 'YYYY-MM-DD HH:MM:SS' format.

endstring string

End date-time in 'YYYY-MM-DD HH:MM:SS' format.

overwriteboolean

(Optional) Overwrite existing usage data.

Example request

{
  "tenant": "Test",
  "start": "2022-05-01 00:00:00",
  "end": "2022-05-03 00:00:00"
}

Response

Upload usage data to stripe for billing invoice.

codeinteger

HTTP response code.

errorboolean

Flag if there is an error in response. False for this response.

messagestring

OK if successfully generated aggregated usage data for billing. An error description is displayed if an error occurs.

Example response

{
  "code": 200,
  "message": "OK"
}

Changes

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