Approve usage charges as the organisation owner
import requests
url = "https://platform.ankra.app/api/v1/org/billing/activation"
payload = {
"accept_charges": True,
"terms": {
"version": "<string>",
"currency": "eur",
"vcpu_rate_hourly": 1,
"free_vcpu_allowance": 1,
"flat_monthly_cents": 1
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accept_charges: true,
terms: {
version: '<string>',
currency: 'eur',
vcpu_rate_hourly: 1,
free_vcpu_allowance: 1,
flat_monthly_cents: 1
}
})
};
fetch('https://platform.ankra.app/api/v1/org/billing/activation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/billing/activation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accept_charges": true,
"terms": {
"version": "<string>",
"currency": "eur",
"vcpu_rate_hourly": 1,
"free_vcpu_allowance": 1,
"flat_monthly_cents": 1
}
}
'{
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paid_usage_enabled": true
}Billing
Approve usage charges as the organisation owner
Requires billing.manage and a live organisation owner assignment. The owner must send accept_charges=true and the exact current terms, and have a verified payment method. The approval, plan switch and audit record commit together. Repeated confirmation is idempotent.
POST
/
api
/
v1
/
org
/
billing
/
activation
Approve usage charges as the organisation owner
import requests
url = "https://platform.ankra.app/api/v1/org/billing/activation"
payload = {
"accept_charges": True,
"terms": {
"version": "<string>",
"currency": "eur",
"vcpu_rate_hourly": 1,
"free_vcpu_allowance": 1,
"flat_monthly_cents": 1
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accept_charges: true,
terms: {
version: '<string>',
currency: 'eur',
vcpu_rate_hourly: 1,
free_vcpu_allowance: 1,
flat_monthly_cents: 1
}
})
};
fetch('https://platform.ankra.app/api/v1/org/billing/activation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/billing/activation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accept_charges": true,
"terms": {
"version": "<string>",
"currency": "eur",
"vcpu_rate_hourly": 1,
"free_vcpu_allowance": 1,
"flat_monthly_cents": 1
}
}
'{
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paid_usage_enabled": true
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Expected current organisation; mismatch is rejected, never used to switch scope.
Body
application/json
Available options:
true The reviewed owner agreement. paid-usage-2026-10-03 approves Startup and Cloud usage. cloud-usage-2026-10-04 approves Cloud usage only; its zero Platform amounts do not replace an existing paid Platform agreement.
Show child attributes
Show child attributes