removeAddressFromCustomer Mutation
This mutation removes an Address from a Customer
Arguments
#
Response
#
Returns Customer .
Example
#
mutation ($addressId: ID!, $customerId: ID!) {
removeAddressFromCustomer(addressId: $addressId, customerId: $customerId) {
id
externalId
contactName
businessName
email
phone
taxId
notes
addresses {
id
externalId
role
name
line1
line2
city
state
postalCode
country
hash
createdAt
updatedAt
}
contacts {
id
externalId
title
firstName
lastName
email
phone
jobTitle
customerId
createdAt
updatedAt
}
createdAt
updatedAt
}
}
3
{
"addressId": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
"customerId": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"
}
3
{
"removeAddressFromCustomer": {
"id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
"externalId": "externalId",
"contactName": "contactName",
"businessName": "businessName",
"email": "test-email@yourcompany.com",
"phone": "1+ 418-323-4236",
"taxId": "taxId",
"notes": "notes",
"addresses": [
{
"id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
"externalId": "externalId",
"role": "BILLING",
"name": "A name",
"line1": "line1",
"line2": "line2",
"city": "Montreal",
"state": "Quebec",
"postalCode": "postalCode",
"country": "Canada",
"hash": "hash",
"createdAt": "2025-02-23T23:36:47.661Z",
"updatedAt": "2025-02-23T23:36:47.661Z"
}
],
"contacts": [
{
"id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
"externalId": "externalId",
"title": "title",
"firstName": "John",
"lastName": "Doe",
"email": "test-email@yourcompany.com",
"phone": "1+ 418-323-4236",
"jobTitle": "Engineer",
"customerId": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
"createdAt": "2025-02-23T23:36:47.661Z",
"updatedAt": "2025-02-23T23:36:47.661Z"
}
],
"createdAt": "2025-02-23T23:36:47.661Z",
"updatedAt": "2025-02-23T23:36:47.661Z"
}
}
3
Previous
registerController