API Method PracticeSave

From Updox API
Revision as of 16:38, 15 November 2013 by Mcarlson (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Creates or Updates a new practice with the given accountId.

Contents

Fields

Please refer to the Interactive API for a list of the fields for this method.

Sample Request and Response

Request

{
   "accountId": "new-account-id",
   "name": "Family Practice",
   "address1": "94 N. High St",
   "address2": "Suite 100",
   "city": "Dublin",
   "state": "OH",
   "postal": "43017",
   "phone": "6145555555",
   "fax": "6145555556",
   "websiteAddress": "practice_website",
   "timeZone": "America/Chicago",
   "directDomain": "new_practice",
   "directAddress": "practice_direct",
   "active": "true",
   "auth": {
       "applicationId": "updox",
       "applicationPassword": "password",
       "accountId": "mikemike",
       "userId": "mikemike"
   }
}

Response

{
   "successful": true,
   "responseMessage": "OK",
   "responseCode": 2000,
   "accountId": "new-account-id",
   "action": "update"
}

Error Codes

In addition to the General Error Set, this method may return:

4110: no practice ID
4140: web address is already taken
4610: direct address error: direct address is taken
4620: direct address error: domain does not match the direct domain for this account
4630: direct address error: account does not have a direct domain configured