Apply for monthly invoicing
import requests
url = "https://platform.ankra.app/api/v1/org/billing/invoicing-application"
payload = {
"legal_name": "<string>",
"registration_number": "<string>",
"jurisdiction": "<string>",
"registered_address": {},
"billing_contact_name": "<string>",
"billing_contact_email": "<string>"
}
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({
legal_name: '<string>',
registration_number: '<string>',
jurisdiction: '<string>',
registered_address: {},
billing_contact_name: '<string>',
billing_contact_email: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/billing/invoicing-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/invoicing-application \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legal_name": "<string>",
"registration_number": "<string>",
"jurisdiction": "<string>",
"registered_address": {},
"billing_contact_name": "<string>",
"billing_contact_email": "<string>"
}
'{
"id": "<string>",
"status": "<string>",
"form": {},
"kyc": {},
"credit_limit_cents": 123,
"requested_at": "2023-11-07T05:31:56Z",
"reviewed_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Billing
Apply for monthly invoicing
Submits the organisation’s application to move from prepaid credit to monthly invoicing, with the company details Ankra checks before granting a credit limit. One application 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
/
invoicing-application
Apply for monthly invoicing
import requests
url = "https://platform.ankra.app/api/v1/org/billing/invoicing-application"
payload = {
"legal_name": "<string>",
"registration_number": "<string>",
"jurisdiction": "<string>",
"registered_address": {},
"billing_contact_name": "<string>",
"billing_contact_email": "<string>"
}
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({
legal_name: '<string>',
registration_number: '<string>',
jurisdiction: '<string>',
registered_address: {},
billing_contact_name: '<string>',
billing_contact_email: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/billing/invoicing-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/invoicing-application \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legal_name": "<string>",
"registration_number": "<string>",
"jurisdiction": "<string>",
"registered_address": {},
"billing_contact_name": "<string>",
"billing_contact_email": "<string>"
}
'{
"id": "<string>",
"status": "<string>",
"form": {},
"kyc": {},
"credit_limit_cents": 123,
"requested_at": "2023-11-07T05:31:56Z",
"reviewed_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Headers
Body
application/json