Page 1 of 1

API Version 2.0 - how to use the invite code with GET /authentication/setup

Posted: Fri Sep 23, 2022 11:28 pm
by xulei1997
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>'

Re: API Version 2.0 - how to use the invite code with GET /authentication/setup

Posted: Mon Sep 26, 2022 2:51 am
by ashergibson
Hi,

The invite code should be in a header called "code" like this:

curl -X 'GET' \
'https://beds24.com/api/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'code: 123'

You can try it here https://beds24.com/api/v2/#/Authenticat ... tion_setup