Save a payment method
curl --request POST \
--url https://api.turos.app/v1/billing/payment-methods/setup-intent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.turos.app/v1/billing/payment-methods/setup-intent"
payload = {}
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({})
};
fetch('https://api.turos.app/v1/billing/payment-methods/setup-intent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Billing
Save a payment method
Create a Stripe SetupIntent to save a payment method off-session for top-ups and auto-top-up (max 3 per organization).
POST
/
v1
/
billing
/
payment-methods
/
setup-intent
Save a payment method
curl --request POST \
--url https://api.turos.app/v1/billing/payment-methods/setup-intent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.turos.app/v1/billing/payment-methods/setup-intent"
payload = {}
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({})
};
fetch('https://api.turos.app/v1/billing/payment-methods/setup-intent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}