Magidoc

addressUpdate
Mutation

Updates an address.

Arguments

#

id

ID !
Non-null

ID of the address to update.

input

Non-null

Fields required to update the address.

Response

#

Returns AddressUpdate .

Example

#

    mutation ($id: ID!, $input: AddressInput!) {
  addressUpdate(id: $id, input: $input) {
    user {
      id
      lastLogin
      externalId
      externalSource
      externalPayoutAccountId
      externalPayoutSource
      externalPayoutOnboardingUrl
      companyName
      email
      firstName
      lastName
      isStaff
      isActive
      note
      dateJoined
      lastStatusChangedAt
      personalPhone
      taxExemptCode
      vatIdentificationNumber
      numOrders
      isAssignable
      dashboardEmbeddingToken
    }
    accountErrors {
      field
      message
      code
    }
    address {
      id
      firstName
      lastName
      companyName
      streetAddress1
      streetAddress2
      city
      cityArea
      postalCode
      countryArea
      phone
      isDefaultShippingAddress
      isDefaultBillingAddress
    }
  }
}

  

3