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
Show return type

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 deprecated

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.