younifyd
Menu

customerAddressDelete

Deletes a customer's address.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the customerAddressDelete action (under Customer).
  3. Fill in the fields below, then reference the result from later steps as {{customeraddressdelete.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation CustomerAddressDelete($customerId: ID!, $addressId: ID!) {
  customerAddressDelete(customerId: $customerId, addressId: $addressId) {
    deletedAddressId
    userErrors {
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

customerIdstringrequired

The ID of the customer whose address is being deleted.

addressIdstringrequired

The ID of the address to be deleted from the customer.

json
{
  "customerId": "string",
  "addressId": "string"
}

Response

Read the result with {{customeraddressdelete.response.data.data.customerAddressDelete}}. If the API returns errors, the step fails and they are at {{customeraddressdelete.response.data.errors}}.

deletedAddressIdstring
userErrorsarray<object>
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.