Business Unit type to model divisions that are part of the Company or a higher-order Division. Contains specific fields and values that differentiate a Division from the generic BusinessUnit.

interface Division {
    addresses: Address[];
    associateMode: string;
    associates: Associate[];
    billingAddressIds?: string[];
    contactEmail?: string;
    createdAt: string;
    createdBy?: CreatedBy;
    custom?: CustomFields;
    defaultBillingAddressId?: string;
    defaultShippingAddressId?: string;
    id: string;
    inheritedAssociates?: InheritedAssociate[];
    key: string;
    lastModifiedAt: string;
    lastModifiedBy?: LastModifiedBy;
    name: string;
    parentUnit: BusinessUnitKeyReference;
    shippingAddressIds?: string[];
    status: string;
    storeMode: string;
    stores?: StoreKeyReference[];
    topLevelUnit: BusinessUnitKeyReference;
    unitType: "Division";
    version: number;
}

Properties

addresses: Address[]

Addresses used by the Business Unit.

associateMode: string

Determines whether the Division can inherit Associates from a parent.

associates: Associate[]

Associates that are part of the Business Unit in specific roles.

billingAddressIds?: string[]

Unique identifiers of addresses used as billing addresses.

contactEmail?: string

Email address of the Business Unit.

createdAt: string

Date and time (UTC) the Business Unit was initially created.

createdBy?: CreatedBy

Present on resources created after 1 February 2019 except for events not tracked.

custom?: CustomFields

Custom Fields for the Business Unit.

defaultBillingAddressId?: string

Unique identifier of the address used as the default billing address.

defaultShippingAddressId?: string

Unique identifier of the address used as the default shipping address.

id: string

Unique identifier of the Business Unit.

inheritedAssociates?: InheritedAssociate[]

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

key: string

User-defined unique identifier of the Business Unit.

lastModifiedAt: string

Date and time (UTC) the Business Unit was last updated.

lastModifiedBy?: LastModifiedBy

Present on resources updated after 1 February 2019 except for events not tracked.

name: string

Name of the Business Unit.

Parent unit of the Division.

shippingAddressIds?: string[]

Unique identifiers of addresses used as shipping addresses.

status: string

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

storeMode: string

Defines whether the Stores of the Division are set explicitly or inherited from a parent Business Unit.

References to Stores the Business Unit is associated with. Only present when storeMode is Explicit.

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.

Top-level unit of the Business Unit. The top-level unit is of unitType Company.

unitType: "Division"
version: number

Current version of the Business Unit.

Generated using TypeDoc