Apply for a credit programme
import requests
url = "https://platform.ankra.app/api/v1/org/billing/program-application"
payload = {
"program": "<string>",
"details": {}
}
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({program: '<string>', details: {}})
};
fetch('https://platform.ankra.app/api/v1/org/billing/program-application', 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/program-application \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"program": "<string>",
"details": {}
}
'{
"id": "<string>",
"program": "<string>",
"status": "<string>",
"details": {},
"requested_at": "2023-11-07T05:31:56Z",
"reviewed_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Billing
Apply for a credit programme
Submits the organisation’s application to a credit programme (the startup or homebuilder programme) with the programme’s own details, for review by Ankra. One application per programme may be pending. Requires billing.manage, checked against the token’s scopes and then against the member’s role whatever the authorisation rollout state; a token pinned to a project is refused, since billing has no per-project form.
POST
/
api
/
v1
/
org
/
billing
/
program-application
Apply for a credit programme
import requests
url = "https://platform.ankra.app/api/v1/org/billing/program-application"
payload = {
"program": "<string>",
"details": {}
}
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({program: '<string>', details: {}})
};
fetch('https://platform.ankra.app/api/v1/org/billing/program-application', 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/program-application \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"program": "<string>",
"details": {}
}
'{
"id": "<string>",
"program": "<string>",
"status": "<string>",
"details": {},
"requested_at": "2023-11-07T05:31:56Z",
"reviewed_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}