API Method PracticeCreate

From Updox API
Revision as of 13:16, 11 November 2013 by Rhanlon (Talk | contribs)

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

Creates 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": "6147988170",
    "fax": "6144074411",
    "websiteAddress": "practice_website",
    "timeZone": "America/Chicago",
    "directDomain": "new_practice",
    "directAddress": "practice_direct",
    "active": "true",
     "auth": {
        "applicationId": "updox",
        "applicationPassword": "1234567890",
        "accountId": "account",
        "userId": "user"
    }
}

Response

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

Error Codes

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

4110: no practice ID
4130: account already exists
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