Represents a recurring order that automates the reordering process for a customer.

interface RecurringOrder {
    businessUnit?: BusinessUnitKeyReference;
    cart: CartReference;
    createdAt: string;
    createdBy?: CreatedBy;
    custom?: CustomFields;
    customer?: CustomerReference;
    customerEmail?: string;
    expiresAt?: string;
    id: string;
    key?: string;
    lastModifiedAt: string;
    lastModifiedBy?: LastModifiedBy;
    lastOrderAt?: string;
    nextOrderAt?: string;
    originOrder?: OrderReference;
    recurringOrderState: RecurringOrderState;
    resumesAt?: string;
    schedule: RecurrencePolicySchedule;
    skipConfiguration?: SkipConfiguration;
    startsAt: string;
    state?: StateReference;
    version: number;
}

Hierarchy (View Summary)

Properties

Reference to a Business Unit the RecurringOrder belongs to.

Reference to the Cart for a RecurringOrder.

createdAt: string
createdBy?: CreatedBy

IDs and references that created the RecurringOrder.

custom?: CustomFields

Custom Fields of the RecurringOrder.

The Customer that the RecurringOrder belongs to.

customerEmail?: string

Email address of the Customer that the RecurringOrder belongs to.

expiresAt?: string

Date and time (UTC) the RecurringOrder expires.

id: string

Unique identifier of the RecurringOrder.

key?: string

User-defined unique identifier for the RecurringOrder.

lastModifiedAt: string
lastModifiedBy?: LastModifiedBy

IDs and references that last modified the RecurringOrder.

lastOrderAt?: string

Date and time (UTC) when the last order was created from this RecurringOrder.

nextOrderAt?: string

Date and time (UTC) when the next order will be created from this RecurringOrder.

originOrder?: OrderReference

Reference to the Order that generated this RecurringOrder.

recurringOrderState: RecurringOrderState

Current state of the RecurringOrder.

resumesAt?: string

Date and time (UTC) the RecurringOrder resumes subsequent order creation after it is unpaused.

Schedule of the RecurringOrder.

skipConfiguration?: SkipConfiguration

Information about current and future skips of this RecurringOrder.

startsAt: string

Date and time (UTC) the RecurringOrder starts creating new orders.

State of the RecurringOrder in a custom workflow.

version: number

Current version of the RecurringOrder.