Created a company
Invalid company name
company name '
{- "name": "smartapp.com",
- "metadata": {
- "sales office": true
}, - "locations": [
- {
- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "companyUniqueID": "00000000-0000-0000-0000-000000000000",
- "isHeadquarters": true,
- "street1": "1350 Division Road",
- "street2": "string",
- "city": "West Warwick",
- "state": "Rhode Island",
- "country": "USA",
- "zip": "02818",
- "fax": "555-123-4567",
- "phone": "800-254-4050",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}
}
]
}
{- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "website": "smartapp.com",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "metadata": { },
- "locations": [
- {
- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "companyUniqueID": "00000000-0000-0000-0000-000000000000",
- "isHeadquarters": true,
- "street1": "1350 Division Road",
- "street2": "string",
- "city": "West Warwick",
- "state": "Rhode Island",
- "country": "USA",
- "zip": "02818",
- "fax": "555-123-4567",
- "phone": "800-254-4050",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}
}
]
}
Retrieves the details of an existing company. You need to supply only the unique company identifier that was returned upon company creation
A Company Details object
Invalid companyId or Invalid company
{- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "website": "smartapp.com",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "metadata": { },
- "locations": [
- {
- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "companyUniqueID": "00000000-0000-0000-0000-000000000000",
- "isHeadquarters": true,
- "street1": "1350 Division Road",
- "street2": "string",
- "city": "West Warwick",
- "state": "Rhode Island",
- "country": "USA",
- "zip": "02818",
- "fax": "555-123-4567",
- "phone": "800-254-4050",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}
}
]
}
Retrieves the details of an existing company. You need only supply the company name that was returned upon company creation
A Company Details object
Invalid Company or Invalid company name
{- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "website": "smartapp.com",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "metadata": { },
- "locations": [
- {
- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "companyUniqueID": "00000000-0000-0000-0000-000000000000",
- "isHeadquarters": true,
- "street1": "1350 Division Road",
- "street2": "string",
- "city": "West Warwick",
- "state": "Rhode Island",
- "country": "USA",
- "zip": "02818",
- "fax": "555-123-4567",
- "phone": "800-254-4050",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}
}
]
}
Returns an array of company objects along with the total count of records
{- "totalCount": 0,
- "companies": [
- {
- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "website": "smartapp.com",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "metadata": { },
- "locations": [
- {
- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "companyUniqueID": "00000000-0000-0000-0000-000000000000",
- "isHeadquarters": true,
- "street1": "1350 Division Road",
- "street2": "string",
- "city": "West Warwick",
- "state": "Rhode Island",
- "country": "USA",
- "zip": "02818",
- "fax": "555-123-4567",
- "phone": "800-254-4050",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}
}
]
}
]
}
Updates the specified company by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the website parameter, that becomes the company's website and is used in the future
company was updated
Invalid CompanyId or Invalid Company Name
Compnay name '
{- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "website": "smartapp.com",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "metadata": { },
- "locations": [
- {
- "name": "smartapp.com",
- "uniqueID": "00000000-0000-0000-0000-000000000000",
- "companyUniqueID": "00000000-0000-0000-0000-000000000000",
- "isHeadquarters": true,
- "street1": "1350 Division Road",
- "street2": "string",
- "city": "West Warwick",
- "state": "Rhode Island",
- "country": "USA",
- "zip": "02818",
- "fax": "555-123-4567",
- "phone": "800-254-4050",
- "createdBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}, - "modifiedBy": {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000"
}
}
]
}
Retrieves the detils of members of a specified company. You need to only supply the company identifier that was returned upon company creation.
members listed
Invalid company id
{- "totalCount": 0,
- "members": [
- {
- "email": "jdoe@gmail.com",
- "userID": "00000000-0000-0000-0000-000000000000",
- "globalUserID": "00000000-0000-0000-0000-000000000000",
- "firstName": "John",
- "lastName": "Doe"
}
]
}