Draft type to model divisions that are part of a Company or a higher-order Division. Contains the fields and values of the generic BusinessUnitDraft that are used specifically for creating a Division.

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

Properties

addresses?: BaseAddress[]

Addresses used by the Business Unit.

associateMode?: string

Determines whether the Division can inherit Associates from a parent.

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.

The parent unit of this Division. Can be a Company or a Division.

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

If not set, the Division inherits the Stores from a parent unit. Set this to Explicit if you want to set the Stores explicitly in the stores field instead.

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: "Division"

Generated using TypeDoc