Company REST API
Overview
The Company REST API supports retrieving, adding, and updating host company and partner organization data including support for company style sheets and translations.
Full Access admin users with permission to the host company admin page can retrieve the requested information via this REST API.
Administration
The company endpoint is used to get company information, most especially supported languages and currencies, using REST API services.
Get Host Company and All Partner Organizations
Get Host Company and All Partner Organizations | ||
---|---|---|
Description |
This endpoint retrieves a list that includes the host company and all partner organizations. |
|
URI Endpoint |
/rest/v17/companies |
|
Endpoint Query Parameters |
This endpoint supports the following query specifications. For more information, see Manage Collections.
|
|
Endpoint Parameters | None | |
HTTP Method | GET | |
Request Body Parameters |
None |
|
Response Body Parameters | JSON data containing the host company and partner organizations. |
https://site.oracle.com/rest/v17/companies?limit=1&offset=0&totalResults=true&expand=all
{ "items": [{ "name": "system123", "login": "system123", "subscriptionPlan": "FullAccessWithESales", "baseLanguage": { "value": "en", "displayValue": "English" }, "units": { "value": 1, "displayValue": "English" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "dateTimeFormat": { "value": 0, "displayValue": "MM/dd/yyyy h:mm a" }, "timeZone": { "value": "America/Chicago", "displayValue": "(GMT-6:00 GMT-5:00) Chicago" }, "baseCurrency": { "value": "USD", "displayValue": "US Dollar" }, "country": "United States", "email": "system123@yourcompany.com", "supportedLanguages": { "items": [{ "languageCode": "ar_SA", "languageName": "Arabic [Saudi Arabia]", "iso2LanguageCode": "ar", "isBaseLanguage": false, "isEnabled": true } ] }, "supportedCurrencies": { "items": [{ "currencyCode": "ALL", "currencyName": "Lek", "precision": 2, "isBaseCurrency": false, "isEnabled": true }, { "currencyCode": "AUD", "currencyName": "Australian Dollar", "precision": 2, "isBaseCurrency": false, "isEnabled": false } ] }, "access": "Granted", "isEnabledSSO": true, "activeUserLicense": 10, "maximumUsers": 15, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/system123" }, { "rel": "child", "name": "styleSheets", "href": "http://sitename.oracle.com/rest/v17/companies/system123/styleSheets" }, { "rel": "child", "name": "users", "href": "http://sitename.oracle.com/rest/v17/companies/system123/users" } ] } ], "offset": 0, "limit": 1000, "count": 23, "hasMore": false, "links": [{ "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/companies" }, { "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies?offset=0&limit=1000" } ] }
https://site.oracle.com/rest/v17/companies
{ "name": "Vision Services", "login": "visionServices", "baseLanguage": { "value": "en", "displayValue": "English" }, "subscriptionPlan": "BuyAccess" "units": { "value": 1, "displayValue": "English" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "dateTimeFormat": { "value": 0, "displayValue": "MM/dd/yyyy h:mm a" }, "timeZone": { "value": "America/Chicago", "displayValue": "(GMT-6:00 GMT-5:00) Chicago" }, "baseCurrency": { "value": "USD", "displayValue": "US Dollar" }, "state": "California", "country": "United States", "phoneNumber": "9666665351", "email": "company123@yourcompany.com", "faxNumber": "1322-445-32", "address1": "Address 1", "address2": "Address 2", "city": "City", "zip": "32456", "maximumUsers": 15, "supportedCurrencies": { "items": [{ "currencyCode": "ALL", "isEnabled": true }, { "currencyCode": "AUD", "isEnabled": false }, { "currencyCode": "CAD", "isEnabled": false }, { "currencyCode": "CNY", "isEnabled": false }, { "currencyCode": "EUR", "isEnabled": true } ] }, "supportedLanguages": { "items": [{ "languageCode": "ar_SA", "languageName": "Arabic [Saudia Arabia]", "iso2LanguageCode": "ar", "isBaseLanguage": false, "isEnabled": true } ] } }
Get Host Company or Partner Organization Details
Get Host Company or Partner Organization Details | ||
---|---|---|
Description |
This endpoint retrieves details for the host company or partner organization. |
|
URI Endpoint |
/rest/v17/{companyLoginName} |
|
Endpoint Parameters |
companyLoginName |
The host company or partner organization login name |
This endpoint supports the following query specification. For more information, see Manage Collections.
|
||
HTTP Method | GET | |
Request Body Parameters |
None |
|
Response Body Parameters | JSON data for the host company or partner organization object. |
https://site.oracle.com/rest/v17/visionServices
{ "name": "Vision Services", "login": "visionServices", "subscriptionPlan": "FullAccessWithESales", "baseLanguage": { "value": "en", "displayValue": "English" }, "units": { "value": 1, "displayValue": "English" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "dateTimeFormat": { "value": 0, "displayValue": "MM/dd/yyyy h:mm a" }, "timeZone": { "value": "America/Chicago", "displayValue": "(GMT-6:00 GMT-5:00) Chicago" }, "baseCurrency": { "value": "USD", "displayValue": "US Dollar" }, "country": "United States", "email": "noreply@visionservices.com", "supportedLanguages": { "items": [{ "languageCode": "ar_SA", "languageName": "Arabic [Saudi Arabia]", "iso2LanguageCode": "ar", "isBaseLanguage": false, "isEnabled": true } ] }, "supportedCurrencies": { "items": [{ "currencyCode": "ALL", "currencyName": "Lek", "precision": 2, "isBaseCurrency": false, "isEnabled": true }, { "currencyCode": "AUD", "currencyName": "Australian Dollar", "precision": 2, "isBaseCurrency": false, "isEnabled": false } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices" }, { "rel": "child", "name": "styleSheets", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/styleSheets" }, { "rel": "child", "name": "users", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/users" } ] }
Update All Host Company and Partner Organization Details
https://site.oracle.com/rest/v17/companies/visionServices
} "supportedCurrencies": { "items": [{ "currencyCode": "ALL", "isEnabled": true }, { "currencyCode": "AUD", "isEnabled": false }, { "currencyCode": "CAD", "isEnabled": true }, { "currencyCode": "CNY", "isEnabled": true } ] }, "baseCurrency": { "value": "USD", "displayValue": "US Dollar" }, "maximumUsers": 11 }
{ "name": "Vision Services", "login": "visionServices", "baseLanguage": { "value": "en", "displayValue": "English" }, "units": { "value": 1, "displayValue": "English" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "dateTimeFormat": { "value": 0, "displayValue": "MM/dd/yyyy h:mm a" }, "timeZone": { "value": "America/Chicago", "displayValue": "(GMT-6:00 GMT-5:00) Chicago" }, "baseCurrency": { "value": "USD", "displayValue": "US Dollar" }, "country": "United States", "email": "noreply@yourcompany.com", "supportedLanguages": { "items": [{ "languageCode": "ar_SA", "languageName": "Arabic [Saudi Arabia]", "iso2LanguageCode": "ar", "isBaseLanguage": false, "isEnabled": true }, { "languageCode": "zh_CN", "languageName": "Chinese (Simplified) [China]", "iso2LanguageCode": "zh", "isBaseLanguage": false, "isEnabled": true }, { "languageCode": "zh_TW", "languageName": "Chinese (Traditional) [Taiwan]", "iso2LanguageCode": "zh", "isBaseLanguage": false, "isEnabled": true }, { "languageCode": "cs_CZ", "languageName": "Czech [Czech Republic]", "iso2LanguageCode": "cs", "isBaseLanguage": false, "isEnabled": true } ] }, "supportedCurrencies": { "items": [{ "currencyCode": "ALL", "currencyName": "Lek", "precision": 2, "isBaseCurrency": false, "isEnabled": true }, { "currencyCode": "AUD", "currencyName": "Australian Dollar", "precision": 2, "isBaseCurrency": false, "isEnabled": false } ]"maximumUsers": 11 }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices" }, { "rel": "child", "name": "styleSheets", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/styleSheets" }, { "rel": "child", "name": "users", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/users" } ] }
Update Specific Host Company and Partner Organization Details
https://site.oracle.com/rest/v17/companies/visionServices
{ "maximumUser": 20, "access": "denied" }
{ "name": "Vision Services", "login": "visionServices", "subscriptionPlan": "FullAccessWithESales", "baseLanguage": { "value": "en", "displayValue": "English" }, "units": { "value": 1, "displayValue": "English" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "dateTimeFormat": { "value": 0, "displayValue": "MM/dd/yyyy h:mm a" }, "timeZone": { "value": "America/Chicago", "displayValue": "(GMT-6:00 GMT-5:00) Chicago" }, "baseCurrency": { "value": "USD", "displayValue": "US Dollar" }, "country": "United States", "email": "noreply@visionservices.com", "maximumUser": 20, "access": "denied" "supportedLanguages": { "items": [{ "languageCode": "ar_SA", "languageName": "Arabic [Saudi Arabia]", "iso2LanguageCode": "ar", "isBaseLanguage": false, "isEnabled": true } ] }, "supportedCurrencies": { "items": [{ "currencyCode": "ALL", "currencyName": "Lek", "precision": 2, "isBaseCurrency": false, "isEnabled": true }, { "currencyCode": "AUD", "currencyName": "Australian Dollar", "precision": 2, "isBaseCurrency": false, "isEnabled": false } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices" }, { "rel": "child", "name": "styleSheets", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/styleSheets" }, { "rel": "child", "name": "users", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/users" } ] }
Bulk Update Partner Organization and/or Host Company Details
https://site.oracle.com/rest/v17/companies
{ "companies": [{ "login": "a_Co1BM", "maximumUser": 20, "access": "denied" }, { "maximumUser": 10, "login": "a_Co2BM" "enableSSO": false } ] }
{ "items": [{ "name": "a_Co1BM", "login": "A1BM", "subscriptionPlan": "FullAccessWithESales", "baseLanguage": { "value": "en", "displayValue": "English" }, "units": { "value": 1, "displayValue": "English" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "dateTimeFormat": { "value": 0, "displayValue": "MM/dd/yyyy h:mm a" }, "timeZone": { "value": "America/Chicago", "displayValue": "(GMT-6:00 GMT-5:00) Chicago" }, "baseCurrency": { "value": "USD", "displayValue": "US Dollar" }, "country": "United States", "email": "noreply@bigmachines.com", "enabledForSSO": true, "activeLicensedUsers": 145, "access": "Denied", "maximumUsers": 18 }, { "name": "po5", "login": "po5", "subscriptionPlan": "BuyAccess", "baseLanguage": { "value": "en", "displayValue": "English" }, "units": { "value": 2, "displayValue": "Metric" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "dateTimeFormat": { "value": 2, "displayValue": "dd/MM/yyyy HH:mm" }, "timeZone": { "value": "America/Los_Angeles", "displayValue": "(GMT-8:00 GMT-7:00) Los Angeles" }, "baseCurrency": { "value": "CNY", "displayValue": "Chinese Yuan Renminbi" }, "state": "CA", "phoneNumber": "650-403-6325", "email": "junk@bigmachines.com", "faxNumber": "650-403-6325", "address1": "5 Waters Park Dr", "address2": "Po5 suite 240-5", "city": "SanMateo", "zip": "94403", "access": "Granted", "maximumUsers": 18, "enabledForSSO": false, .... } ] }
Export Details for Multiple Partner Organizations
Export Details for Multiple Partner Organizations | ||
---|---|---|
Description |
This endpoint exports details for multiple partner organizations. This operation triggers a task to return a list of partner organizations as a zip file. |
|
URI Endpoint |
/rest/v17/companies/actions/bulkExport |
|
Endpoint Parameters | None | |
HTTP Method | POST | |
Request Body Parameters |
fileFormat |
(Optional) The download file format. Allowed values: |
scheduledTime |
(Optional) The time to schedule the export task |
|
This endpoint supports the query specifications. For more information, see Manage Collections. |
||
Response Body Parameters |
taskId |
The status log task ID |
links |
Links to the related objects |
https://site.oracle.com/rest/v17/companies/actions/bulkExport
{ "fileFormat": "csv", "scheduledTime": "2023-12-11T05:50:00Z", "criteria": { "q": "{'login' :{'$like':'%po%'}}" } }
{ "taskId": 3022163950, "links": [{ "rel": "related", "href": "https://sitename.oracle.com/rest/v17/tasks/3022163950" } ] }
Import Details for Multiple Partner Organizations
https://site.oracle.com/rest/v17/companies/actions/bulkImport
{ "taskId": 3022163950, "links": [{ "rel": "related", "href": "https://sitename.oracle.com/rest/v17/tasks/3022163950" } ] }
Company Style Sheet Web Services
Get All Style Sheets for a Partner Organization
https://site.oracle.com/rest/v17/companies/visionServices/styleSheets
{ "items": [{ "name": "alternate", "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/styleSheets/alternate" } ] }, { "name": "jet", "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/styleSheets/jet" } ] } ], "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/styleSheets" } ] }
Get a Style Sheet for a Partner Organization
https://site.oracle.com/rest/v17/companies/visionServices/styleSheets/alternate
Create a Partner Organization Style Sheet
https://site.oracle.com/rest/v17/companies/visionServices/styleSheets
{ "name": "alternate", "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/styleSheets/alternate" } ]
Update Partner Organization Style Sheet
https://site.oracle.com/rest/v17/companies/visionServices/styleSheets/alternate
"name": "alternate", "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/styleSheets/alternate" } ] }
Delete a Style Sheet for a Partner Organization
https://site.oracle.com/rest/v17/companies/visionServices/styleSheets/alternate
Company Translation Web Services
Get All Translation Details for Host Company or a Partner Organization
https://site.oracle.com/rest/v17/companies/visionServices/translations
{ "items": [{ "name": "A1BM1", "language": { "languageCode": "en", "languageNumber": -1, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v17/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/languages/en" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations/en" } ] }, { "name": "DE A1BM1", "language": { "languageCode": "de", "languageNumber": 0, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v17/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/languages/de" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations/de" } ] }, { "name": "ZH CN A1BM1", "language": { "languageCode": "zh_CN", "languageNumber": 5, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v17/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/languages/zh_CN" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations/zh_CN" } ] } ], "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations" } ] }
Get Specific Translation Details for Host Company or a Partner Organization
Get Specific Translation Details for Host Company or a Partner Organization | ||
---|---|---|
Description |
This endpoint retrieves specific translation details for a host company or partner organization. |
|
URI Endpoint |
/rest/v17/companies/{companyLoginName}/translations/{languageCode} |
|
Endpoint Parameters |
companyLoginName |
The partner organization login name |
languageCode |
The unique language code value to specify the language Refer to Supported Languages to identify language code values. |
|
HTTP Method | GET | |
Request Body Parameters | None | |
Response Body Parameters | JSON data containing translation name, translation language and associated links for the host company or partner organization. |
https://site.oracle.com/rest/v17/companies/visionServices/translations/zh_CN
{ "name": "Vision Services zh_CN", "language": { "languageNumber": 5, "languageCode": "zh_CN", "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v17/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/languages/zh_CN" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations/zh_CN" } ] }
Add Translations for Host Company or a Partner Organization
Add Translations for Host Company or a Partner Organization | ||
---|---|---|
Description |
This endpoint adds translations to a host company or partner organization. |
|
URI Endpoint |
/rest/v17/companies/{companyLoginName}/translations |
|
Endpoint Parameters |
companyLoginName |
The login name of the host company or partner organization |
HTTP Method | POST | |
Request Body Parameters |
name |
(Required) The translation name of the host company or partner organization |
languageCode |
(Required) The unique language code value to specify the language Refer to Supported Languages to identify language code values. |
|
Response Body Parameters | JSON data containing translation name, translation language, and associated links for the host company or partner organization. |
https://site.oracle.com/rest/v17/companies/visionServices/translations
{ "name": "Fr Company visionServices", "language": { "languageNumber": 1, "languageCode": "fr" } }
{ "name": "Fr Company visionServices", "language": { "languageNumber": 1, "languageCode": "fr", "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v17/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/languages/fr" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations" } ] }
Update Host Company or Partner Organization Translations
Update Host Company or Partner Organization Translations | ||
---|---|---|
Description |
This endpoint replace (add, remove, or replace) the entire host company or partner organization translations with the translation values specified in the web services request. |
|
URI Endpoint |
/rest/v17/companies/{companyLoginName}/translations |
|
Endpoint Parameters |
companyLoginName |
The login name of the host company or partner organization |
HTTP Method | PATCH | |
Request Body Parameters | The array of translation patch operations | |
op |
The operation to be performed. Allowed values: |
|
path |
The JSON pointer string for "path" property |
|
value |
The target value |
|
name |
(Required for add and replace operations) The translation name of the host company or partner organization |
|
languageCode |
(Required for add operation) The unique language code value to specify the language Refer to Supported Languages to identify language code values. |
|
Response Body Parameters | JSON data containing translation name, translation language, and associated links for the host company or partner organization. |
https://site.oracle.com/rest/v17/companies/visionServices/translations
[{ "op": "add", "path": "/", "value": { "name": "Czech Company visionServices", "language": { "languageCode": "cs_CZ" } } }, { "op": "replace", "path": "/de", "value": { "name": "Company visionServices Update" } }, { "op": "remove", "path": "/da_DK" } ]
{ "items": [{ "name": "A1BM1", "language": { "languageCode": "en", "languageNumber": -1, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v17/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/languages/en" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v14/companies/visionServices/translations/en" } ] }, { "name": "Company visionServices Update", "language": { "languageCode": "de", "languageNumber": 0, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v17/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/languages/de" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations/de" } ] }, { "name": "Czech Company visionServices", "language": { "languageCode": "cs_CZ", "languageNumber": 7, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v17/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v17/languages/cs_CZ" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations/cs_CZ" } ] } ], "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v17/companies/visionServices/translations" } ] }
Delete a Translation for a Host Company or Partner Organization
Delete a Translation for a Host Company or Partner Organization | ||
---|---|---|
Description |
This endpoint deletes a translation for a specific language for a host company or partner organization. |
|
URI Endpoint |
/rest/v17/companies/{companyLoginName}/translations/{languageCode} |
|
Endpoint Parameters |
companyLoginName |
The login name of the host company or partner organization |
languageCode |
The unique language code value to specify the language Refer to Supported Languages to identify language code values. |
|
HTTP Method | DELETE | |
Request Body Parameters | None | |
Response Body Parameters | HTTP Code 204 |
https://site.oracle.com/rest/v17/companies/visionServices/translations/cs_CN