Companies

This endpoint updates a company by ID.

put/v2/companies/{companyId}

Request

  • Base URL
    https://api-ext-sboxmeta.partners.spotnana.com
  • Auth
    HTTP bearer

Path parameters

companyIdstring uuid required

Identifier for company.

Request body

namestring required

Company name

emailDomainsstring[]

List of the company email domains

billingCurrencystring required

Billing currency of the company

isSelfSignUpEnabledboolean

Boolean to show if company has self sign up enabled.

isActiveboolean

Boolean to show if this is an active company.

companyRolesCompanyRole[] required

Company roles

isDemoboolean

True for a Demo company, whose supplier calls all go to emulators. Set at creation and immutable. Omitted on create means false; omitted on update keeps the stored value.

orgType'CORPORATE' | 'LEISURE' | 'SPONSOR'

Type of the organization. CORPORATE is a regular business org, LEISURE is a family org where an employee books personal travel, and SPONSOR is the org that sponsors a corporate org's leisure program.

ccEmailAddressesstring[]

List of email addresses on which all confirmation emails will be cced. This is applicable only for company roles 'ORG'

bccEmailAddressesstring[]

List of email addresses on which all confirmation emails will be bcced. This is applicable only for company roles 'ORG'

redirectUrlstring

Redirect URL for the company. It is applicable only for company roles 'PARTNER_TMC'

mobileRedirectUrlstring

Redirect URL for the company for mobile. It is applicable only for company roles 'PARTNER_TMC'

applicableCustomFieldTypesCustomFieldType[]

List of custom fields supported by the company.

externalIdstring

External id to be linked with this.

isFakeboolean

Whether the company is a fake company for testing. This is for internal use.

loyaltyBlockedCountriesstring[]

List of 2 letter country codes where business travelers should not be allowed to add loyalty info.

allowDomainBasedAuthConfigboolean

Whether to allow user to get auth config based on email domain

Response

Updated Successfully

Changes

    • info

      added the new DELAYED_PAYMENT enum value to the request property ////

    • info

      added the new DELAYED_PAYMENT enum value to the request property //

    • info

      added the new optional request property

    • info

      request property deprecated with sunset date 2027-07-01