Przejdź do głównej zawartości

cartUpdateAttributes

Replace (not merge) the cart-level custom attributes — free-form key/value pairs surfaced to the merchant on the order. Use for cart-wide metadata such as a B2B PO number or marketing source. Max 250 pairs / 255-char keys; over the limit returns CART_ATTRIBUTES_LIMIT_EXCEEDED.

cartUpdateAttributes(
attributes: [CartAttributeInput!]!
id: ID!
): CartUpdateAttributesPayload!

Arguments

cartUpdateAttributes.attributes ● [CartAttributeInput!]! non-null input

Full replacement list of cart-level key/value attributes (max 250 pairs, 255-char keys)

cartUpdateAttributes.id ● ID! non-null scalar

Cart UUID whose attributes are replaced

Type

CartUpdateAttributesPayload object

Result of cartUpdateAttributes.