{"info":{"_postman_id":"9df7171d-0a7e-40cf-b375-db8828ea3f30","name":"Booking Social API","description":"<html><head></head><body><p>The Booking Social API is organized around REST.</p>\n<p>REST API's are supported from package version Booking Social, v1.60039.</p>\n<p>Setup a connected app and get bearer token by performing basic Salesforce oAuth.\nUse the following documentation to establish connection,\n<a href=\"https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/quickstart_oauth.htm\">https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/quickstart_oauth.htm</a></p>\n<p>Use the Bearer token generated to populate {token} variable used in the documentation across our API guide.</p>\n<h6>Required Variables</h6>\n<li>endpoint: Your Salesforce endpoint</li>\n<li>token: Bearer token</li></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"425785","collectionId":"9df7171d-0a7e-40cf-b375-db8828ea3f30","publishedId":"TzJrCewa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-16T12:20:46.000Z"},"item":[{"name":"Get All Services","id":"fddd47ec-ea5a-4871-b043-818a0dec0c59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"{{endpoint}}/services/data/v49.0/query/?q=SELECT+Id,Name,BKSLB__Description__c,BKSLB__BKSL_Account_Id__c,BKSLB__Access__c,BKSLB__Active__c+from+BKSLB__Service__c+where+BKSLB__Active__c=true","description":"<h6>Objective:</h6>\nTo get all services available on Booking Social using Salesforce Query.\n\n<h6>Advantages:</h6>\nYou can adjust the query parameters and get required results.","urlObject":{"path":["services","data","v49.0","query",""],"host":["{{endpoint}}"],"query":[{"key":"q","value":"SELECT+Id,Name,BKSLB__Description__c,BKSLB__BKSL_Account_Id__c,BKSLB__Access__c,BKSLB__Active__c+from+BKSLB__Service__c+where+BKSLB__Active__c=true"}],"variable":[]}},"response":[],"_postman_id":"fddd47ec-ea5a-4871-b043-818a0dec0c59"},{"name":"Get Services for Business Unit","id":"d12ac699-c106-4e45-8fd7-419732c8f8cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"{{endpoint}}/services/data/v49.0/query/?q=SELECT+Id,Name,BKSLB__Description__c,BKSLB__BKSL_Account_Id__c,BKSLB__Access__c,BKSLB__Active__c+from+BKSLB__Service__c+where+BKSLB__BKSL_Account_Id__c='NYClinic'+and+BKSLB__Active__c=true","description":"<h6>Objective:</h6>\nTo get services for the given business unit available on Booking Social using Salesforce Query.\n\n<h6>Advantages:</h6>\nYou can adjust the query parameters and get required results.","urlObject":{"path":["services","data","v49.0","query",""],"host":["{{endpoint}}"],"query":[{"key":"q","value":"SELECT+Id,Name,BKSLB__Description__c,BKSLB__BKSL_Account_Id__c,BKSLB__Access__c,BKSLB__Active__c+from+BKSLB__Service__c+where+BKSLB__BKSL_Account_Id__c='NYClinic'+and+BKSLB__Active__c=true"}],"variable":[]}},"response":[],"_postman_id":"d12ac699-c106-4e45-8fd7-419732c8f8cc"},{"name":"Get All Locations","id":"6d0925e5-f8bf-40d3-81a4-ee9e7cbc42fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"{{endpoint}}/services/data/v49.0/query/?q=SELECT+Id,Name,BKSLB__Description__c,BKSLB__Account_ID__c,BKSLB__Active__c+from+BKSLB__Location__c+where+BKSLB__Active__c=true","description":"<h6>Objective:</h6>\nTo get all location available on Booking Social using Salesforce Query.\n\n<h6>Advantages:</h6>\nYou can adjust the query parameters and get required results.","urlObject":{"path":["services","data","v49.0","query",""],"host":["{{endpoint}}"],"query":[{"key":"q","value":"SELECT+Id,Name,BKSLB__Description__c,BKSLB__Account_ID__c,BKSLB__Active__c+from+BKSLB__Location__c+where+BKSLB__Active__c=true"}],"variable":[]}},"response":[],"_postman_id":"6d0925e5-f8bf-40d3-81a4-ee9e7cbc42fc"},{"name":"Get Locations for Business Unit","id":"05776858-0fe9-41df-afb2-9b820da3c7ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"{{endpoint}}/services/data/v49.0/query/?q=SELECT+Id,Name,BKSLB__Description__c,BKSLB__Account_ID__c,BKSLB__Active__c+from+BKSLB__Location__c+where+BKSLB__Account_ID__c='NYClinic'+and+BKSLB__Active__c=true","description":"<h6>Objective:</h6>\nTo get all location for the given business unit available on Booking Social using Salesforce Query.\n\n<h6>Advantages:</h6>\nYou can adjust the query parameters and get required results.","urlObject":{"path":["services","data","v49.0","query",""],"host":["{{endpoint}}"],"query":[{"key":"q","value":"SELECT+Id,Name,BKSLB__Description__c,BKSLB__Account_ID__c,BKSLB__Active__c+from+BKSLB__Location__c+where+BKSLB__Account_ID__c='NYClinic'+and+BKSLB__Active__c=true"}],"variable":[]}},"response":[],"_postman_id":"05776858-0fe9-41df-afb2-9b820da3c7ae"},{"name":"Get All Available Services for Location","id":"f3a4335b-5047-4fe2-b3ad-7e7a7a86a4f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"provider\":\"NYClinic\",\r\n    \"locationId\":\"a0I4p000005hSClEAM\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/services/apexrest/BKSLB/bksl/bookservices/getallservices","description":"<h6>Objective:</h6>\nTo get all available services for given location and business unit.\n\n<h6>Parameters:</h6>\n<li>provider : Business unit name</li>\n<li>locationid : Selected location id</li>","urlObject":{"path":["services","apexrest","BKSLB","bksl","bookservices","getallservices"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3a4335b-5047-4fe2-b3ad-7e7a7a86a4f8"},{"name":"Get All Location for Business Unit","id":"b4de8876-bf30-4ebc-ae2c-11a07828bbab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"provider\":\"NYClinic\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/services/apexrest/BKSLB/bksl/bookservices/getalllocations","urlObject":{"path":["services","apexrest","BKSLB","bksl","bookservices","getalllocations"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4de8876-bf30-4ebc-ae2c-11a07828bbab"},{"name":"Get Availability","id":"b8def541-f5c5-4fa6-a377-5dd32bc6f8f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"provider\":\"TestDemo\",\r\n    \"serviceId\":\"a0V5i00000CG8eFEAT\",\r\n    \"locationId\":\"a0O5i000008KVy6EAG\",\r\n    \"selectedDate\": \"29_06_2023\",\r\n    \"numberofdays\": \"2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/services/apexrest/BKSLB/bksl/bookservices/getavailability","description":"<h6>Objective:</h6>\nTo get availability for a given services and business unit.\n\n<h6>Parameters:</h6>\n<ul>\n<li>provider : Business unit name</li>\n<li>serviceId: Selected service id</li>\n<li>locationid : Selected location id</li>\n</ul>","urlObject":{"path":["services","apexrest","BKSLB","bksl","bookservices","getavailability"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8def541-f5c5-4fa6-a377-5dd32bc6f8f9"},{"name":"Get Availability for Date","id":"26177a15-0632-46f0-be95-f49597582efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"provider\":\"BHDEMO\",\r\n    \"serviceId\":\"a0KWF000003TOd72AG\",\r\n    \"selectedDate\": \"17_6_2024\",\r\n    \"numberofdays\": \"2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/services/apexrest/BKSLB/bksl/bookservices/getavailability","description":"<h6>Objective:</h6>\nTo get availability for selected date with given services and business unit.\n\n<h6>Parameters:</h6>\n<ul>\n<li>provider : Business unit name</li>\n<li>serviceId: Selected service id</li>\n<li>locationid : Selected location id</li>\n<li>selectedDate: Date in DD_M_YYYY</li>\n</ul>\nRefer sample for example.","urlObject":{"path":["services","apexrest","BKSLB","bksl","bookservices","getavailability"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"26177a15-0632-46f0-be95-f49597582efb"},{"name":"Book Appointment - Lead","id":"c394b423-53a4-4d20-82ae-7c399bb52af1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n        \"provider\": \"WEBRESULTS\",\r\n        \"appointmentStatus\": \"Pending\",\r\n        \"serviceId\": \"a074p00000Ilz7zAAB\",\r\n        \"expertId\": \"a034p00000H7DgHAAV\",\r\n        \"selectedDate\": \"22_4_2021\",\r\n        \"slot\": \"12_00_12_30\",\r\n        \"locationId\": \"a0I4p000006tZRdEAM\",\r\n        \"objLead\": {\r\n            \"FirstName\": \"K\",\r\n            \"LastName\": \"Ramesh\",\r\n            \"Email\": \"ramesh@bookingsocial.com\",\r\n            \"Phone\": \"12312114\",\r\n            \"Company\": \"N/A\",\r\n            \"LeadSource\": \"Web\"\r\n        },\r\n        \"objServiceReq\": {\r\n            \"BKSLB__Service__c\": \"a074p00000Ilz7zAAB\",\r\n            \"BKSLB__Status__c\": \"Pending\"\r\n        }\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/services/apexrest/BKSLB/bksl/bookservices/bookappointment","description":"<h6>Objective:</h6>\nTo book appointment for lead or contact for a given service by selecting expert.\n\n<p>Refer sample for example.</p>\n","urlObject":{"path":["services","apexrest","BKSLB","bksl","bookservices","bookappointment"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c394b423-53a4-4d20-82ae-7c399bb52af1"},{"name":"Book Appointment - Contact","id":"14b7e02a-8022-4f5c-bc49-b86098e1a3f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n        \"provider\": \"WEBRESULTS\",\r\n        \"appointmentStatus\": \"Pending\",\r\n        \"serviceId\": \"a074p00000Ilz7zAAB\",\r\n        \"expertId\": \"a034p00000H7DgHAAV\",\r\n        \"selectedDate\": \"22_4_2021\",\r\n        \"slot\": \"12_00_12_30\",\r\n        \"locationId\": \"a0I4p000006tZRdEAM\",\r\n        \"objContact\": {\r\n            \"FirstName\": \"K\",\r\n            \"LastName\": \"Ramesh\",\r\n            \"Email\": \"ramesh@bookingsocial.com\",\r\n            \"Phone\": \"12312114\"\r\n        },\r\n        \"objServiceReq\": {\r\n            \"BKSLB__Service__c\": \"a074p00000Ilz7zAAB\",\r\n            \"BKSLB__Status__c\": \"Pending\"\r\n        }\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/services/apexrest/BKSLB/bksl/bookservices/bookappointment","description":"<h6>Objective:</h6>\nTo book appointment for lead or contact for a given service by selecting expert.\n\n<p>Refer sample for example.</p>\n","urlObject":{"path":["services","apexrest","BKSLB","bksl","bookservices","bookappointment"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"14b7e02a-8022-4f5c-bc49-b86098e1a3f4"},{"name":"Book Appointment - Multiple Contacts","id":"a7459590-d594-4c19-a05f-395544713d60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n        \"provider\": \"WEBRESULTS\",\r\n        \"appointmentStatus\": \"Pending\",\r\n        \"serviceId\": \"a074p00000Ilz7zAAB\",\r\n        \"expertId\": \"a034p00000H7DgHAAV\",\r\n        \"selectedDate\": \"22_10_2021\",\r\n        \"slot\": \"12_00_12_30\",\r\n        \"locationId\": \"a0I4p000006tZRdEAM\",\r\n        \"objContact\": {\r\n            \"FirstName\": \"K\",\r\n            \"LastName\": \"Ramesh\",\r\n            \"Email\": \"ramesh@bookingsocial.com\",\r\n            \"Phone\": \"12312114\"\r\n        },\r\n        \"lstContact\": [\r\n        {\r\n            \"FirstName\": \"Durai\",\r\n            \"LastName\": \"S\",\r\n            \"Email\": \"durai@bookingsocial.com\"\r\n        }\r\n        ],\r\n        \"objServiceReq\": {\r\n            \"BKSLB__Service__c\": \"a074p00000Ilz7zAAB\",\r\n            \"BKSLB__Status__c\": \"Pending\"\r\n        }\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/services/apexrest/BKSLB/bksl/bookservices/bookappointment","description":"<h6>Objective:</h6>\nTo book appointment for lead or contact for a given service by selecting expert.\n\n<p>Refer sample for example.</p>\n","urlObject":{"path":["services","apexrest","BKSLB","bksl","bookservices","bookappointment"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7459590-d594-4c19-a05f-395544713d60"}]}