Skip to main content
GET
/
billing
/
org
/
v1
/
calc-rules
/
{id}
Get a single CalcRule
curl --request GET \
  --url https://api.gcore.com/billing/org/v1/calc-rules/{id} \
  --header 'Authorization: <api-key>'
{
  "id": 123,
  "name": "<string>",
  "rule_type": "commit"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer
required

Response

200 - application/json
id
integer
required
name
string
required

Name of calc rule

Maximum length: 255
rule_type
enum<string>
required

* commit - commit * overcommit - overcommit * stepped - stepped * staged - staged * unit - unit * post_invoice - post_invoice

Available options:
commit,
overcommit,
stepped,
staged,
unit,
post_invoice