const url = 'https://api.hostedez.com/v1/billing/checkout/complete';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'__Secure-better-auth.session_token': '<value>'
},
body: JSON.stringify({fp: {}, setupIntentId: 'string', turnstileToken: 'string'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));