@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface UpdateOrderOptions

    Options for orders.update(). Square applies them as a sparse update: only the fields you set change.

    interface UpdateOrderOptions {
        fieldsToClear?: string[];
        fulfillments?: UpdateOrderFulfillmentInput[];
        idempotencyKey?: string;
        referenceId?: string;
        state?: OrderState;
        version: number;
    }
    Index
    fieldsToClear?: string[]

    Fields to remove, as Square dot paths, e.g. 'fulfillments[FULFILLMENT_UID].shipment_details.tracking_url'.

    Fulfillments to change, each matched on uid.

    idempotencyKey?: string

    Reuse it only when resending the identical request; a retry with a new version needs a new key.

    referenceId?: string
    state?: OrderState

    Order state, e.g. 'CANCELED' to cancel an open order or DRAFT template.

    version: number

    The order's current version. Square rejects a stale one, which is how a concurrent change is detected.