Draft type to represent the top level of a business. Contains the fields and values of the generic BusinessUnitDraft that are used specifically for creating a Company.

interface CompanyDraft {
    addresses?: BaseAddress[];
    associateMode?: string;
    associates?: AssociateDraft[];
    billingAddresses?: number[];
    contactEmail?: string;
    custom?: CustomFieldsDraft;
    defaultBillingAddress?: number;
    defaultShippingAddress?: number;
    key: string;
    name: string;
    shippingAddresses?: number[];
    status?: string;
    storeMode?: string;
    stores?: StoreResourceIdentifier[];
    unitType: "Company";
}

Properties

addresses?: BaseAddress[]

Addresses used by the Business Unit.

associateMode?: string

Determines whether the Business Unit can inherit Associates from a parent. Always Explicit for Companies and defaults to ExplicitAndFromParent for Divisions.

associates?: AssociateDraft[]

List of members that are part of the Business Unit in specific roles.

billingAddresses?: number[]

Indexes of entries in addresses to set as billing addresses. The billingAddressIds of the Customer will be replaced by these addresses.

contactEmail?: string

Email address of the Business Unit.

Custom Fields for the Business Unit.

defaultBillingAddress?: number

Index of the entry in addresses to set as the default billing address.

defaultShippingAddress?: number

Index of the entry in addresses to set as the default shipping address.

key: string

User-defined unique identifier for the Business Unit.

name: string

Name of the Business Unit.

shippingAddresses?: number[]

Indexes of entries in addresses to set as shipping addresses. The shippingAddressIds of the Customer will be replaced by these addresses.

status?: string

Indicates whether the Business Unit can be edited and used in Orders.

storeMode?: string

Defines whether the Stores of the Business Unit are set directly on the Business Unit or are inherited from a parent. storeMode is always Explicit for Companies and defaults to FromParent for Divisions.

Sets the Stores the Business Unit is associated with. Can only be set when storeMode is Explicit. Defaults to empty for Companies and not set for Divisions.

If the Business Unit has Stores defined, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must belong to one of the Business Unit's Stores.

If the Business Unit has no Stores, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must not belong to any Store.
unitType: "Company"

Generated using TypeDoc