addressUpdate Mutation
Updates an address.
Arguments
#
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
{
"id": "aWQ6NDY=",
"input": {
"firstName": "John",
"lastName": "Smith",
"companyName": "Acme Inc.",
"streetAddress1": "123 Maple Street",
"streetAddress2": "Suite 101",
"city": "Toronto",
"cityArea": "Downtown",
"postalCode": "M5H 2N2",
"country": "AF",
"countryArea": "ON",
"phone": "+1-555-123-4567"
}
}
3
{
"addressUpdate": {
"user": {
"id": "aWQ6NTg=",
"lastLogin": "2022-03-06T08:23:45.000Z",
"externalId": "string",
"externalSource": "string",
"externalPayoutAccountId": "acct_1OKOMlCr0GpVz8ls",
"externalPayoutSource": "NAUTICAL_PAYMENTS_STRIPE",
"externalPayoutOnboardingUrl": "https://connect.stripe.com/setup/e/acct_1OKOMlCr0GpVz8ls/gDWmFe2IFpXC",
"companyName": "Acme Inc.",
"email": "user@example.com",
"firstName": "John",
"lastName": "Smith",
"isStaff": true,
"isActive": true,
"note": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dictum, risus vel suscipit rhoncus, felis turpis tristique arcu, sit amet lobortis nulla neque at mi.",
"dateJoined": "2022-03-06T08:23:45.000Z",
"lastStatusChangedAt": "2022-03-06T08:23:45.000Z",
"personalPhone": "+1-555-123-4567",
"taxExemptCode": "E",
"vatIdentificationNumber": "string",
"numOrders": 42,
"isAssignable": true,
"dashboardEmbeddingToken": "string"
},
"accountErrors": [
{
"field": "string",
"message": "string",
"code": "ACTIVATE_OWN_ACCOUNT"
}
],
"address": {
"id": "aWQ6NTI=",
"firstName": "John",
"lastName": "Smith",
"companyName": "Acme Inc.",
"streetAddress1": "123 Maple Street",
"streetAddress2": "Suite 101",
"city": "Toronto",
"cityArea": "Downtown",
"postalCode": "M5H 2N2",
"countryArea": "ON",
"phone": "+1-555-123-4567",
"isDefaultShippingAddress": true,
"isDefaultBillingAddress": true
}
}
}
3