Admin API/Customers/Mutations
customerAddressDelete
mutationReturns CustomerAddressDeletePayload!
mutation CustomerAddressDelete($addressId: ID!, $customerId: ID!) {
customerAddressDelete(addressId: $addressId, customerId: $customerId) {
deletedAddressId
userErrors {
code
message
field
}
}
}
# Variables
{
"addressId": "gid://ostorya/Address/0f8c5b1e-…",
"customerId": "gid://ostorya/Customer/0f8c5b1e-…"
}Arguments
Payload
- deletedAddressIdID
- userErrors[UserError!]!required