SAAM Documentation العربية
API Reference

Authentication

The API uses OAuth 2.0 (authorization code, with PKCE). A hotel user signs in to SAAM and allows your app to act for them. Your app then calls the API with the token it received.

Getting a client

To get a client ID and secret for your app, email the Support Center at [email protected]. Include your app's name and its redirect URL.

The sign-in flow

Step Address
Send the user to sign in and allow access https://saampms.com/o/authorize
Exchange the code for a token POST https://saampms.com/o/token/
Refresh an expired token POST https://saampms.com/o/token/ with grant_type=refresh_token

Then send the token with every call:

curl "https://api.saampms.com/zapier/v2/me" \
  -H "Authorization: Bearer <access token>" \
  -H "Accept: application/json"

Who the token acts as

A token acts as the SAAM login that allowed it, in that login's hotel. It only ever sees that one hotel's data.

To check a connection, call GET /zapier/v2/me. It changes nothing and returns:

Field Meaning
id The login's id
email The login's email
hotel The hotel's name
roles The login's roles

Which roles can use which endpoints

Hotel Admin can use every endpoint. Other logins need one of the roles below:

Endpoints Roles
me Any login
new-reservations, check-ins Front Desk, Reservations, Channel Manager
income, expenses, rooms, currencies, add-income, add-debt Front Desk, Finance
fixed, variable Finance
payroll Finance, HR

A login without the role gets 403, with a message naming the roles that can use the endpoint. For example: "This login cannot use payroll. Connect Zapier with a Hotel Admin, Finance or HR login."