sellerAddressSetDefault Mutation
Sets a default address for the given user.
Arguments
#
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
{
"addressId": "YWRkcmVzc0lkOjU=",
"sellerId": "c2VsbGVySWQ6Nw==",
"type": "BILLING"
}
3
{
"sellerAddressSetDefault": {
"seller": {
"id": "aWQ6Njk=",
"companyName": "Acme Inc.",
"slug": "sample-slug",
"status": "APPLYING",
"externalPayoutAccountId": "acct_1OKOMlCr0GpVz8ls",
"externalPayoutSource": "NAUTICAL_PAYMENTS_STRIPE",
"externalPayoutOnboardingUrl": "https://connect.stripe.com/setup/e/acct_1OKOMlCr0GpVz8ls/gDWmFe2IFpXC",
"isMarketplaceSeller": true,
"identification": [
"12-3456789"
],
"defaultCurrency": "string",
"fulfilledByMarketplace": true,
"agreementAcknowledged": "2022-03-06T08:23:45.000Z",
"canUseInStorefront": true,
"pk": 42,
"externalPayoutStatus": true,
"externalPayoutSchedule": "daily",
"agreementDecisionReason": "string",
"storeDescription": "string",
"storeDescriptionPlainText": "string",
"approvedDate": "2022-03-06T08:23:45.000Z",
"firstProductCreatedDate": "2022-03-06T08:23:45.000Z",
"firstOrderPlacedDate": "2022-03-06T08:23:45.000Z",
"fullfilledByMarketplace": true,
"created": "2022-03-06T08:23:45.000Z",
"updated": "2022-03-06T08:23:45.000Z",
"accountSetupTasksAreDone": true
},
"sellerErrors": [
{
"field": "string",
"message": "string",
"code": "GRAPHQL_ERROR"
}
]
}
}
3