Skip to main content

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.
checkoutCustomerAttach(
checkoutId: ID
customerId: ID
id: ID
token: UUID
): CheckoutCustomerAttach
Details
type CheckoutCustomerAttach {
checkout: Checkout
checkoutErrors: [CheckoutError!]! @deprecated
errors: [CheckoutError!]!
}

Arguments

customerId ● ID

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

id ● ID

The checkout's ID.

Show deprecatedHide deprecated

checkoutId ● ID

DEPRECATED

Use id instead.

The ID of the checkout.

token ● UUID

DEPRECATED

Use id instead.

Checkout token.

Type

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.