Register Client and get the Authorization code
To make calls to the Zoho Bookings API, you must first register your application with Zoho.
To register:
1. Go to https://api-console.zoho.com. Click GET STARTED.
2. From the list of client types, click CREATE NOW under Self Client.
3. Click CREATE.
4. Click OK on the confirmation pop-up.
The Client ID and Client Secret are generated as soon as the Self Client is created. Later on, you will copy them using the clipboard icon and use them while registering the application.
Generate the authorization code
Let's generate the authorization code so we can obtain the access and refresh tokens.
This is a one-time process, provided you generate the access and refresh tokens before the authorization code expires.
Click the Generate Code tab.
Type the Scope as zohobookings.data.CREATE, choose a duration, provide a description, and click CREATE.
3. Copy the generated code by clicking COPY.
4. Click DOWNLOAD on the pop-up that appears. The params are downloaded by default as "self_client.json" which can be used to initiate the request later on.
Proceed to Step 2.