Create Partner Oraganization

post

/rest/v16/companies

This endpoint creates a partner organization with the information provided in the request.

Request

Supported Media Types
Body ()
Root Schema : Company Details
Type: object
Title: Company Details
Show Source
Nested Schema : Currency
Type: object
Title: Currency
Base currency of the company. Value holds the currency code.
Show Source
Nested Schema : Base Language
Type: object
Title: Base Language
Base language of the company. Value holds the language code.
Show Source
Nested Schema : Date/Time Format
Type: object
Title: Date/Time Format
Company preferred date time format.
Show Source
Nested Schema : Number Format
Type: object
Title: Number Format
Preferred number format of the company.
Show Source
Nested Schema : Supported Currencies
Type: object
Title: Supported Currencies
Currencies that are supported by the company.
Show Source
Nested Schema : Supported Languages
Type: object
Title: Supported Languages
Languages that are supported by the company (supported languages are mandatory only for host company updates).
Show Source
Nested Schema : Time Zone
Type: object
Title: Time Zone
Company preferred timezone.
Show Source
Nested Schema : Units
Type: object
Title: Units
Company preferred units.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Currency Details
Type: object
Title: Currency Details
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : language
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

Company details.
Body ()
Root Schema : Company Details
Type: object
Title: Company Details
Show Source
Nested Schema : Currency
Type: object
Title: Currency
Base currency of the company. Value holds currency code.
Show Source
Nested Schema : Base Language
Type: object
Title: Base Language
Base language of the company. Value holds the language code.
Show Source
Nested Schema : Date/Time Format
Type: object
Title: Date/Time Format
Company preferred date time format.
Show Source
Nested Schema : Number Format
Type: object
Title: Number Format
Preferred number format of the company.
Show Source
Nested Schema : Style Sheets
Type: object
Title: Style Sheets
StyleSheets of the company.
Show Source
Nested Schema : Supported Currencies
Type: object
Title: Supported Currencies
Currencies that are supported by the company.
Show Source
Nested Schema : Supported Languages
Type: object
Title: Supported Languages
Languages that are supported by the company (supported languages are mandatory only for host company updates).
Show Source
Nested Schema : TimeZone of the company
Type: object
Title: TimeZone of the company
Company preferred timezone.
Show Source
Nested Schema : Translations
Type: object
Title: Translations
Translations of the company.
Show Source
Nested Schema : Units
Type: object
Title: Units
Company preferred units.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : companyStyleSheet-collection
Type: object
Show Source
Nested Schema : Style Sheet Collection
Type: array
Title: Style Sheet Collection
List of style sheets.
Show Source
Nested Schema : Style Sheet
Type: object
Title: Style Sheet
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Currency Details
Type: object
Title: Currency Details
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : language
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Company Translations
Type: object
Title: Company Translations
Show Source
Nested Schema : Company Translations List
Type: array
Title: Company Translations List
Show Source
Nested Schema : Company Translation
Type: object
Title: Company Translation
Show Source
Nested Schema : Translation Language
Type: object
Title: Translation Language
Show Source
Back to Top

Examples

The following example shows how to create a partner organization by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/companies

Request Body Sample

{
  "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 [Saudi      Arabia]",
        "iso2LanguageCode": "ar",
        "isBaseLanguage": false,
        "isEnabled": true
      }
    ]
  }
}
Back to Top