Endpoint with Base URL: https://console.staging-cloudnosys-staging.kinsta.cloud/api/v1/billing
GET Request #
Get information about your organization’s billing details.
Headers #
| Fields | Value |
| Content-Type | ‘application/json’ |
| Authorization | ACCESS_TOKEN |
Params #
| Fields | Type | Description |
| orgId | String | The ID of the organization. For e.g., myorg_3x4 |
Response Body #
Status: 200
| JSON representation |
| {
“billingStart”: String , “billingEnd”: String, “totalResources”: Number, “billableResources”: Number, “maxResources”: Number, “minResources”: Number, “Trend”: Array } |
Sample Response Body
| JSON representation |
| {
“billingStart”: “29-Apr-2022”, “billingEnd”: “28-Apr-2023”, “totalResources”: 6078, “billableResources”: 3789, “avgResources”: 3500, “maxResources”: 4035, “minResources”: 1743, “Trend”: [ { “date”: “1-Aug-2022”, “count”: 3400 }, { “date”: “2-Aug-2022”, “count”: 3500 }, { “date”: “3-Aug-2022”, “count”: 3600 }, … ] } |
Error Responses #
Status: 400 #
| JSON representation |
| {
“Status”: 400 “Message”: ERROR_MESSAGE } |
| ERROR_MESSAGE | |
| Invalid request! | Any of the required params in the request body is missing. |
Status: 401 #
| JSON representation |
| {
“Status”: 401 “message”: ERROR_MESSAGE } |
| ERROR_MESSAGE | |
| Unauthorized request! | Missing authentication token in headers or invalid token. |
