{"info":{"_postman_id":"db5beb63-a732-ee59-02fe-3c49253961da","name":"BHC Raintree Integration API (ProPT only)","description":"<html><head></head><body><p>BetterPT Raintree Integration Specification, v0.2.</p>\n<p><strong>Please Note</strong>: This is the original Raintree Integration with ProPT and is <strong>no longer active.</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2134451","collectionId":"db5beb63-a732-ee59-02fe-3c49253961da","publishedId":"RVg57STy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-03T23:21:06.000Z"},"item":[{"name":"Integration Basic Auth","id":"1a9eff01-8f7c-d928-7980-efdc3504d8c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"username":"<username>","password":"<password>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"username\": \"\",\r\n\"password\": \"\"\r\n}"},"url":"https://integration-api.emr.com/live/betterpt/auth","description":"<p>Integration API Basic Auth Request.</p>\n","urlObject":{"protocol":"https","path":["live","betterpt","auth"],"host":["integration-api","emr","com"],"query":[],"variable":[]}},"response":[{"id":"a4f3ac8d-0090-d1b1-c2f4-b4c43425de7a","name":"Integration Basic Auth","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"username\": \"betterwebapi\",\r\n\"password\": \"FYSta3blKjOv0wdIlq\"\r\n}"},"url":"https://integration-api.emr.com/live/BetterPT/auth"},"status":"OK","code":200,"_postman_previewlanguage":"raw","header":[{"key":"Content-Length","value":"239","name":"Content-Length","description":""},{"key":"Content-Type","value":"object","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 28 Feb 2018 01:02:04 GMT","name":"Date","description":""},{"key":"Referrer-Policy","value":"no-referrer","name":"Referrer-Policy","description":""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains","name":"Strict-Transport-Security","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":""},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":""}],"cookie":[{"expires":"Fri Feb 11 2028 16:35:44 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT/auth","secure":true,"value":"558AA9A7B616C22AB16ED32742E3520968FA4982A2148C7D410E144777BCE4F7","key":"bid"},{"expires":"Fri Feb 11 2028 16:42:03 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT","secure":true,"value":"A862EE0A825CD99B1810558D6E7F8C8BF7151D3E67A4386502DEA0D7DC1F0D12","key":"bid"}],"responseTime":"1465","body":"{\"Token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJSYWludHJlZSBXZWIgQVBJIiwiaWF0IjoxNTE5Nzc5NzI0LCJleHAiOjE1MTk3ODAzMjQsInVzciI6ImJldHRlcndlYmFwaSJ9.bVp64qdbPRJZjHpSTm32cFcGYfIpDq3aLDTEf3EEjw8\",\"Expires\":\"2018-02-28T01:12:04+00:00\"}"}],"_postman_id":"1a9eff01-8f7c-d928-7980-efdc3504d8c7"},{"name":"Integration Scheduling","id":"cd6fa5c5-1b1b-ea89-387f-8742990301eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n   \"model\": \"scheduling\",\n   \"context\": \"availableSlots\",\n   \"eventTime\": \"2017-12-04T06:36:52.474Z\",\n   \"customerId\": \"PROPT\",\n   \"version\": \"0.1\"\n  }, \n  \"availability\": {\n    \"startTime\": \"2017-12-04T06:36:52.474Z\",\n    \"endTime\": \"2017-12-18T06:36:52.474Z\",\n    \"location\": {\n      \"id\": \"00001\"\n    }\n  }\n}\n"},"url":"https://integration-api.emr.com/live/betterpt","description":"<p>Returns availabilities for a provider within a specified date range.</p>\n","urlObject":{"protocol":"https","path":["live","betterpt"],"host":["integration-api","emr","com"],"query":[],"variable":[]}},"response":[{"id":"245f4b28-eb0e-0d05-ff7b-d844cd8aa058","name":"Integration Scheduling","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n   \"model\": \"scheduling\",\n   \"context\": \"availableSlots\",\n   \"eventTime\": \"2017-12-04T06:36:52.474Z\",\n   \"customerId\": \"COMPANYNAME\",\n   \"version\": \"0.1\"\n  }, \n  \"availability\": {\n    \"startTime\": \"2017-12-04T06:36:52.474Z\",\n    \"endTime\": \"2017-12-18T06:36:52.474Z\",\n    \"provider\": {\n      \"id\": \"HACA\"\n    }\n  }\n}\n"},"url":"https://integration-api.emr.com/live/BetterPT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"1628","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 28 Feb 2018 01:05:24 GMT","name":"Date","description":""},{"key":"Referrer-Policy","value":"no-referrer","name":"Referrer-Policy","description":""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains","name":"Strict-Transport-Security","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":""},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":""}],"cookie":[{"expires":"Fri Feb 11 2028 16:35:44 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT/auth","secure":true,"value":"558AA9A7B616C22AB16ED32742E3520968FA4982A2148C7D410E144777BCE4F7","key":"bid"},{"expires":"Fri Feb 11 2028 16:42:03 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT","secure":true,"value":"A862EE0A825CD99B1810558D6E7F8C8BF7151D3E67A4386502DEA0D7DC1F0D12","key":"bid"}],"responseTime":"8621","body":"{\n    \"success\": true,\n    \"status\": \"200\",\n    \"metadata\": {\n        \"model\": \"scheduling\",\n        \"context\": \"availableSlots\",\n        \"eventTime\": \"2018-02-28T01:05:24+00:00\",\n        \"customerId\": \"COMPANYNAME\",\n        \"version\": \"0.1\"\n    },\n    \"availabilities\": [\n        {\n            \"startTime\": \"2017-12-04T12:00:00+00:00\",\n            \"duration\": \"15\",\n            \"provider\": {\n                \"id\": \"HACA\",\n                \"firstName\": \"Han Thu\",\n                \"lastName\": \"Cao\"\n            },\n            \"location\": {\n                \"id\": \"00001\",\n                \"name\": \"Queens-Professional PT\"\n            }\n        },\n        {\n            \"startTime\": \"2017-12-06T12:00:00+00:00\",\n            \"duration\": \"15\",\n            \"provider\": {\n                \"id\": \"HACA\",\n                \"firstName\": \"Han Thu\",\n                \"lastName\": \"Cao\"\n            },\n            \"location\": {\n                \"id\": \"00001\",\n                \"name\": \"Queens-Professional PT\"\n            }\n        },\n        {\n            \"startTime\": \"2017-12-08T12:00:00+00:00\",\n            \"duration\": \"15\",\n            \"provider\": {\n                \"id\": \"HACA\",\n                \"firstName\": \"Han Thu\",\n                \"lastName\": \"Cao\"\n            },\n            \"location\": {\n                \"id\": \"00001\",\n                \"name\": \"Queens-Professional PT\"\n            }\n        },\n        {\n            \"startTime\": \"2017-12-11T12:00:00+00:00\",\n            \"duration\": \"15\",\n            \"provider\": {\n                \"id\": \"HACA\",\n                \"firstName\": \"Han Thu\",\n                \"lastName\": \"Cao\"\n            },\n            \"location\": {\n                \"id\": \"00001\",\n                \"name\": \"Queens-Professional PT\"\n            }\n        },\n        {\n            \"startTime\": \"2017-12-13T12:00:00+00:00\",\n            \"duration\": \"15\",\n            \"provider\": {\n                \"id\": \"HACA\",\n                \"firstName\": \"Han Thu\",\n                \"lastName\": \"Cao\"\n            },\n            \"location\": {\n                \"id\": \"00001\",\n                \"name\": \"Queens-Professional PT\"\n            }\n        },\n        {\n            \"startTime\": \"2017-12-14T12:00:00+00:00\",\n            \"duration\": \"15\",\n            \"provider\": {\n                \"id\": \"HACA\",\n                \"firstName\": \"Han Thu\",\n                \"lastName\": \"Cao\"\n            },\n            \"location\": {\n                \"id\": \"00001\",\n                \"name\": \"Queens-Professional PT\"\n            }\n        },\n        {\n            \"startTime\": \"2017-12-15T12:00:00+00:00\",\n            \"duration\": \"15\",\n            \"provider\": {\n                \"id\": \"HACA\",\n                \"firstName\": \"Han Thu\",\n                \"lastName\": \"Cao\"\n            },\n            \"location\": {\n                \"id\": \"00001\",\n                \"name\": \"Queens-Professional PT\"\n            }\n        },\n        {\n            \"startTime\": \"2017-12-18T12:00:00+00:00\",\n            \"duration\": \"15\",\n            \"provider\": {\n                \"id\": \"HACA\",\n                \"firstName\": \"Han Thu\",\n                \"lastName\": \"Cao\"\n            },\n            \"location\": {\n                \"id\": \"00001\",\n                \"name\": \"Queens-Professional PT\"\n            }\n        }\n    ]\n}"}],"_postman_id":"cd6fa5c5-1b1b-ea89-387f-8742990301eb"},{"name":"Integration Locations","id":"084b3b10-8912-c7a2-8f85-7e76366d86ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n   \"model\": \"locations\",\n   \"context\": \"allLocations\",\n   \"eventTime\": \"2017-12-04T06:36:52.474Z\",\n   \"customerId\": \"PROPT\",\n   \"version\": \"0.1\"\n  }\n}\n"},"url":"https://integration-api.emr.com/live/betterpt","description":"<p>Fetches all locations (clinics).</p>\n","urlObject":{"protocol":"https","path":["live","betterpt"],"host":["integration-api","emr","com"],"query":[],"variable":[]}},"response":[{"id":"131b2c60-c777-1702-c824-88f5d771759b","name":"Integration Locations","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n   \"model\": \"locations\",\n   \"context\": \"allLocations\",\n   \"eventTime\": \"2017-12-04T06:36:52.474Z\",\n   \"customerId\": \"COMPANYNAME\",\n   \"version\": \"0.1\"\n  }\n}\n"},"url":"https://integration-api.emr.com/live/BetterPT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"349","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 28 Feb 2018 01:06:45 GMT","name":"Date","description":""},{"key":"Referrer-Policy","value":"no-referrer","name":"Referrer-Policy","description":""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains","name":"Strict-Transport-Security","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":""},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":""}],"cookie":[{"expires":"Fri Feb 11 2028 16:35:44 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT/auth","secure":true,"value":"558AA9A7B616C22AB16ED32742E3520968FA4982A2148C7D410E144777BCE4F7","key":"bid"},{"expires":"Fri Feb 11 2028 16:42:03 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT","secure":true,"value":"A862EE0A825CD99B1810558D6E7F8C8BF7151D3E67A4386502DEA0D7DC1F0D12","key":"bid"}],"responseTime":"1222","body":"{\n    \"success\": true,\n    \"status\": \"200\",\n    \"metadata\": {\n        \"model\": \"locations\",\n        \"context\": \"allLocations\",\n        \"eventTime\": \"2018-02-28T01:06:45+00:00\",\n        \"customerId\": \"COMPANYNAME\",\n        \"version\": \"0.1\"\n    },\n    \"result\": [\n        {\n            \"id\": \"00001\",\n            \"name\": \"Queens-Professional PT\",\n            \"address\": {\n                \"lines\": [\n                    \"21-42 Utopia Parkway\"\n                ]\n            },\n            \"city\": \"Whitestone\",\n            \"state\": \"NY\",\n            \"zipcode\": \"113574142\",\n            \"phone\": \"(718) 767-0610\"\n        }\n    ]\n}"}],"_postman_id":"084b3b10-8912-c7a2-8f85-7e76366d86ab"},{"name":"Integration Providers","id":"c0207b9b-7baf-1ae6-3d71-2f6c52f0325c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n   \"model\": \"providers\",\n   \"context\": \"allProviders\",\n   \"eventTime\": \"2017-12-04T06:36:52.474Z\",\n   \"customerId\": \"PROPT\",\n   \"version\": \"0.1\"\n  }\n}\n"},"url":"https://integration-api.emr.com/live/betterpt","description":"<p>Fetches all providers (therapists) associated with the company.</p>\n","urlObject":{"protocol":"https","path":["live","betterpt"],"host":["integration-api","emr","com"],"query":[],"variable":[]}},"response":[{"id":"241355a0-1e39-8b29-9285-d933bfbe3256","name":"Integration Providers","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n   \"model\": \"providers\",\n   \"context\": \"allProviders\",\n   \"eventTime\": \"2017-12-04T06:36:52.474Z\",\n   \"customerId\": \"COMPANYNAME\",\n   \"version\": \"0.1\"\n  }\n}\n"},"url":"https://integration-api.betterpt.com/live/BetterPT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"84110","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 28 Feb 2018 01:07:55 GMT","name":"Date","description":""},{"key":"Referrer-Policy","value":"no-referrer","name":"Referrer-Policy","description":""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains","name":"Strict-Transport-Security","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":""},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":""}],"cookie":[{"expires":"Fri Feb 11 2028 16:35:44 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT/auth","secure":true,"value":"558AA9A7B616C22AB16ED32742E3520968FA4982A2148C7D410E144777BCE4F7","key":"bid"},{"expires":"Fri Feb 11 2028 16:42:03 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT","secure":true,"value":"A862EE0A825CD99B1810558D6E7F8C8BF7151D3E67A4386502DEA0D7DC1F0D12","key":"bid"}],"responseTime":"3454","body":"{\n    \"success\": true,\n    \"status\": \"200\",\n    \"metadata\": {\n        \"model\": \"providers\",\n        \"context\": \"allProviders\",\n        \"eventTime\": \"2018-02-28T01:07:52+00:00\",\n        \"customerId\": \"COMPANYNAME\",\n        \"version\": \"0.1\"\n    },\n    \"result\": [\n        {\n            \"id\": \"-COTA\",\n            \"firstName\": \"Cara\",\n            \"lastName\": \"Assistant\",\n            \"email\": \"\"\n        },\n        {\n            \"id\": \"-OT\",\n            \"firstName\": \"Olivia\",\n            \"lastName\": \"Therapist\",\n            \"email\": \"\"\n        },\n        {\n            \"id\": \"-PT\",\n            \"firstName\": \"Patty\",\n            \"lastName\": \"Therapist\",\n            \"email\": \"\"\n        },\n        {\n            \"id\": \"-PTA\",\n            \"firstName\": \"Phil\",\n            \"lastName\": \"Assistant\",\n            \"email\": \"\"\n        }\n    ]\n}"},{"id":"632ed78b-de0f-0384-11e1-df3c8042d8bb","name":"Raintree Providers","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"metadata\": {\n   \"model\": \"providers\",\n   \"context\": \"allProviders\",\n   \"eventTime\": \"2017-12-04T06:36:52.474Z\",\n   \"customerId\": \"COMPANYNAME\",\n   \"version\": \"0.1\"\n  }\n}\n"},"url":"https://integration-api.betterpt.com/live/BetterPT"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"84110","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 28 Feb 2018 01:07:55 GMT","name":"Date","description":""},{"key":"Referrer-Policy","value":"no-referrer","name":"Referrer-Policy","description":""},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains","name":"Strict-Transport-Security","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"DENY","name":"X-Frame-Options","description":""},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":""}],"cookie":[{"expires":"Fri Feb 11 2028 16:35:44 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT/auth","secure":true,"value":"558AA9A7B616C22AB16ED32742E3520968FA4982A2148C7D410E144777BCE4F7","key":"bid"},{"expires":"Fri Feb 11 2028 16:42:03 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"professionalpt.raintreeinc.com","path":"/live/BetterPT","secure":true,"value":"A862EE0A825CD99B1810558D6E7F8C8BF7151D3E67A4386502DEA0D7DC1F0D12","key":"bid"}],"responseTime":"3454","body":"{\n    \"success\": true,\n    \"status\": \"200\",\n    \"metadata\": {\n        \"model\": \"providers\",\n        \"context\": \"allProviders\",\n        \"eventTime\": \"2018-02-28T01:07:52+00:00\",\n        \"customerId\": \"COMPANYNAME\",\n        \"version\": \"0.1\"\n    },\n    \"result\": [\n        {\n            \"id\": \"-COTA\",\n            \"firstName\": \"Cara\",\n            \"lastName\": \"Assistant\",\n            \"email\": \"\"\n        },\n        {\n            \"id\": \"-OT\",\n            \"firstName\": \"Olivia\",\n            \"lastName\": \"Therapist\",\n            \"email\": \"\"\n        },\n        {\n            \"id\": \"-PT\",\n            \"firstName\": \"Patty\",\n            \"lastName\": \"Therapist\",\n            \"email\": \"\"\n        },\n        {\n            \"id\": \"-ST\",\n            \"firstName\": \"Stacey\",\n            \"lastName\": \"Therapist\",\n            \"email\": \"\"\n        }\n    ]\n}"}],"_postman_id":"c0207b9b-7baf-1ae6-3d71-2f6c52f0325c"}],"auth":{"type":"bearer","bearer":{"token":"<token>"}},"event":[{"listen":"prerequest","script":{"id":"2a58819f-91a0-43f1-8fac-3506a032e0b9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ee57a92f-1cb9-4ead-b9fa-fd61a6d61123","type":"text/javascript","exec":[""]}}]}