Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

checkoutCustomerAttach Mutation

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.

Applied directives

@webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [])
checkoutCustomerAttach(checkoutId: ID, customerId: ID, id: ID, token: UUID): CheckoutCustomerAttach

Returns

CheckoutCustomerAttach

Show return type
type CheckoutCustomerAttach {
  checkout: Checkout
  checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [CheckoutError!]!
}

Arguments

checkoutId

checkoutId · ID

The ID of the checkout.

customerId

customerId · ID

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

id

id · ID

The checkout’s ID.

token

token · UUID

Checkout token.


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?