Skip to main content
Version: 3.x

checkoutCustomerAttach

Sets the customer as the owner of the checkout.

Requires one of the following permissions: AUTHENTICATED_APPAUTHENTICATED_USER

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.
checkoutCustomerAttach(
checkoutId: ID
customerId: ID
id: ID
token: UUID
): CheckoutCustomerAttach

Arguments

checkoutCustomerAttach.checkoutId ● ID scalar

The ID of the checkout.

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

checkoutCustomerAttach.customerId ● ID scalar

ID of customer to attach to checkout. Requires IMPERSONATE_USER permission when customerId is different than the logged-in user.

checkoutCustomerAttach.id ● ID scalar

The checkout's ID.

Added in Saleor 3.4

checkoutCustomerAttach.token ● UUID scalar

Checkout token.

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

Type

CheckoutCustomerAttach object

Sets the customer as the owner of the checkout.

Requires one of the following permissions: AUTHENTICATED_APPAUTHENTICATED_USER

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.

Was this page helpful?