API Version 2.0 - how to use the invite code with GET /authentication/setup
Posted: Fri Sep 23, 2022 11:28 pm
Hi,
I tried the following http GET calls but always returned the same error "{"success":false,"type":"error","code":401,"error":"Token not valid"}"
1. use invite in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'invite: <valid_invite_code>'
2. use inviteCode in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'inviteCode: <valid_invite_code>'
3. use Invite in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'Invite: <valid_invite_code>'
4. use InviteCode in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'InviteCode: <valid_invite_code>'
I tried the following http GET calls but always returned the same error "{"success":false,"type":"error","code":401,"error":"Token not valid"}"
1. use invite in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'invite: <valid_invite_code>'
2. use inviteCode in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'inviteCode: <valid_invite_code>'
3. use Invite in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'Invite: <valid_invite_code>'
4. use InviteCode in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'InviteCode: <valid_invite_code>'