Skip to main content
Version: 3.x

checkoutCustomerAttach

Sets the customer as the owner of the checkout.

Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER.

checkoutCustomerAttach(
checkoutId: ID
customerId: ID
id: ID
token: UUID
): CheckoutCustomerAttach

Arguments

checkoutId (ID)

The ID of the checkout.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

customerId (ID)

ID of customer to attach to checkout. Can be used to attach customer to checkout by staff or app. Requires IMPERSONATE_USER permission.

id (ID)

The checkout's ID.

Added in Saleor 3.4.

token (UUID)

Checkout token.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

Type

CheckoutCustomerAttach

Sets the customer as the owner of the checkout.

Requires one of the following permissions: AUTHENTICATED_APP, AUTHENTICATED_USER.