You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
ConnectWise API's base path can and will change. Furthermore, CW Manage partners may be on different codebase (even if it cloud hosted). Therefore, the best practice is to build the basePath after retrieving the Codebase. This can be queried via https://{host}/login/companyinfo/{company-name}.
Acme Corporation (Fake) Example
letcompany="acmecorp";lethost="api-na.myconnectwise.net";// get request: `https://api-na.myconnectwise.net/login/companyinfo/acmecorp`letinfo=getCWManageCompanyInfo(host,company)console.log(info);// > { // > "CompanyName":"Acme Corporation",// > "Codebase":"v2017_6/", <---------------- this is a legit codebase// > "VersionCode":"v2017.6",// > "VersionNumber":"v4.6.50810",// > "CompanyID":"acmecorp",// > "IsCloud":true,// > "SiteUrl":"api-na.myconnectwise.net",// > "LicenseBits":{// > }// > }letbasePath=`https://${host}/${info.Codebase}apis/3.0`;console.log(basePath);// > https://api-na.myconnectwise.net/v2017_6/apis/3.0
ConnectWise API's base path can and will change. Furthermore, CW Manage partners may be on different codebase (even if it cloud hosted). Therefore, the best practice is to build the
basePathafter retrieving theCodebase. This can be queried viahttps://{host}/login/companyinfo/{company-name}.Acme Corporation (Fake) Example