Magidoc

sellerAddressSetDefault
Mutation

Sets a default address for the given user.

Arguments

#

addressId

ID !
Non-null

ID of the address.

sellerId

ID !
Non-null

ID of the seller to change the address for.

type

Non-null

The type of address.

Response

#

Returns SellerAddressSetDefault .

Example

#

    mutation ($addressId: ID!, $sellerId: ID!, $type: AddressTypeEnum!) {
  sellerAddressSetDefault(
    addressId: $addressId
    sellerId: $sellerId
    type: $type
  ) {
    seller {
      id
      companyName
      slug
      status
      externalPayoutAccountId
      externalPayoutSource
      externalPayoutOnboardingUrl
      isMarketplaceSeller
      identification
      defaultCurrency
      fulfilledByMarketplace
      agreementAcknowledged
      canUseInStorefront
      pk
      externalPayoutStatus
      externalPayoutSchedule
      agreementDecisionReason
      storeDescription
      storeDescriptionPlainText
      approvedDate
      firstProductCreatedDate
      firstOrderPlacedDate
      fullfilledByMarketplace
      created
      updated
      accountSetupTasksAreDone
    }
    sellerErrors {
      field
      message
      code
    }
  }
}

  

3