Save a card without approving paid usage (browser session)
import requests
url = "https://platform.ankra.app/org/billing/activation/setup"
payload = { "return_url": "<string>" }
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({return_url: '<string>'})
};
fetch('https://platform.ankra.app/org/billing/activation/setup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/billing/activation/setup \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '
{
"return_url": "<string>"
}
'{
"checkout_url": "<string>"
}Billing
Save a card without approving paid usage (browser session)
Requires billing.manage and CSRF for browser sessions. Creates a Stripe setup checkout and returns to an allowed Platform origin. This operation never selects a paid plan or removes the trial limit.
POST
/
org
/
billing
/
activation
/
setup
Save a card without approving paid usage (browser session)
import requests
url = "https://platform.ankra.app/org/billing/activation/setup"
payload = { "return_url": "<string>" }
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({return_url: '<string>'})
};
fetch('https://platform.ankra.app/org/billing/activation/setup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/billing/activation/setup \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '
{
"return_url": "<string>"
}
'{
"checkout_url": "<string>"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Headers
Query Parameters
Expected current organisation; mismatch is rejected, never used to switch scope.
Body
application/json
Response
Successful Response