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

Develper issues when using the Beds24 APi.
Post Reply
xulei1997
Posts: 3
Joined: Fri Sep 23, 2022 10:35 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>'
ashergibson
Posts: 9
Joined: Thu Jun 25, 2020 2:20 am

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
Post Reply