Skip to content
Last update: January 30, 2024

deleteMemberAddress mutation

This mutation deletes member addresses.

Arguments

The InputDeleteMemberAddressType! represents the input fields required to delete member addresses.

Field Description
memberId {String!} The Id of the member whose addresses are to be deleted.
addresses {[InputMemberAddressType]!} An array of addresses to be deleted.

Possible returns

Possible return Description
MemberType The member object with the deleted addresses.
mutation deleteMemberAddresses ($command: InputDeleteMemberAddressType!) {
  deleteMemberAddresses (command: $command) {
    id
    name
    addresses {
      items{
        id
      }
    }
  }
}
{
  "command": {
    "memberId": "393ceb5d-125c-479f-b993-81e2b9679dea",
    "addresses": {
        "key": "0afd4d27-488c-487e-adea-01b818f4ee8e",
        "city": "third",
        "countryCode": "AFG",
        "countryName": "Islamic Republic of Afghanistan",
        "email": "",
        "firstName": "third",
        "lastName": "second",
        "line1": "third",
        "name": "ALB, first, first, first",
        "postalCode": "third",
        "regionName": "third"
    }
  }
}