Update cart fields

Updates specific cart fields. Including a selections array replaces all items in the cart. Returns cart with updated pricing and any validation problems.

SecurityOAuth2
Request
path Parameters
guid
required
string <uuid>

The identifier of the cart.

header Parameters
Toast-Restaurant-External-ID
string <uuid>

The identifier of the location.

Request Body schema: application/json
fields
required
Array of strings

List of fields to update.

Items Enum: "selections" "status"
Array of objects (Selection)

Item selections (replaces all items if provided).

status
string

Status of the cart. Only processed if status is included in fields array. Status can only be changed when the cart is ACTIVE. A cart with a status of TRANSFERRED can be transferred again only with a transferReason of STAFF_TAKEOVER.

Enum: "ACTIVE" "ABANDONED" "FINALIZED" "SUBMITTED" "TRANSFERRED"
transferReason
string or null

The reason for cart transfer. Required when status is TRANSFERRED.

Enum: "STAFF_TAKEOVER" "LARGE_ORDER_CONFIRMATION" "UNABLE_TO_UNDERSTAND" "GUEST_REQUESTED" "CART_UPDATE_FAILED"
Responses
200

Successful operation. Cart details updated.

403

Unauthorized access.

404

Cart not found.

patch/carts/v1/carts/{guid}
Request samples
application/json
{
  • "fields": [
    ],
  • "selections": [
    ],
  • "status": "ACTIVE",
  • "transferReason": "STAFF_TAKEOVER"
}
Response samples
application/json
{
  • "cart": {
    },
  • "problems": [
    ]
}