Skip to main content

customerAddressDeleteBulk

Remove several of a customer's addresses in one request.

Each id is deleted exactly as customerAddressDelete would delete it, and every deleted address emits its own event. An id that cannot be deleted lands in failedIds with an entry in failures saying why; the rest of the batch is deleted regardless, and repeated ids get one verdict.

An id that belongs to another customer reads as ADDRESS_NOT_FOUND_ERROR — the lookup is always scoped to the customer in the input.

Possible errors:

  • CUSTOMER_NOT_FOUND_ERROR: The customer itself does not exist, so no id in the request could be read. Nothing was deleted.

AUTH: Role=[user.OWNER] OR (('user is authenticated') AND ('customerId if present in input matches JWT'))

customerAddressDeleteBulk(
input: CustomerAddressBulkDeleteInput!
): AddressBulkDeleteResponse!

Arguments

customerAddressDeleteBulk.input ● CustomerAddressBulkDeleteInput! non-null input

Type

AddressBulkDeleteResponse object