Revert billing usage
Revert billing usage for a billing account.
application/json
Request Body required
org_id either provide org_id or infer org from project_id
project_id string
billing_id either provide billing_id of the org or API can infer the default
billing ID from either org_id or project_id, not both
usage_id usage id to revert, a usage can only be allowed to revert once
amount int64
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
application/json
Schema
Example (from schema)
Schema
object
{}
Bad Request - The request was malformed or contained invalid parameters.
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v1beta1/organizations/billing/usages/revert
Authorization
name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic
Request
Request
curl / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'
python / requests
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'
go / native
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'
nodejs / axios
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'
csharp / RestSharp
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'
php / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'
java / OkHttp
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'
powershell / RestMethod
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/organizations/billing/usages/revert' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"org_id": "string",
"project_id": "string",
"billing_id": "string",
"usage_id": "string",
"amount": "string"
}'